From dc3ed750b1dc1842626939e256860b42088b9197 Mon Sep 17 00:00:00 2001 From: maksut Date: Sat, 14 Oct 2023 19:28:19 +0100 Subject: [PATCH] do not skip first fps step window --- src/rcore.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rcore.c b/src/rcore.c index e4c852843..58ecd4e38 100644 --- a/src/rcore.c +++ b/src/rcore.c @@ -1230,7 +1230,7 @@ int GetFPS(void) static int index = 0; static float history[FPS_CAPTURE_FRAMES_COUNT] = { 0 }; - static float average = 0, wait = 0; + static float average = 0, wait = FPS_STEP; float fpsFrame = GetFrameTime(); if (fpsFrame == 0) return 0;