diff --git a/SDL/SDLMain.cpp b/SDL/SDLMain.cpp index 985309aa0681..6e04018d468c 100644 --- a/SDL/SDLMain.cpp +++ b/SDL/SDLMain.cpp @@ -1420,10 +1420,12 @@ int main(int argc, char *argv[]) { bool waitOnExit = g_Config.iGPUBackend == (int)GPUBackend::OPENGL; if (!mainThreadIsRender) { - // We should only be a message pump + // Vulkan mode uses this. + // We should only be a message pump. This allows for lower latency + // input events, and so on. while (true) { SDL_Event event; - while (SDL_PollEvent(&event)) { + while (SDL_WaitEventTimeout(&event, 100)) { ProcessSDLEvent(window, event, &inputTracker); } if (g_QuitRequested || g_RestartRequested)