From: havoc Date: Fri, 18 Sep 2009 11:20:31 +0000 (+0000) Subject: fix framerate limiting - when cl_maxfps is 0, run client frames even if X-Git-Tag: xonotic-v0.1.0preview~1417 X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=commitdiff_plain;h=984fdd06a86a781856fe147b9c3a9b3a0aeba0bd fix framerate limiting - when cl_maxfps is 0, run client frames even if 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 --- diff --git a/host.c b/host.c index afccfccc..76e8236b 100644 --- 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)