Browse Source

Fix high CPU load on Linux

pull/2/head
Alibek Omarov 7 years ago
parent
commit
7d37ff33aa
  1. 2
      engine/common/system.c

2
engine/common/system.c

@ -204,7 +204,7 @@ void Sys_Sleep( int msec ) @@ -204,7 +204,7 @@ void Sys_Sleep( int msec )
Sleep( msec );
#elif XASH_TIMER == TIMER_SDL
SDL_Delay( msec );
#elif XASH_TIEMR == TIMER_LINUX
#elif XASH_TIMER == TIMER_LINUX
usleep( msec * 1000 );
#endif
}

Loading…
Cancel
Save