mirror of
https://github.com/id-Software/DOOM-3-BFG.git
synced 2024-12-03 09:22:45 +00:00
also do Sys_Sleep for less then 20ms
Sys_Sleep(10) is used quite often throughout the code.
This commit is contained in:
parent
478d7e4f6e
commit
a102d9d469
1 changed files with 3 additions and 1 deletions
|
@ -656,6 +656,8 @@ ID_TIME_T Sys_FileTimeStamp( idFileHandle fp )
|
|||
|
||||
void Sys_Sleep( int msec )
|
||||
{
|
||||
#if 0 // DG: I don't really care, this spams the console (and on windows this case isn't handled either)
|
||||
// Furthermore, there are several Sys_Sleep( 10 ) calls throughout the code
|
||||
if( msec < 20 )
|
||||
{
|
||||
static int last = 0;
|
||||
|
@ -668,7 +670,7 @@ void Sys_Sleep( int msec )
|
|||
// ignore that sleep call, keep going
|
||||
return;
|
||||
}
|
||||
|
||||
#endif // DG end
|
||||
// use nanosleep? keep sleeping if signal interrupt?
|
||||
|
||||
// RB begin
|
||||
|
|
Loading…
Reference in a new issue