I know I've seen examples years ago, but can someone remind me how I would display the actual FPS of my game.
(need to test speed on a mobile devise so I need it during actual runtime, not durring debug mode)
thanks
Printable View
I know I've seen examples years ago, but can someone remind me how I would display the actual FPS of my game.
(need to test speed on a mobile devise so I need it during actual runtime, not durring debug mode)
thanks
With MMF2 you have an expression to get the FPS
in MMF1.5 we used to have a counter, and always added 1 to it. Every one sec we had the FPS and set the counter back to 0.
thanks much :) silly me, it was right under my nose as a built in feature.
Always->Set counter to FrameRate.
Gotta say, it's really nice to be able to run a game in HD and never see that counter drop below 60.
I'd never noticed that was under Frame expressions. That's good.
Awesome! thank you!
The FrameRate expression is AFAIK only the desired framerate, NOT the actual framerate. If you wish to see the actual FPS, you need to do as before:
always -> add 1 to some invisible counter
every 1 second -> set visible counter to the value of the invisible one, and then reset the invisible one to 0.
Not true! The framerate expression display the actuall framerate of the application. I know it, I programmed it!
Yeah, looking at my application - it certainly appears to give an accurate account of the actual framerate.
I'd think it's marginally better performance-wise, using the Framerate expression too cos it's a function of the MMF2 engine, rather than constantly adding to counters.
Good man, Francois!
Which of the event that displays FPS is correct?
- Always: Set counter to FrameRate
- Every 01-"00: Set counter to FrameRate