Hi neil,

[email protected] schrieb:
> Hi All,
> 
> I'm looking for some thoughts, and advice, on the cache process within OSG. 
> Essentially a while ago (OSG1.2) I wrote an app that implemented its own 
> node/texture cache in memory as I didn't want to be writing things to the 
> file system as permissions were potentially a problem. I'm now looking at 
> rewriting in OSG2.8, and trying to get a handle on whether the cacheing 
> offered by OSG has changed at all. Essentially I want to cache objects in a 
> memory cache, rather than to file. As far as I can see this isn't an option 
> within OSG2.8, but I wanted to check if others new anything to the contrary ?
> 
> Thanks for any help/comments.

Have you tried the internal cache of osg? I think it defaults to off, so
you have to switch it on via:

osgDB::ReaderWriter::Options* options = new osgDB::ReaderWriter::Options();
options->setObjectCacheHint(osgDB::ReaderWriter::CACHE_ALL);

osgDB::Registry::instance()->setOptions(options);

For more infos see the documentation of osgDB::ReaderWriter::Options

HTH,
Stephan


_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to