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" <[email protected]>: > 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 > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

