I’ve seen a few scripts that do all kinds of “delta time” trickery, averaging and what not. I thought I’d just do the “simplest possible FPS counter” instead. Just something in addition to Unity’s built-in stats I can have in the corner of my .exe window:
using UnityEngine;
public class FpsCounter : MonoBehaviour {
void Update ()
{
guiText.text = (1f / Time.deltaTime) + " FPS";
}
}
Time.deltaTime is clearly defined as The time in seconds it took to complete the last frame. If this is correct, what’s wrong the either the above code or Unity’s built-in Stats panel? Because I consistently get completely different FPS for both counters as demonstrated below:

Griffo
2
“The frame counter in the stats only tells you how long it takes to draw the graphics.”
http://forum.unity3d.com/threads/42608-Is-my-frames-per-second-counter-correct