Reduce CPU use on macOS
This commit is contained in:
@@ -826,6 +826,12 @@ namespace lime {
|
||||
|
||||
int SDLApplication::WaitEvent (SDL_Event *event) {
|
||||
|
||||
#ifdef HX_MACOS
|
||||
|
||||
return SDL_WaitEvent (event);
|
||||
|
||||
#else
|
||||
|
||||
for(;;) {
|
||||
|
||||
SDL_PumpEvents ();
|
||||
@@ -840,6 +846,8 @@ namespace lime {
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user