From Lars Nillson, "The change in this submission is to take care of the setting given by a call to

setMaximumNumOfObjectsToCompilePerFrame(…).


Sometimes if you give a low number, more than the expected number of objects are compiled."
This commit is contained in:
Robert Osfield 2013-06-24 11:14:13 +00:00
parent ca2688b046
commit 0896bd17bd
2 changed files with 2 additions and 2 deletions

View File

@ -295,7 +295,7 @@ class OSGUTIL_EXPORT IncrementalCompileOperation : public osg::GraphicsOperation
virtual ~IncrementalCompileOperation();
void compileSets(CompileSets& toCompile, CompileInfo compileInfo);
void compileSets(CompileSets& toCompile, CompileInfo& compileInfo);
double _targetFrameRate;
double _minimumTimeAvailableForGLCompileAndDeletePerFrame;

View File

@ -724,7 +724,7 @@ void IncrementalCompileOperation::operator () (osg::GraphicsContext* context)
//glFinish();
}
void IncrementalCompileOperation::compileSets(CompileSets& toCompile, CompileInfo compileInfo)
void IncrementalCompileOperation::compileSets(CompileSets& toCompile, CompileInfo& compileInfo)
{
osg::NotifySeverity level = osg::INFO;