Hi Daniel,

On 5/11/06, Daniel Trstenjak <[EMAIL PROTECTED]> wrote:
see for example osg::Geometry::setColorBinding:

void setColorBinding(AttributeBinding ab) { _colorData.binding = ab; computeFastPathsUsed(); dirtyDisplayList(); }

dirtyDisplayList is also called when the current color binding
'_colorData.binding' is equal to the new color binding 'ab'.

This is the case for all setter methods.
The same is true for calls to dirtyBound.

Or I'm missing something ?

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?

Robert.
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to