Hi Chris, On 16 January 2012 10:39, Chris Denham <[email protected]> wrote: > Yep, I can confirm the return value of gc->getState()->getContextID() is > increasing as you describe for each brower plugin instance created. > Does that mean I should be ok sharing scengraph between viewers?
It should be OK. osgViewer hasn't been designed for using of multiple viewers running in a parallel, but is designed for scene graphs to be shared between multiple contexts, so as long as the ContextID's a mapped correctly, as it sounds like they are. > It certainly seems ok now I've disabled the unref images after apply flag on > the textures. If this is the case then the max number of contexts that the unref scheme is using is obviously not high enough. osgViewer will look at the number of contexts that are active and then using this as a limit. Is it that you are creating one viewer and context then drawing frames, then later creating a new context and draw more frames. In the later case I can certainly see that if the first frames draw will release the osg::Image resources assigned to osg::Texture if they are set up to unref the images, so disabling the unref of images makes sense. Robert. _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

