First thing I'd try is the IncrementalCompileOperation. It will background and time slice your GL compile so it doesn't interfere with scene graph merge time. Use the --ico option to osgviewer or use the Viewer API. On May 30, 2015 10:52 PM, "Leandro Linardos" <[email protected]> wrote:
> Hi, > > I'm using DatabasePager to load a terrain in a quad-tree structure. So, I > have a PagedLOD with a TerrainTile for a distance range and some data to > load other four tiles for a nearest distance range. > > When swithching the PagedLod leve, I'm building the four tiles inside a > ReadFileCallback attached to the PagedLod. The elevation data attached to > the tiles are 1024x1024 heightfields. This is obviously done in another > thread. > > The problem is I'm totally losing frames after the ReadFileCallback call. > I'm going from 60fps to 0 (during a seconds) and then again to 60 fps. I > think that's the issue is in the scene graph update (when the new tiles are > added to the scene). > > Some ideas? Some config in threads or databasepager i'm not seeing? > > Thank you! > > Cheers, > Leandro > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=63891#63891 > > > > > > _______________________________________________ > 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

