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

Robert Osfield robert.osfield at gmail.com
Fri May 29 08:53:19 PDT 2015

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.


On 29 May 2015 at 17:43, Xia Baobao <veryblankdvd.osg at gmail.com> 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
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

More information about the osg-users mailing list