Added a #ifdef 0 code block to test setting of the StateSetManipulator's DataVariance to DYNAMIC

to solve a threading issue relating to mixing of StateSetManipulator and
DrawThreadPerContext.
This commit is contained in:
Robert Osfield 2007-10-02 20:55:33 +00:00
parent f6c5cd184a
commit ce79b7efd5

View File

@ -33,6 +33,13 @@ StateSetManipulator::~StateSetManipulator()
void StateSetManipulator::setStateSet(StateSet *stateset)
{
_stateset = stateset;
#if 0
// specify that this stateset is dynamic so it prevents
// the draw and update phase from overlapping - good for
// stability but breaks all the performance advantage of
// DrawThreadPerContex.
_stateset->setDataVariance(osg::Object::DYNAMIC);
#endif
}
StateSet *StateSetManipulator::getStateSet()