Skip to content

Commit

Permalink
Windows: Prevent shutdown lag for non-GL.
Browse files Browse the repository at this point in the history
For Vulkan/D3D, it was taking an extra second to quit.
  • Loading branch information
unknownbrackets committed Feb 11, 2018
1 parent a85a88e commit 586e35a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Windows/EmuThread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 586e35a

Please sign in to comment.