Hello and Happy New Year.

I have a question about the database pager. I have followed the
osgsimplepager example, but my program has multiple sceneview /
rendersurface pairs sharing a single graphics context. Each sceneview
object shares the same scene graph and they are rendered individually.
If you are familiar with osgsimplepager, it creates a framestamp in the
renderloop and allows a small amount of time for GL object creation /
deletion. My question is, how should the database pager be used in my
case? Should I give every sceneview a framestamp? Should I let every
sceneview create / flush GL objects? I have a feeling that this is
unnecessary and expensive. Is it enough to simply call the cull and draw
methods?
        
        sceneview->cull();
        sceneview->draw();

Lastly, since my sceneviews and rendersurfaces share context, is it
necessary to execute makecurrent() ?


Thank you all, and may OSG have an even bigger year than last.

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to