From 586e35ad2383d1128e7cbdf024149f40d49a8e87 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sat, 10 Feb 2018 16:23:34 -0800 Subject: [PATCH] Windows: Prevent shutdown lag for non-GL. For Vulkan/D3D, it was taking an extra second to quit. --- Windows/EmuThread.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Windows/EmuThread.cpp b/Windows/EmuThread.cpp index 4e18eb1f53..b211783f6a 100644 --- a/Windows/EmuThread.cpp +++ b/Windows/EmuThread.cpp @@ -234,6 +234,10 @@ void MainThreadFunc() { } } Core_Stop(); + if (!useEmuThread) { + // Process the shutdown. Without this, non-GL delays 800ms on shutdown. + Core_Run(g_graphicsContext); + } Core_WaitInactive(800); g_inLoop = false;