I know. Thanks Robert. I really did try to do my homework and I really wouldn't ask if the debugging session had brought me further. I was hoping/looking for some hints on where to look and your answers are already helpful.

A maybe related question: Does osg::Object::DataVariance "inherit" to child nodes (in multithreaded mode), e.g. is it safe to remove a subgraph after a node with DataVariance set to DYNAMIC? The rendering thread(s) may still be traversing this subgraph in this case.

Mathias

On 03.02.2011 21:17, Robert Osfield wrote:
Hi Mathias,

On Thu, Feb 3, 2011 at 7:56 PM, Mathias Buhr<[email protected]>  wrote:
Is it safe to modify the SG after the updateTraversal() in SingleThreaded
mode?
Yes it's safe to do update before or after the updateTraversal(), you
can even do updates in cull and draw when running SingleThreaded.

It's generally best practice to put updates and cull and draw though
as it introduces problems when moving to a multi-threaded,
multi-context usage.

As to what you specifically problem is, well I'm afraid we'll be able
to give general debugging pointers but in the end it's your app and
your subclass, you'll need to use a debugger and work the specifics of
what has gone amiss yourself.

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


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

Reply via email to