]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - host.c
changed Sys_Sleep from (void) to (int milliseconds), now wastes a lot less cpu time...
[xonotic/darkplaces.git] / host.c
diff --git a/host.c b/host.c
index f1943a74f3dd380a4688ce81adc9181da3011105..09683f911428e8a1e8a976b0e44d1fced119068a 100644 (file)
--- a/host.c
+++ b/host.c
@@ -577,7 +577,7 @@ qboolean Host_FilterTime (double time)
                {
                        // don't totally hog the CPU
                        if (timeleft >= 0.02)
-                               Sys_Sleep();
+                               Sys_Sleep(timeleft * 1000 - 5);
                        return false;
                }
        }