mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2024-11-22 03:53:04 +00:00
add "FPS" and "smooth FPS" to MISC stats
This commit is contained in:
parent
b096e4a2bd
commit
e8b5b0f479
1 changed files with 2 additions and 0 deletions
|
@ -204,6 +204,8 @@ namespace SanAndreasUnity.Stats
|
|||
AddAsMs(sb, "fixed delta time", Time.fixedDeltaTime);
|
||||
AddAsMs(sb, "smooth delta time", Time.smoothDeltaTime);
|
||||
AddAsMs(sb, "maximum delta time", Time.maximumDeltaTime);
|
||||
Add(sb, "FPS", Mathf.RoundToInt(1.0f / Time.deltaTime).ToString());
|
||||
Add(sb, "smooth FPS", Mathf.RoundToInt(1.0f / Time.smoothDeltaTime).ToString());
|
||||
Add(sb, "frame count", $"{(Time.frameCount / 1000.0):0.00} K");
|
||||
Add(sb, "rendered frame count", $"{(Time.renderedFrameCount / 1000.0):0.00} K");
|
||||
m_nestingLevel--;
|
||||
|
|
Loading…
Reference in a new issue