[vtkusers] dual QVTKWidget2 of the same scene performance problem

Sylvain Anderegg sylvain.anderegg at cascination.com
Mon Aug 13 02:24:28 EDT 2012


Hi Clint,

I am using vtk 5.10.
Sylvain
On 11.08.2012 05:03, Clinton Stimpson wrote:
> 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

-- 
Sylvain Anderegg
Head of Software Development CAScination AG


--

Sylvain Anderegg | Head of Software Development
CAScination AG | Stauffacherstrasse 78 | 3014 Bern | Switzerland
Tel: +41 31 631 5965
Email: sylvain.anderegg at CAScination.ch | Web: http://www.CAScination.ch

CONFIDENTIALITY NOTICE: This transmission (including any attachments) contains information which is confidential and is intended solely for the individual or entity named above. If you are not the intended recipient, please be aware that any interception, copying, distribution, disclosure or business use of this transmission or any information contained in it is not allowed. If you have received this transmission in error, please notify the sender at the e-mail address above and delete the transmission from all forms of electronic or other storage, and destroy all hard copies.





More information about the vtkusers mailing list