[osg-users] Fast move a lot of nodes to another group

Sebastian Messerschmidt sebastian.messerschmidt at gmx.de
Tue Apr 4 06:56:00 PDT 2017

Am 4/4/2017 um 3:53 PM schrieb Yura Ivanov:
> Nodes are unique quads with editable geometry. I had no problem with performance exept removeChild when i tried to move them into transform matrix.
If you're actually holding all the childs in a single group, the remove 
will become horribly expensive (due to removal somewhere in the vector). 
Try to restructure your group to have a tree-like substructure 
(basically a quad-tree) to have smaller sets to work with.

>  I would be nice if osg will have function to move node to another group whithout internal std remove and erease.
> P.S. Sorry if my english is bad.

> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=70658#70658
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

More information about the osg-users mailing list