Improved the handling of compiling vs flushing deleted objects

This commit is contained in:
Robert Osfield
2011-06-15 18:31:11 +00:00
parent e36f239917
commit 17b9cfad02
2 changed files with 50 additions and 21 deletions

View File

@@ -255,6 +255,8 @@ class OSGUTIL_EXPORT IncrementalCompileOperation : public osg::GraphicsOperation
bool compile(CompileInfo& compileInfo);
bool compiled() const { return _numberCompileListsToCompile==0; }
OpenThreads::Atomic _numberCompileListsToCompile;
osg::observer_ptr<osg::Group> _attachmentPoint;
@@ -293,6 +295,8 @@ class OSGUTIL_EXPORT IncrementalCompileOperation : public osg::GraphicsOperation
virtual ~IncrementalCompileOperation();
void compileSets(CompileSets& toCompile, CompileInfo compileInfo);
double _targetFrameRate;
double _minimumTimeAvailableForGLCompileAndDeletePerFrame;
unsigned int _maximumNumOfObjectsToCompilePerFrame;