do not skip first fps step window
This commit is contained in:
parent
28a01aaab7
commit
dc3ed750b1
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user