Introduced use of MarkerObject to IncrmentalCompileOperation/DatabasePager as a way of marking objects that have already been processed and compiled,
thus avoid potential threading conflicts when paged subgraphs are reused. git-svn-id: http://svn.openscenegraph.org/osg/OpenSceneGraph/trunk@14470 16af8721-9629-0410-8352-f15c8da7e697
This commit is contained in:
@@ -286,6 +286,9 @@ class OSGDB_EXPORT DatabasePager : public osg::NodeVisitor::DatabaseRequestHandl
|
||||
virtual bool containsPagedLOD(const osg::observer_ptr<osg::PagedLOD>& plod) const = 0;
|
||||
};
|
||||
|
||||
void setMarkerObject(osg::Object* mo) { _markerObject = mo; }
|
||||
osg::Object* getMarkerObject() { return _markerObject.get(); }
|
||||
const osg::Object* getMarkerObject() const { return _markerObject.get(); }
|
||||
|
||||
protected:
|
||||
|
||||
@@ -469,6 +472,8 @@ class OSGDB_EXPORT DatabasePager : public osg::NodeVisitor::DatabaseRequestHandl
|
||||
double _maximumTimeToMergeTile;
|
||||
double _totalTimeToMergeTiles;
|
||||
unsigned int _numTilesMerges;
|
||||
|
||||
osg::ref_ptr<osg::Object> _markerObject;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user