Hi
one node callback can be called multiple times per frame if node is shared in
several graph paths (and iirc event callbacks can be called once per event
happened between frames).
If you just need to know framerate - there are osgViewer::StatsHandler.
Other than that - you should track frame number (you can get those from
nodevisitor framestamp).
Cheers.
16.10.2012, 01:46, "wang shuiying" :
> Hello,
>
> I have a very naive question. But I really need to make sure about it.
>
> In one osg::viewer thread, if the time difference between two
> successive update callbacks (or drawCallbacks)of one osg::node is equal
> to T(s), then can I say that the corresponding FPS of GPU is 1/T?
>
> Thank you in advance!
>
> Shuiying
> ___
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org