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

Reply via email to