Re: [osg-users] Does osg Database keep the data in memory and doesn't remove them?

2011-03-07 Thread María Ten
Hi Ramy, We notice that the DatabasePager only update correctly the timestamp of expired children if they are registered. When you use a filename to load a PagedLOD as a children, it is registered automatically. But when you add the PagedLOD to the scene you need to register ir manually to update

Re: [osg-users] Does osg Database keep the data in memory and doesn't remove them?

2011-03-03 Thread María Ten
Hi Ramy, You can use the method setTargetMaximumNumberOfPageLOD of DatabasePager to try to unload the maximum number of children possible. This methods works fine for us with a lot of PagedLOD in a quadtree hierarchy with OSG 2.8.3. However the two first level of LODs aren't unload. Now we are tr

Re: [osg-users] Does osg Database keep the data in memory and doesn't remove them?

2011-02-23 Thread Ramy Gowigati
Hi Jean, Ya I was only calling optimize (with DEFAULT option) after I load the entire scene, which now explains why the memory goes down a lot. So now I just call optimize on each model when I load them, and Im fine. Now after loading everything, im getting openGL out-of-memory error :D I'm tr

Re: [osg-users] Does osg Database keep the data in memory and doesn't remove them?

2011-02-22 Thread Jean-Sébastien Guay
Hi Ramy, Hi Jean, I am looking now at the osgUtil::optimizer and trying to figure out what options to use, but I do call optimizer with default options after I load my scene. I don't mind keeping the geometry data but textures take a huge space in memory while loading them and they need to g

Re: [osg-users] Does osg Database keep the data in memory and doesn't remove them?

2011-02-22 Thread Ramy Gowigati
Jean, The Optimizer trick worked pretty well! Memory consumption is to a minimum now. Thanks for your help mate! -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=36935#36935 ___ osg-users mailing list

Re: [osg-users] Does osg Database keep the data in memory and doesn't remove them?

2011-02-22 Thread Ramy Gowigati
Hi Jean, I am looking now at the osgUtil::optimizer and trying to figure out what options to use, but I do call optimizer with default options after I load my scene. I don't mind keeping the geometry data but textures take a huge space in memory while loading them and they need to go as soon as

Re: [osg-users] Does osg Database keep the data in memory and doesn't remove them?

2011-02-21 Thread Sergey Polischuk
Hi, Ramy There are two basic ways to lower memory usage in that case. First is load your scene in parts and after loading each part do viewer frame with disabled color write or some splash screen, this will apply state and free some memory. Second - try out compressed textures, you can get 4-8

Re: [osg-users] Does osg Database keep the data in memory and doesn't remove them?

2011-02-21 Thread Jean-Sébastien Guay
Hello Ramy, I am asking why, because my application during loading now crashes because its exceeding 2GB of memory under 32bits.. If i remove a part of the scene (to make it less than 2GB in memory load), the scene gets loaded, I can see it in the Task Manager going up to 2GB (or just less) a

[osg-users] Does osg Database keep the data in memory and doesn't remove them?

2011-02-21 Thread Ramy Gowigati
Hi, I now have quite a big scene with lots of textures apparently. When I load my scene the osg Database seem to just store the data until some point in time and releases them. When I load my geometry and textures in, I pass in the following parameters: osgDB::ReaderWriter::Options* op = new o