From 984fdd06a86a781856fe147b9c3a9b3a0aeba0bd Mon Sep 17 00:00:00 2001 From: havoc Date: Fri, 18 Sep 2009 11:20:31 +0000 Subject: [PATCH] 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 --- host.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.39.2