Hi Theo, It sounds like the compilation of display lists, VBO's and texture objects is the cause of the frame stalls. Caching the models in memory will not help in this case, which you need to do is compile the display list, VBO's and texture objects. There are a number of tools in the OSG to aid this work by either compiling all objects up front or compiling them incrementally so that you don't end up with many GL objects being compiled at one time.
I would recommend using 2.9.8 or svn/trunk as this offers the most options w.r.t compilation as it provides the new osgUtil::IncrementCompileOperation. There is also the osgUtil::GLObjectVisitor available all the way back to 2.0, and perhaps even before. The later has to be called from a graphics thread. The DatabasePager also has support for incremental compilation built into it, so if you page your database in they you could get this support for free. Have a search through the archives on references of the above classes to see more info on how to use them. Robert. On Sun, Sep 19, 2010 at 6:18 PM, Theo Diefenthal <[email protected]> wrote: > Hi, > > we made a little driving simulator with different levels and we have a > problem with dynamic loaded models from the ReaderWriter. > > We'd like to load all models when the level is changed and the scenegraph is > created. After loading the models into the scenegraph, the simulation should > start. > > When we just create the root node and attach it to our camera, the simulation > starts and updates a few frames while the models still are loading. > Models which are not in the camera's field of vision when the level starts, > are loaded, when tey are in the field of vision for the first time. This > makes our simulation have a litte framerate per second for a moment > > We tried to enable CACHING_ALL as ReaderWriter options and disabled the > Optimizer for the graph, but it still doesn't work. > > > So do you have any suggestions how can we load all objects at the point the > scenegraph is created? Do we have to set any property to the viewer/camera? > > We are using osg 2.8.3. > > Thank you! > > Cheers, > Theo > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=31805#31805 > > > > > > _______________________________________________ > 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

