Added methods for checking sizes of various buffer object/texture object pool sizes.

This commit is contained in:
Robert Osfield
2010-12-14 19:29:01 +00:00
parent 4b4b438d44
commit 65f95fe3fe
5 changed files with 119 additions and 20 deletions

View File

@@ -187,10 +187,10 @@ public:
void report(std::ostream& out)
{
OSG_NOTICE<<"Nodes "<<_nodes.size()<<std::endl;
OSG_NOTICE<<"Geometries "<<_geometryMap.size()<<std::endl;
OSG_NOTICE<<"Arrays "<<_arrayMap.size()<<std::endl;
OSG_NOTICE<<"PrimitiveSets "<<_primitiveSetMap.size()<<std::endl;
out<<"Nodes "<<_nodes.size()<<std::endl;
out<<"Geometries "<<_geometryMap.size()<<std::endl;
out<<"Arrays "<<_arrayMap.size()<<std::endl;
out<<"PrimitiveSets "<<_primitiveSetMap.size()<<std::endl;
}
void reallocate()
@@ -551,8 +551,8 @@ public:
{
if (ea.getKey()=='r')
{
osg::Texture::getTextureObjectManager(0)->reportStats();
osg::GLBufferObjectManager::getGLBufferObjectManager(0)->reportStats();
osg::Texture::getTextureObjectManager(0)->reportStats(osg::notify(osg::NOTICE));
osg::GLBufferObjectManager::getGLBufferObjectManager(0)->reportStats(osg::notify(osg::NOTICE));
}
}
return false;