fps display is time-scale independant

This commit is contained in:
in0finite 2019-07-09 21:29:47 +02:00
parent 8cd3265ba5
commit f7b2bdb933

View file

@ -29,7 +29,7 @@ namespace SanAndreasUnity.Utilities {
void Update () {
// FPS counting
fpsDeltaTime += (Time.deltaTime - fpsDeltaTime) * 0.1f;
fpsDeltaTime += (Time.unscaledDeltaTime - fpsDeltaTime) * 0.1f;
if (Input.GetKeyDown(KeyCode.F10))
_showFPS = !_showFPS;