Skip to content

Commit 4ac1a50

Browse files
remove sleep() hack from SDL1 days
1 parent 6c25720 commit 4ac1a50

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

code/osapi/osapi.cpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -486,16 +486,7 @@ bool os_foreground()
486486
// Sleeps for n milliseconds or until app becomes active.
487487
void os_sleep(uint ms)
488488
{
489-
#ifdef __APPLE__
490-
// ewwww, I hate this!! SDL_Delay() is causing issues for us though and this
491-
// basically matches Apple examples of the same thing. Same as SDL_Delay() but
492-
// we aren't hitting up the system for anything during the process
493-
auto then = SDL_GetTicks() + ms;
494-
495-
while (then > SDL_GetTicks());
496-
#else
497489
SDL_Delay(ms);
498-
#endif
499490
}
500491

501492
static bool file_exists(const SCP_string& path) {

0 commit comments

Comments
 (0)