[osg-users] Integrating OSG with Qt: QOSGWidget memory consumption

2010-11-04 Thread Shahar Kosti
Hi,

I'm new to OSG and trying to create a Qt-based application with OSG windows 
inside. To do this, I'm following the osgviewerQT example using the 
multi-threaded CompositeViewer mode (--MTCompositeViewer).

When I start the example with a model it seems to be loaded 6 times, which is 
also the number of views. This makes the memory consumption much larger than 
the other modes in that example. Why is the model loaded multiple times? Is it 
possible to load it once for all views?

OSG version - 2.9.9, Qt version - 4.5.1
Command line parameters: osgviewerQT.exe -- QOSGWidget --MTCompositeViewer 
my_model.ive

Thank you!

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=33181#33181





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Integrating OSG with Qt: QOSGWidget memory consumption

2010-11-04 Thread Shahar Kosti
Eventually I went with a modified version of the --CompositeViewer part of 
the example. I'm still not sure what is wrong with the other approach - the 
number of GraphicsContext and View objects is the same.

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=33445#33445





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org