Statistics window FPS is not consistent with computed FPS

Hi !

I am displaying the fps with a code snippet from the wiki (using Time.deltaTime) and I also display the statistics windows in the game viewport.

There is always a big difference between the two displayed FPS. For example, with a small texture upload for a plugin, Time.deltaTime gives me 64fps and the statistic window gives me 110fps.

Why is there such a difference and which one should I trust ? Thanks.

(As the computed fps (with Time.deltaTime) can also be displayed when the application is built and run outside the editor I suppose I should trust it but I still don't know shy is there such a difference)

The stats window tries to predict what your actual frame rate will be in your final build, by ignoring some of the overhead of other editor operations. Using your own fps counter is a good idea, but your frame rate will be lower in the editor than in an actual build, so be sure to test both.

See this question for more info.