From deb9afc4a5ea2f39ec6251cea0a2ccc63306fe2e Mon Sep 17 00:00:00 2001 From: Mathieu Schroeter Date: Sun, 5 Feb 2017 09:15:33 +0100 Subject: [PATCH] Wait on event instead of poll Less cpu power with same results. --- blupi.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blupi.cpp b/blupi.cpp index 0c275a3..550cf3d 100644 --- a/blupi.cpp +++ b/blupi.cpp @@ -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); }