Show
Ignore:
Timestamp:
08/05/09 13:06:53 (4 years ago)
Author:
robert
Message:

Moved the updating and expiry of the Registry object cache from DatabasePager? into osgViewer::Viewer/CompositeViewer.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/src/osgDB/DatabasePager.cpp

    r10473 r10520  
    909909    { 
    910910        _expiryDelay = osg::asciiToDouble(ptr); 
    911         osg::notify(osg::NOTICE)<<"Expiry delay = "<<_expiryDelay<<std::endl; 
     911        osg::notify(osg::NOTICE)<<"DatabasePager: Expiry delay = "<<_expiryDelay<<std::endl; 
    912912    } 
    913913 
     
    916916    { 
    917917        _expiryFrames = atoi(ptr); 
    918         osg::notify(osg::NOTICE)<<"Expiry frames = "<<_expiryFrames<<std::endl; 
     918        osg::notify(osg::NOTICE)<<"DatabasePager: Expiry frames = "<<_expiryFrames<<std::endl; 
    919919    } 
    920920 
     
    930930        } 
    931931             
    932         osg::notify(osg::NOTICE)<<"Release delay = "<<_releaseDelay<<std::endl; 
     932        osg::notify(osg::NOTICE)<<"DatabasePager: Release delay = "<<_releaseDelay<<std::endl; 
    933933    } 
    934934    else 
     
    17821782                              " B="<<time_b<<" avg="<<s_total_time_stage_b/s_total_iter_stage_b<<" max = "<<s_total_max_stage_b<< 
    17831783                              " C="<<time_c<<" avg="<<s_total_time_stage_c/s_total_iter_stage_c<<" max = "<<s_total_max_stage_c<<std::endl; 
    1784  
    1785      
    1786     if (osgDB::Registry::instance()->getSharedStateManager())  
    1787         osgDB::Registry::instance()->getSharedStateManager()->prune(); 
    1788  
    1789     // update the Registry object cache. 
    1790     osgDB::Registry::instance()->updateTimeStampOfObjectsInCacheWithExternalReferences(frameStamp.getReferenceTime()); 
    1791     osgDB::Registry::instance()->removeExpiredObjectsInCache(expiryTime); 
    17921784} 
    17931785 
     
    18841876    osg::notify(osg::INFO)<<"_activePagedLODList.size()="<<_activePagedLODList.size()<<" overall = "<<time<< 
    18851877                              " avg="<<s_total_time/s_total_iter<<" max = "<<s_total_max<<std::endl; 
    1886       
    1887     
    1888     if (osgDB::Registry::instance()->getSharedStateManager())  
    1889         osgDB::Registry::instance()->getSharedStateManager()->prune(); 
    1890  
    1891     // update the Registry object cache. 
    1892     osgDB::Registry::instance()->updateTimeStampOfObjectsInCacheWithExternalReferences(frameStamp.getReferenceTime()); 
    1893     osgDB::Registry::instance()->removeExpiredObjectsInCache(expiryTime); 
    1894  
    1895  
    18961878} 
    18971879