From b927f991d68577be5e2c8291748e2520df8a5a75 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Wed, 12 Dec 2018 23:40:29 +1100 Subject: [PATCH] Revert "[client] improve fps target accuracy" This reverts commit 4d7e1054bd27a8577fbd75c69126a82e115828b4. This causes FPS runaway after a time --- client/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/main.c b/client/main.c index 27c84ef2..4dd96fd9 100644 --- a/client/main.c +++ b/client/main.c @@ -224,7 +224,7 @@ int renderThread(void * unused) { usleep(state.fpsSleep - total); int64_t delta = (1000000 / params.fpsLimit) - (microtime() - start); - state.fpsSleep += delta; + state.fpsSleep += delta / 16; if (state.fpsSleep < 0) state.fpsSleep = 0; }