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:
parent
ca2688b046
commit
0896bd17bd
@ -295,7 +295,7 @@ class OSGUTIL_EXPORT IncrementalCompileOperation : public osg::GraphicsOperation
|
|||||||
|
|
||||||
virtual ~IncrementalCompileOperation();
|
virtual ~IncrementalCompileOperation();
|
||||||
|
|
||||||
void compileSets(CompileSets& toCompile, CompileInfo compileInfo);
|
void compileSets(CompileSets& toCompile, CompileInfo& compileInfo);
|
||||||
|
|
||||||
double _targetFrameRate;
|
double _targetFrameRate;
|
||||||
double _minimumTimeAvailableForGLCompileAndDeletePerFrame;
|
double _minimumTimeAvailableForGLCompileAndDeletePerFrame;
|
||||||
|
@ -724,7 +724,7 @@ void IncrementalCompileOperation::operator () (osg::GraphicsContext* context)
|
|||||||
//glFinish();
|
//glFinish();
|
||||||
}
|
}
|
||||||
|
|
||||||
void IncrementalCompileOperation::compileSets(CompileSets& toCompile, CompileInfo compileInfo)
|
void IncrementalCompileOperation::compileSets(CompileSets& toCompile, CompileInfo& compileInfo)
|
||||||
{
|
{
|
||||||
osg::NotifySeverity level = osg::INFO;
|
osg::NotifySeverity level = osg::INFO;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user