[osg-users] OpenSceneGraph with Qt multiple windowing problem

David Callu ledocc at gmail.com
Wed Sep 19 10:52:51 PDT 2007


Hi arnaud

I can't reproduce your problem. I have 4 osg window in the mainWindow and
all have the same frame rate.
Can you describe you plateform driver vertion OSG, Qt
OSG_OPTIMIZE and OSG_CAMERA_THREAD env var
...


another think is thit is preferable to use osgViewer::CompositeViewer and
osgViewer::View
instead of osgViewer::Viewer when you have many scene and so many view.
With this, all update/cull/draw/ operations are done with the Thread  Model
choose in the osgViewer::CompositeViewer, and so do the best management of
all
 update/cull/draw/ operation of each View. This include to swapping OpenGL
buffer all together.
 I never could notice this but a thread on the ML talk about this. according
to this thread,
swapping all OpenGL buffer together give best performance.

Thank

David

Joint the modified

2007/9/19, arnaud houegbelo <a_houegbelo at yahoo.com>:
>
> Hi Robert,
>
> Please find in attached file the source code of a small
> project based on osgViewerQT. This project create a QApplication
> with a mdi. You can open many OsgWidget (inherits of osgViewerQT)
> via the menu (File -> Open). If you open many viewers you will
> see that the last viewers opened are very slow and if you close some
> previous viewers they delete some objects in the others viewers.
> I hope that this exemple will be useful to you to find the problem.
>
> many thanks and
> best Regards
>
> Arnaud
>
>
>
>
> ____________________________________________________________________________________
> Boardwalk for $500? In 2007? Ha! Play Monopoly Here and Now (it's updated
> for today's economy) at Yahoo! Games.
> http://get.games.yahoo.com/proddesc?gamekey=monopolyherenow
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20070919/f036b150/attachment-0003.htm>


More information about the osg-users mailing list