]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
disabled running of multiple server frames per host frame, because it does not handle...
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 30 Dec 2005 11:14:05 +0000 (11:14 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 30 Dec 2005 11:14:05 +0000 (11:14 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5880 d7cf8633-e32d-0410-b094-e92efae38249

host.c

diff --git a/host.c b/host.c
index 27d7453b82dc44ae2e1a03b7404e02ec525fd5e8..974ce9ab7625f5b77ae491c972e014e4bc15d1cf 100644 (file)
--- a/host.c
+++ b/host.c
@@ -651,8 +651,11 @@ Host_ServerFrame
 */
 void Host_ServerFrame (void)
 {
-       // never run more than 5 frames at a time as a sanity limit
-       int framecount, framelimit = 5;
+       // never run more than 1 frame per call because multiple frames per call it
+       // does not handle overload gracefully, slowing down is better than a
+       // sudden significant drop in framerate (or worse, freezing until the
+       // problem goes away)
+       int framecount, framelimit = 1;
        double advancetime;
        if (!sv.active)
        {