From: havoc Date: Fri, 5 Nov 2004 00:17:16 +0000 (+0000) Subject: added a host_frametime limit of 1 second, so that it never tries to run more than... X-Git-Tag: xonotic-v0.1.0preview~5397 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=6d2197c855a6a7797d5ca297a4279ab0367bca77;p=xonotic%2Fdarkplaces.git added a host_frametime limit of 1 second, so that it never tries to run more than 1 second per frame git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4733 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/host.c b/host.c index 334817de..1a99f748 100644 --- a/host.c +++ b/host.c @@ -607,6 +607,10 @@ qboolean Host_FilterTime (double time) if (host_framerate.value) host_frametime = host_framerate.value; + // never run a frame longer than 1 second + if (host_frametime > 1) + host_frametime = 1; + cl.frametime = host_frametime; return true;