Hi Bryan,

From experience, I can say that one dynamic_cast per frame per node can really 
add up to hurt performance :)

Depends how many nodes. For example, for osgOcean::OceanScene, you should generally have only one in your whole scene. So in that case,

  one dynamic_cast per frame per node == one dynamic_cast per frame

Of course, I wouldn't advocate doing one dynamic_cast per frame in a node that's going to be used all over the place, hundreds of thousands of times in the scene... :-)

J-S
--
______________________________________________________
Jean-Sebastien Guay    [email protected]
                               http://www.cm-labs.com/
                        http://whitestar02.webhop.org/
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to