Hi John,

osg::Timer is your friend, use it to state the delta between frames,
inverse this and its your frame rate.

Robert.

On 10/23/06, Argentieri, John-P63223 <[EMAIL PROTECTED]> wrote:
Hehe.. It figures. I used up my miracle on holding a job. Maybe it would
be sufficient for me to calculate the framerate. Is there a common way
of doing this? Right now, I am setting the framestamp on SceneView
frames with a correct time. I think I could use that to calculate a
framerate, but would this be a correct approach in your estimation? I
know there is some threading involved beneath the scenes that I am not
really aware of and that is why I have a small doubt about this.
Thanks a million.

John

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Robert
Osfield
Sent: Monday, October 23, 2006 11:50 AM
To: osg users
Subject: Re: [osg-users] Sceneview and Framestats?

On 10/23/06, Argentieri, John-P63223 <[EMAIL PROTECTED]> wrote:
> Hey Guys...
>
> Just a quick question for you. What would it take to add the
> framestats from osgProducer::Viewer into an application that uses
osgUtil::SceneView?

A miracle :)

Well its not really that hard, but the code uses Producer for frame
stats, so you'll need to collect these all yourself, and then write your
own code to render the stats.  Review the
src/osgProducer/ViewerEventHandler.cpp code for insipriation.

Robert.
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to