Pecoraro, Alexander N wrote on 2009-12-17: 
> Is there a way to set the threading mode so that the draw thread does
> not run until after the update traversal is done?

You can set the threading mode using an environment variable:

$ osgviewer --help-env
Usage: E:\OpenSceneGraph\bin\osgviewer.exe [options] filename ...
Environmental Variables:
...
OSG_THREADING <value>                                Set the threading model
                                                       using by Viewer, <value>
                                                       can be SingleThreaded,
                                                       CullDrawThreadPerContext,
                                                       DrawThreadPerContext or
                                                       CullThreadPerCameraDrawT-
                                                       hreadPerContext.
...

You can also do it programmatically via osgViewer::Viewer::setThreadingModel().

But I'm not sure that will help you; IIRC, only the cull and draw traversals 
can overlap, the update traversal should finish before either of those starts.

What is the problem you're trying to solve, perhaps there's a different way to 
fix it?

HTH,
--
Bryan Thrall
FlightSafety International
[email protected]
  

_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to