Hi Tony et al,

On Fri, Mar 14, 2008 at 11:36 AM, Robert Osfield
<[EMAIL PROTECTED]> wrote:
>  While I wait for feedback on the OSX I'll ponder on this issue so more
>  to see if I can come up with quick solution, but it may well be
>  something that requires more extensive changes beyond
>  StateSetManipulator and hence more time so would have to wait till
>  after 2.3.5.

I've implemented a solution to the threading issue in
StateSetManipulator.  The solution is to clone the StateSet before
modifying it, and reassigned this cloned StateSet to the parents of
the original StateSet.  This process effectively disconnects the
original StateSet from the scene graph but otherwise keeps all its
variable in tack - so the that the draw traversal that will be running
in parallel with the updates (when multi-threaded) will not be
affected as it's got its own ref_ptr<> to the StateSet.

My testing at this end suggest that the fixes is solid.  If things
work out this is possible solution that I could add directly to
StateSet, providing a convenience function for doing this cloning and
reassignment.

Could you do an svn update and let me know if the fix works at you end as well.

Thanks,
Robert.
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to