]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - host.c
refactor timing, so that timing code is in sys_shared.c.
[xonotic/darkplaces.git] / host.c
diff --git a/host.c b/host.c
index 31ff4491b1e13dca7ce5ca1efcc52fa91fd5a350..c8a5c8ed301b12f747a3221a5b5db24124c35d9c 100644 (file)
--- a/host.c
+++ b/host.c
@@ -720,7 +720,7 @@ void Host_Main(void)
                if (!cls.timedemo && wait >= 1)
                {
                        double time0 = Sys_DoubleTime();
-                       if (sv_checkforpacketsduringsleep.integer)
+                       if (sv_checkforpacketsduringsleep.integer && !sys_usenoclockbutbenchmark.integer)
                                NetConn_SleepMicroseconds((int)wait);
                        else
                                Sys_Sleep((int)wait);