Sign in to follow this  
hothopper

Frame Rate Parameter?

Recommended Posts

Is there a parameter I can pick up to monitor the frame rate?I'm new at gauge building and am starting with a simple but useful project: monitor the frame rate and if it falls below a pre-determine threshold value, play a tone and display the current rate in a small box, then continue to display the rate until it rises a little above the threshold. I've read through Microsoft's panel and gauge SDK, but can't find a parameter to call to get the frame rate. Any help would be appreciated.On the other hand, if anyone knows of such a gauge, please let me know. No use duplicating efforts!Thanks,Ron

Share this post


Link to post
Share on other sites
Help AVSIM continue to serve you!
Please donate today!

Have you finaly done this gauge? I am interested on it. That I know, you can only get that parameter through fsuipc. Anyone can help?Thank youAlberto

Share this post


Link to post
Share on other sites

I haven't looked into FSUIPC as a source of the data. Your reply is the only one I have received. I wouldn't think this would be very difficult to do, though.

Share this post


Link to post
Share on other sites

With C gauges it is possible to get the FPS indirectly: the gauge_cb repeatedly called at different times. If the service_id is PANEL_SERVICE_PRE_DRAW a frame is drawn, also PANEL_SERVICE_PRE_UPDATE is called 18 times per sec. With a bit of averaging and trickery the FPS can be deduced from these two events, but I admit there is no easy way to read FPS directly.Arne Bartels

Share this post


Link to post
Share on other sites

Sounds both clever and tricky to me. Great idea!Just FYI for everyone out there, I originally started this project several months ago when I got laid off from a computer company I had worked for for 23 years. Now I'm starting to get some steady consulting business and will have to put this project on the back burner until possibly some future date. Thanks for all of your replies.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this