From f181bcbc355724310565666d1ef21049a2ab3dca Mon Sep 17 00:00:00 2001 From: havoc Date: Fri, 30 Dec 2005 11:14:05 +0000 Subject: [PATCH] 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 --- host.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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) { -- 2.39.2