Thanks Robert,

you are right - the duplicate texture cannot be the problem.

I will check the database structure. I guess that the water tiles are not paged.


Dieter 
 
 
-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf Of Robert Osfield
Sent: Wednesday, 09 June, 2010 09:46
To: OpenSceneGraph Users
Subject: Re: [osg-users] DatabasePager performance problem

Hi Dieter,

On Tue, Jun 8, 2010 at 4:52 PM, PFEFFER Dieter > In my terrain
database I use satellite images and a generic water texture.
> In the highest LOD I can see many tiles which have all the same water
> texture (512x512); I suppose this texture, although it is identically for
> all water tiles, is loaded for every visible tile into the memory and the
> performance drops from 60 fps to 0.5 fps.
>
> Is it possible to force the databasePager to load the water texture only
> once ?

There isn't a scheme in the DatabasePager for removing duplicate
state, but there is the osgDB::SharedStateManager that you could
experiment with as this is it's role.  I'm afraid I'm not the author
or have actively used the later so I can't provide specific guidance
on this.

As for the idea that tiles with duplicate texture will cause
performance drop from 60fps to 0.5 fps, this does sound rather far
fetched.  VPB generates tiles that all have unique textures,
regardless of the contents and the OSG on a modern machine can happily
chug along at 60fps all day long.   If you have seeing a drop of
performance then it's unlikely to be the repeated sea textures at
fault, and I'd strongly suggest you look into why as it rather does
sound like your database is poorly conditioned for real-time use.

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

Unclassified Mail

------------------------------------------------------------------------------------------------------------
Disclaimer:

If you are not the intended recipient of this email, please notify the sender 
and delete it. 
Any unauthorized copying, disclosure or distribution of this email or its 
attachment(s) is forbidden. 
Thales Nederland BV will not accept liability for any damage caused by this 
email or its attachment(s). 
Thales Nederland BV is seated in Hengelo and is registered at the Chamber of 
Commerce under number 06061578.
------------------------------------------------------------------------------------------------------------

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

Reply via email to