]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
fix framerate limiting - when cl_maxfps is 0, run client frames even if
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 18 Sep 2009 11:20:31 +0000 (11:20 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 18 Sep 2009 11:20:31 +0000 (11:20 +0000)
cl_timer has not advanced, this allows framerates above 1000, and
makes framerates very consistent (rather than chaotic) in the 200-1000
range as well

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9215 d7cf8633-e32d-0410-b094-e92efae38249

host.c

diff --git a/host.c b/host.c
index afccfcccc40f69e20bdd1dc8b2c361546fbbe1be..76e8236b1010cfc6265efba1b1b2c20691e7360a 100644 (file)
--- a/host.c
+++ b/host.c
@@ -823,7 +823,7 @@ void Host_Main(void)
        //
        //-------------------
 
-               if (cls.state != ca_dedicated && (cl_timer > 0 || cls.timedemo))
+               if (cls.state != ca_dedicated && (cl_timer > 0 || cls.timedemo || cl_maxfps.value < 1))
                {
                        // decide the simulation time
                        if (cls.capturevideo.active)