diff --git a/src/osgDB/DatabasePager.cpp b/src/osgDB/DatabasePager.cpp index fe11619ae..c1daadfd8 100644 --- a/src/osgDB/DatabasePager.cpp +++ b/src/osgDB/DatabasePager.cpp @@ -97,7 +97,7 @@ DatabasePager::DatabasePager() _targetFrameRate = 100.0; _minimumTimeAvailableForGLCompileAndDeletePerFrame = 0.001; // 1ms. - _maximumNumOfObjectsToCompilePerFrame = 8; + _maximumNumOfObjectsToCompilePerFrame = 4; if( (ptr = getenv("OSG_MINIMUM_COMPILE_TIME_PER_FRAME")) != 0) { _minimumTimeAvailableForGLCompileAndDeletePerFrame = atof(ptr); @@ -913,7 +913,6 @@ void DatabasePager::compileGLObjects(osg::State& state, double& availableTime) }; unsigned int numObjectsCompiled = 0; - unsigned int maxNumObjectsToCompile = 4; // while there are valid databaseRequest's in the to compile list and there is // sufficient time left compile each databaseRequest's stateset and drawables. @@ -921,7 +920,7 @@ void DatabasePager::compileGLObjects(osg::State& state, double& availableTime) { DataToCompileMap& dcm = databaseRequest->_dataToCompileMap; DataToCompile& dtc = dcm[state.getContextID()]; - if (!dtc.first.empty() && (elapsedTime+estimatedTextureDuration)