engine: host: do not specifically check timedemo or vsync in Host_CalcSleep, because it's already has been checked in Host_CalcFPS

This commit is contained in:
Alibek Omarov 2024-06-15 13:57:12 +03:00
parent 1a5e2b907d
commit 8bc76e3d58

View file

@ -325,13 +325,6 @@ Host_CalcSleep
*/ */
static int Host_CalcSleep( void ) 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() ) if( Host_IsDedicated() )
{ {
// let the dedicated server some sleep // let the dedicated server some sleep
@ -606,7 +599,7 @@ static double Host_CalcFPS( void )
{ {
double fps = 0.0; double fps = 0.0;
if( Host_IsDedicated() ) if( Host_IsDedicated( ))
{ {
fps = sys_ticrate.value; fps = sys_ticrate.value;
} }