From: havoc Date: Fri, 30 Dec 2005 11:14:05 +0000 (+0000) Subject: disabled running of multiple server frames per host frame, because it does not handle... X-Git-Tag: xonotic-v0.1.0preview~4411 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=f181bcbc355724310565666d1ef21049a2ab3dca;p=xonotic%2Fdarkplaces.git disabled running of multiple server frames per host frame, because it does not handle overload gracefully (instead it makes the framerate significantly worse if the server frame is the bottleneck) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5880 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/host.c b/host.c index 27d7453b..974ce9ab 100644 --- 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) {