Improved the handling of compiling vs flushing deleted objects
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user