Re: [osg-users] DatabasePager and TextureObjects

2010-09-20 Thread Robert Osfield
HI Guy,

On Sun, Sep 19, 2010 at 6:35 PM, Guy Volckaert
guy.volcka...@meggitt.com wrote:
 I noticed a huge discrepency between loading an FLT with and without the 
 DatabasePager.

 Before loading any database model, the number of TextureObject created is 16.

 When I load a model via readNode(), the number of TextureObjects created 
 increases to 112 (for 96 textures objects for the model itself).

 However, when I load the same model from within the DatabasePager thread, 
 then I get 173 TexureObjects created (157 TextureObjects for the model 
 itself).

 Essentially, I noticed that loading tiles from within the DatabasePager 
 requires lots more texture memory (confirmed by using glDebugger).

 Note: The StateSetManager is used the in the same manner for both cases.

Do you mean the SharedStateManager?

In svn/trunk there has been a bug fix relating to the
SharedStateManager/DatabasePager so perhaps this might help.  Could
you try it?

Robert.
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] DatabasePager and TextureObjects

2010-09-20 Thread Guy Volckaert
Sorry for the confusion - I ment to say the SharedStateManager. 

I should have mentioned (in my original post) that I already merged the 
SharedStateManager from the trunk into v2.8.2. Fortunately, the changes were 
easy to merge but did not resolve the problem.

I'm trying to figure out a way to determine what's the difference between 
loading the FLT model myself using readNode() and loading it through the 
DatabasePager.  In both cases, I run the SharedStateManager process and the 
optimizer process (via the readNode callback).  

I will continue isolating the problem, but not sure how far I can go.

Regards,

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=31832#31832





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] DatabasePager and TextureObjects

2010-09-19 Thread Guy Volckaert
I noticed a huge discrepency between loading an FLT with and without the 
DatabasePager. 

Before loading any database model, the number of TextureObject created is 16. 

When I load a model via readNode(), the number of TextureObjects created 
increases to 112 (for 96 textures objects for the model itself). 

However, when I load the same model from within the DatabasePager thread, then 
I get 173 TexureObjects created (157 TextureObjects for the model itself). 

Essentially, I noticed that loading tiles from within the DatabasePager 
requires lots more texture memory (confirmed by using glDebugger). 

Note: The StateSetManager is used the in the same manner for both cases. 

Any ideas?

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=31807#31807





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org