1
0
mirror of https://github.com/blupi-games/planetblupi synced 2024-12-30 10:15:36 +01:00

Wait on event instead of poll

Less cpu power with same results.
This commit is contained in:
Mathieu Schroeter 2017-02-05 09:15:33 +01:00
parent ac144a0522
commit deb9afc4a5

View File

@ -671,7 +671,7 @@ int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance,
while (SDL_TRUE)
{
SDL_Event event;
while (SDL_PollEvent (&event))
while (SDL_WaitEvent (&event))
WindowProc2 (event);
}