Hi Stephan, Thanks for coming back to me.
I think I confused myself with the filecache concept. thanks for the hint. I've now tracked through and found out what is happening, so it looks like I don't need to implement my own cache, which is great. Thanks again. neil. ---- Stephan Maximilian Huber <[email protected]> wrote: > 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 _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

