From 9ff4d838df95cbce9fcc1b6a14eef7f15dd72e86 Mon Sep 17 00:00:00 2001 From: Ne_Eo Date: Fri, 12 Jul 2024 16:24:36 +0200 Subject: [PATCH] Meow From phone --- source/funkin/backend/system/framerate/FramerateCounter.hx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/funkin/backend/system/framerate/FramerateCounter.hx b/source/funkin/backend/system/framerate/FramerateCounter.hx index 931ba9d6..e07a2e02 100644 --- a/source/funkin/backend/system/framerate/FramerateCounter.hx +++ b/source/funkin/backend/system/framerate/FramerateCounter.hx @@ -19,7 +19,9 @@ class FramerateCounter extends Sprite { fpsHistory = new Vector(FRAME_TIME_HISTORY); // Initialize to 60 FPS, so that the initial estimation until we get enough data is always reasonable. - fpsHistory.fill(1000.0 / 60.0); + for(i in 0...FRAME_TIME_HISTORY) { + fpsHistory[i] = 1000.0 / 60.0; + } fpsNum = new TextField(); fpsLabel = new TextField();