> > - when this PagedLod is needed for display, it is loadded and displayed > - when this PagedLod is no more needed for display, it is deleted from CPU > memory and GPU memory, even if the OSG_MAX_PAGEDLOD is not reached > > For this particular node, you might attach a cull callback to the PagedLOD, and snoop on the PagedLOD settings on each frame. If it appears that a lower LOD is going to be displayed, and the higher LOD is still loaded, you could unload the higher LOD manually.
I don't know for sure though if this is proper to do. At the very least, the reference counting system might still have a reference to it stored elsewhere in the DatabasePager, but I doubt this will happen. Even if it does, it just means the highest LOD won't get unloaded from memory, but it should cause no adverse effects. If the memory consumption does go down immediately as you hope, then the technique works. -- Chris 'Xenon' Hanson, omo sanza lettere. [email protected] http://www.alphapixel.com/ Training • Consulting • Contracting 3D • Scene Graphs (Open Scene Graph/OSG) • OpenGL 2 • OpenGL 3 • OpenGL 4 • GLSL • OpenGL ES 1 • OpenGL ES 2 • OpenCL Digital Imaging • GIS • GPS • Telemetry • Cryptography • Digital Audio • LIDAR • Kinect • Embedded • Mobile • iPhone/iPad/iOS • Android
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

