From 8bc76e3d588522d18d5dfacbff62f2ee31240d1d Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Sat, 15 Jun 2024 13:57:12 +0300 Subject: [PATCH] engine: host: do not specifically check timedemo or vsync in Host_CalcSleep, because it's already has been checked in Host_CalcFPS --- engine/common/host.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/engine/common/host.c b/engine/common/host.c index 7494f3f6..51b20676 100644 --- a/engine/common/host.c +++ b/engine/common/host.c @@ -325,13 +325,6 @@ Host_CalcSleep */ static int Host_CalcSleep( void ) { -#ifndef XASH_DEDICATED - // never sleep in timedemo for benchmarking purposes - // also don't sleep with vsync for less lag - if( CL_IsTimeDemo( ) || gl_vsync.value ) - return 0; -#endif - if( Host_IsDedicated() ) { // let the dedicated server some sleep @@ -606,7 +599,7 @@ static double Host_CalcFPS( void ) { double fps = 0.0; - if( Host_IsDedicated() ) + if( Host_IsDedicated( )) { fps = sys_ticrate.value; }