[vtkusers] dual QVTKWidget2 of the same scene performance problem
Clinton Stimpson
clinton at elemtech.com
Fri Aug 10 23:03:54 EDT 2012
What version of VTK are you using? There have been some bug fixes a few months ago related to performance and memory usage. I would suggest you make sure you have those fixes first.
Clint
On Aug 9, 2012, at 7:02 AM, Sylvain Anderegg wrote:
> Dear VTK developers,
>
> I am currently trying to develop an application on a dual screen system. Therefore I want to show 2 QVTKWidget2 (with openGL context shared) showing the very same vtk scene from different point of views. My software is connected to some camera that updates the position of some tracked objects. Therefore, I call the Render() function of each QVTKWidget2 renderWindow for every position update. I don't know if that is the best way to do it?
>
> My objects are each composed of a vtkAssembly, in turn containing a transformation and several actors read from a vrml model file.
>
>
> As a first trial I passed the same instance of each of these objects to both QVTKWidget2 renderer in order to spare memory. The result was that as long as only one QVTKWidget2 is visible it was alright, but when both QVTKWidget2 are visible, the frame rate drops dramatically (~2fps on a modern computer with professional GPU). As the OpenGL contexts are shared I don't get why this happens??
>
> On a second trial I cloned my vtkAssembly objects and passed one to each viewer which seems to work better on the framerate side. But now the memory footprint increases dramatically. Is there anyway share viewed objects between QVTKWidget2? or is there something completely wrong in how I created this?
>
>
> Sylvain
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
More information about the vtkusers
mailing list