Added debugging messages to help monitor expiry of inactive children. Debug

messages current #if 0'd out, but added now for future tests when required.
This commit is contained in:
Robert Osfield 2008-01-19 13:41:43 +00:00
parent d2aaa26c88
commit 0a383d857c

View File

@ -908,7 +908,8 @@ void DatabasePager::addLoadedDataToSceneGraph(double timeStamp)
void DatabasePager::removeExpiredSubgraphs(double currentFrameTime)
{
//osg::notify(osg::NOTICE)<<"DatabasePager::removeExpiredSubgraphs()"<<std::endl;
// osg::Timer_t before = osg::Timer::instance()->tick();
double expiryTime = currentFrameTime - _expiryDelay;
@ -1016,6 +1017,27 @@ void DatabasePager::removeExpiredSubgraphs(double currentFrameTime)
//osg::notify(osg::NOTICE)<<" time 1 "<<t<<" ms "<<_pagedLODList.size()<<" pagedLOD's"<<std::endl;
//osg::notify(osg::NOTICE)<<" average time = "<<t/(double)_pagedLODList.size()<<" ms/per PagedLOD"<<std::endl;
#if 0
int s_numActive = 0;
int s_numInactive = 0;
int s_numRemoved = 0;
int numActive = _activePagedLODList.size();
int numInactive = _inactivePagedLODList.size();
int numRemoved = childrenRemoved.size();
if (s_numActive != numActive ||
s_numInactive != numInactive ||
s_numRemoved != numRemoved)
{
osg::notify(osg::NOTICE)<<"numActive="<<numActive<<", numInactive="<<numInactive<<", numRemoved="<<numRemoved<<std::endl;
s_numActive = numActive;
s_numInactive = numInactive;
s_numRemoved = numRemoved;
}
#endif
if (!childrenRemoved.empty())
{
// pass the objects across to the database pager delete list