Hi Zach,

On 1/19/07, Zach Deedler <[EMAIL PROTECTED]> wrote:
Hi Robert and Paul,

Would it be possible to have a StatsNode?  A node that collects stats of its
children?  Then we could make a InsertStatsNodeVisitor to specifically look
at stats of different parts of the scene graph.

//pseudo-code
statsNode = new osg::StatsNode( someType ); //create stats node
InsertStatsNodeVisitor("node1", statsNode); //insert stats node above node
named node1

I don't know if this is viable though.  Can you start the timer of the stats
node, and end the timer at the right points?

While technical possible to have a StatsNode for collecting traversal
stats, I don't think its a sensible node to add to a scene graph.

You can collect traversal stats with a simple NodeCallback as is, so I
think this is the way to go if you want to collect stats about a node.

Robert.
_______________________________________________
osg-users mailing list
osg-users@openscenegraph.net
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to