[osg-users] Setting CullVisitor

Thrall, Bryan bryan.thrall at flightsafety.com
Tue Nov 10 11:02:34 PST 2009


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.thrall at flightsafety.com


More information about the osg-users mailing list