]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
added a host_frametime limit of 1 second, so that it never tries to run more than...
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 5 Nov 2004 00:17:16 +0000 (00:17 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 5 Nov 2004 00:17:16 +0000 (00:17 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4733 d7cf8633-e32d-0410-b094-e92efae38249

host.c

diff --git a/host.c b/host.c
index 334817de0b60f4206c2b188828036aeb273a62d6..1a99f7481b71f96b85dc4f4b7ac0c0976daee97b 100644 (file)
--- 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;