Misc: io.Framerate moving average now converge in 60 frames instead of 120. (#5236, #4138)

This commit is contained in:
ocornut
2022-07-01 17:06:56 +02:00
parent 67410d53f7
commit 467a1cd4a5
3 changed files with 3 additions and 2 deletions

View File

@ -1828,7 +1828,7 @@ struct ImGuiContext
ImGuiStackTool DebugStackTool;
// Misc
float FramerateSecPerFrame[120]; // Calculate estimate of framerate for user over the last 2 seconds.
float FramerateSecPerFrame[60]; // Calculate estimate of framerate for user over the last 60 frames..
int FramerateSecPerFrameIdx;
int FramerateSecPerFrameCount;
float FramerateSecPerFrameAccum;