Jason Daly wrote on Friday, July 10, 2009 1:25 PM: > Jean-Sébastien Guay wrote: >> >> OSG sorts by state to minimize state changes, but I'm not sure how it >> does the sort. > > I believe the state sort is done using the compare() method of > StateAttribute. In the case of Uniforms, the comparison is pretty > thorough (first data type, then number of elements, then actually > comparing the data values of each element).
The facility is there for comparing StateSets and StateAttributes, but is disabled (see osgUtil::RenderBin::sortByState()) for performance reasons. -- Bryan Thrall FlightSafety International [email protected] _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

