[osg-users] Deep cloning an active root scene node

Robert Osfield robert.osfield at gmail.com
Fri Mar 1 04:05:39 PST 2019


Hi Rob,

There is a limit to how well you'll be able to get things to scale given
the hardware limits you have to work around.  If you don't want the main
rendering loop to wait for the rendering of all these extra views then
you'll need to use a separate viewer(or compositeviewer) with it's own
threading.  You'll need to manage your own frame loops in the secondary
viewer.

The only reason to copy data is if it the data is being modified by the
different threads, I wouldn't recommend avoiding any modifications of the
scene graph so you can simply share it all without copying.  If there are
modifications you currently need I would suggest looking at ways to move
this work elsewhere - often you can move to the GPU and just pass a Uniform
per View to select the settings that are approriate so the shaders can do
the right thing.

Cheers,
Robert.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20190301/dae0622a/attachment.html>


More information about the osg-users mailing list