diff options
author | Rodrigo Locatti <reinuseslisp@airmail.cc> | 2020-11-25 20:44:53 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-25 20:44:53 -0300 |
commit | 0e15c68f54ae5217e6247603b9e31757515f89e1 (patch) | |
tree | 5547698f9917260b0172298b9c2219a399063987 /src/yuzu_cmd/yuzu.cpp | |
parent | b834c21894ca905cacce2bda04cf24e81175f434 (diff) | |
parent | 994f4977810749c0b597e7a7531a02d907967a68 (diff) |
Merge pull request #4976 from comex/poll-events
Overhaul EmuWindow::PollEvents to fix yuzu-cmd calling SDL_PollEvents off main thread
Diffstat (limited to 'src/yuzu_cmd/yuzu.cpp')
-rw-r--r-- | src/yuzu_cmd/yuzu.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/yuzu_cmd/yuzu.cpp b/src/yuzu_cmd/yuzu.cpp index 14a23c71b..ba6e89249 100644 --- a/src/yuzu_cmd/yuzu.cpp +++ b/src/yuzu_cmd/yuzu.cpp @@ -242,7 +242,7 @@ int main(int argc, char** argv) { void(system.Run()); while (emu_window->IsOpen()) { - std::this_thread::sleep_for(std::chrono::milliseconds(1)); + emu_window->WaitEvent(); } void(system.Pause()); system.Shutdown(); |