From 8bfcfa7e7045e92c2837fb5d756c55d1bf9ac1c2 Mon Sep 17 00:00:00 2001 From: Yamagi Burmeister Date: Mon, 2 Oct 2017 20:48:47 +0200 Subject: [PATCH] Fix Sys_*seconds() on legacy Windows versions. Returning 'microseconds / 1000ll' at the first call is wrong, the game would thing that the first frame too way too much time. For some reason this wirks in (my) Win10, but breaks on (my) Win7... --- src/backends/windows/system.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backends/windows/system.c b/src/backends/windows/system.c index 94c42673..3fa51479 100644 --- a/src/backends/windows/system.c +++ b/src/backends/windows/system.c @@ -432,7 +432,7 @@ Sys_Microseconds(void) if (!uSecbase) { - uSecbase = microseconds / 1000ll; + uSecbase = microseconds - 1001ll; } return microseconds - uSecbase;