[osg-users] Record the time of update traversal and cull traversal

Xia Baobao veryblankdvd.osg at gmail.com
Mon Jun 1 20:27:54 PDT 2015


Thanks Robert.
It has been a nice tour reading StatsHandler.cpp . And I'm happy to see I can play with osg::Stats now.

I'm not an experienced coder, so reading code is always difficult for me. You have suggested me to read DatebasePager in another post. But I found it too hard for me. Fortunately StatsHandler.cpp is easier this time. And I enjoyed the tour of learning from reading code.
Thanks again for you help.


robertosfield wrote:
> Hi Xia,
> 
> The stats information is stored in the osg::Stats object, these can be
> assigned to different objects in the scene graph, such as the Viewer's
> Camera.  The StatsHandler simply reads these Stats objects and creates
> text and graphs for reporting onscreen.  Have a look at the
> implementation of StatsHandler
> (OpenSceneGaph/src/osgViewer/StatsHandler.cpp to see how the Stats are
> all recorded and accessed.
> 
> Robert.
> 
> On 29 May 2015 at 17:43, Xia Baobao <> wrote:
> 
> > Hi,
> > 
> > Thanks to osgViewer::StatsHandler, I can see the time of update traversal, cull traversal, draw and so on.
> > However, I am unable to record them.
> > Now I want to collect the time of update traversal and cull traversal of each frame, and write them to files.
> > How to?
> > 
> > Thank you!
> > 
> > Cheers,
> > Xia
> > 
> > ------------------
> > Read this topic online here:
> > http://forum.openscenegraph.org/viewtopic.php?p=63884#63884
> > 
> > 
> > 
> > 
> > 
> > _______________________________________________
> > osg-users mailing list
> > 
> > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
> > 
> _______________________________________________
> osg-users mailing list
> 
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
> 
>  ------------------
> Post generated by Mail2Forum


------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=63916#63916








More information about the osg-users mailing list