Hi Robert, I just noticed that this patch causes significant slowdown on very large/flat scene graphs. The slowdown seems to be caused by inserting values into the multimap. Unless we can come up with a better solution, I would suggest abandoning this optimization.
Cheers, Farshid On Thu, Mar 17, 2011 at 11:28 AM, Farshid Lashkari <[email protected]> wrote: > Hi Robert, > > I've attached the optimization to IntersectionVisitor we previously > discussed, which traverses group children by bounding sphere depth order > when using the LIMIT_NEAREST mode. > > I'm not sure what is the best method for overriding the traversal order of > group nodes, so let me know if there is a more efficient method. Basically, > I create a dummy node visitor that traverses the groups children and saves > them in a multimap ordered by their bounding sphere depth. > The IntersectionVisitor then iterates through the multimap and manually > calls "accept" on the nodes. > > Cheers, > Farshid >
_______________________________________________ osg-submissions mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
