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:
parent
1a5e2b907d
commit
8bc76e3d58
1 changed files with 1 additions and 8 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue