Jean-Sébastien Guay wrote on Tuesday, November 10, 2009 10:55 AM:
> Are there advantages to modifying CullVisitor rather than overriding
> traverse(), other than one dynamic_cast per frame per node? I think if
> that's the only advantage, I'd personally prefer keeping all the code
> related to the node type local to the type itself, even if that node
> type were to be included into OSG.
> 
> But that's a coding style concern, I just want to know what you think
> about this and if there's something I have missed.

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

-- 
Bryan Thrall
FlightSafety International
bryan.thr...@flightsafety.com
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to