Reduce CPU use on macOS

This commit is contained in:
Joshua Granick
2016-10-11 14:39:20 -07:00
parent d0f2c66999
commit fa452ccf64

View File

@@ -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
}