Hi Vincent, On Thu, Feb 4, 2010 at 2:16 PM, Vincent Bourdier <[email protected]> wrote: > So when the file size in memory estimation exceed the free memory estimated, > the load is not done. > But this is the point : if I return /ERROR_IN_READING_FILE, /won't the file > be added to a black list ? > What about /FILE_LOADED /?
The OSG doesn't provide any blacklisting capability so it's something you'll have to implement yourself in your read callback. > Next, is there a way to force pagedLod to unload some nodes ? to implement a > "force unload" to free a bit a memory. > I'm using OSG 2.8.1 and I cannot use the last release... > As the ReadFileCallback can be implemented, are there other possible > personalization concerning the way to load/unload cached datas ? The DatabasePager now defaults to using a MaxPagedLOD scheme where it expires currently unused PageLOD children on demand, so that as lots of new PagedLOD come in to view ones that aren't in the view are deleted keeping a roughly constant load. You can adjust the target MaxPagedLOD in your app via the OSG_MAX_PAGED_LOD env var or the DatabasePager::setTargetMaximumNumberOfPageLOD(value). Please note this is a target that will be exceeded is more PagedLOD's are required for a single frame, so the view will not ever be constrained by the MaxPagedLOD target, once the high loaded view is moved away from the PagedLOD numbers will drop back down to the target. Robert. _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

