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:
parent
f6c5cd184a
commit
ce79b7efd5
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user