Hi Robert, > Not missing anything, in the case what setting are set but not changed an > uncesseary dirtyDisplayList() is called. If the value isn't change would > could add an if statement to avoid the extra calls. Its not likely affect > things very much though in terms of performance as multiple > dirtyDisplayLists() has the same effect as a single call - you won't > actually force multiple regeneration of the display list. > > Do you have a specific performance concern here?
We had uncesseary regeneration of the display lists, because osg::Geometry::setColorBinding(...) was called with the same value as present in the geometry object. I think the additional if statement for all binding setter would cost nothing, but could yield a lot, like in our case. Daniel _______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
