Strange frame rate problem

Hello,

I am working on a small demo and I am using a unifycommunity.com script to display the frame rate: http://www.unifycommunity.com/wiki/index.php?title=FramesPerSecond

Running the application inside Unity 3 editor the application script display 75FPS but the editor statistic box display 170FPS… which one is the real framerate?

In general I think that unity editor is right, but in this situation is the unifycommunity.com script wrong?

Thanks in advance for any answer.
Kenshin

…ping…

Any idea? :slight_smile:

FPS is all relative… could be the average from when the app started or just the last second.

I don’t see anything wrong with the wiki script, and I don’t usually trust the crazy high numbers.
I would have expected them to be similar though.

The stats window just show the graphics draw speed (not including script/code, cpu stuff) doesn’t it…
The unify script will show the true frame rate.
App will also run better outside the editor when it does not have to update the scene view and editor debug info etc
Depending on what platform you run your project it may also max out around 60fps or your monitor’s refresh rate.

Thanks guys for your explanation, now I understand a little bit better why I have difference between Editor statistics and script (both inside and outside editor).

I have another question: this script is the best system for calculate fps (and then percformance) of my game on various PC or exist a better system?

What are you using in your applications?