Show
Ignore:
Timestamp:
10/03/09 11:25:23 (4 years ago)
Author:
robert
Message:

Introduced new GLBufferObject pool for managing the memory footprint taken up by VertexBufferObejct?, ElementBufferObject? and PixelBufferObject?.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/src/osg/State.cpp

    r10590 r10601  
    9090 
    9191    _maxTexturePoolSize = 0; 
    92     _maxVBOPoolSize = 0; 
    93     _maxFBOPoolSize = 0; 
     92    _maxBufferObjectPoolSize = 0; 
    9493} 
    9594 
     
    233232} 
    234233 
    235 void State::setMaxVBOPoolSize(unsigned int size) 
    236 { 
    237     _maxVBOPoolSize = size; 
    238     osg::notify(osg::NOTICE)<<"_maxVBOPoolSize="<<_maxVBOPoolSize<<std::endl; 
    239 } 
    240  
    241 void State::setMaxFBOPoolSize(unsigned int size) 
    242 { 
    243     _maxFBOPoolSize = size; 
    244     osg::notify(osg::NOTICE)<<"_maxFBOPoolSize="<<_maxFBOPoolSize<<std::endl; 
     234void State::setMaxBufferObjectPoolSize(unsigned int size) 
     235{ 
     236    _maxBufferObjectPoolSize = size; 
     237    osg::GLBufferObjectManager::getGLBufferObjectManager(getContextID())->setMaxGLBufferObjectPoolSize(_maxBufferObjectPoolSize); 
     238    osg::notify(osg::NOTICE)<<"_maxBufferObjectPoolSize="<<_maxBufferObjectPoolSize<<std::endl; 
    245239} 
    246240