do not skip first fps step window

This commit is contained in:
maksut 2023-10-14 19:28:19 +01:00
parent 28a01aaab7
commit dc3ed750b1

View File

@ -1230,7 +1230,7 @@ int GetFPS(void)
static int index = 0; static int index = 0;
static float history[FPS_CAPTURE_FRAMES_COUNT] = { 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(); float fpsFrame = GetFrameTime();
if (fpsFrame == 0) return 0; if (fpsFrame == 0) return 0;