mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2024-11-27 06:20:17 +00:00
fps display is time-scale independant
This commit is contained in:
parent
8cd3265ba5
commit
f7b2bdb933
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@ namespace SanAndreasUnity.Utilities {
|
||||||
void Update () {
|
void Update () {
|
||||||
|
|
||||||
// FPS counting
|
// FPS counting
|
||||||
fpsDeltaTime += (Time.deltaTime - fpsDeltaTime) * 0.1f;
|
fpsDeltaTime += (Time.unscaledDeltaTime - fpsDeltaTime) * 0.1f;
|
||||||
|
|
||||||
if (Input.GetKeyDown(KeyCode.F10))
|
if (Input.GetKeyDown(KeyCode.F10))
|
||||||
_showFPS = !_showFPS;
|
_showFPS = !_showFPS;
|
||||||
|
|
Loading…
Reference in a new issue