Thanks for your replies!

In my self-made thread I'm loading large 3d models and attaching them as PATs 
to the scene graph (or removing them). If I do this in the main loop, the 
loading process is interrupting the image generation. That's why I created the 
thread and so I need a sync so that the scene graph isn't modified during cull 
and draw phase or the program will crash.

After the replies I think the best way for me is using the mutex. I guess the 
UpdateCallback interrupts the image generation, too (don't tested yet). I will 
also look into osgterrain's multi-threaded code, may be I'll get some further 
ideas...
--  
Andreas Richter
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to