Hi Andreas,

The way to minimize the delay is to precompile the subgraph before its
merged.  The osgDB::DatasePager manages this when handling paged
database, but in your case you are rolling you own data loading.

It just so happens that this week I've been doing work on compiling
OpenGL objects in a background thread, via a shared graphics context.
I don't yet have a framework checked in for this, but this is the
direction I'm going, you might still have to do a few things by hand,
but it should be easier that at present.  One possibility is to extend
ProxyNode to do load compilation in a background thread.

Robert.

On 6/28/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
Hello everybody!

I want to load and add new files during the rendering loop. The
ive-files are so big that the readNodeFile-function needs about 0.03
seconds to load the file and in worst case I have to load five of them.
I add the new nodes to a second scene graph that isn't rendered. Is
everything done, I switch the current rendered scene graph with the
second one but nevertheless the viewer stops for some milliseconds.

Now I would like to know if there is a way to flip between the to scene
graphs without any delay. Or maybe there is another way of adding new
big files during rendering without delay (or even without crashing the
application ;)?
I hope somebody can help me.

With kind regards,
--
Andreas Richter
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

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

Reply via email to