diff options
| -rw-r--r-- | src/yuzu/bootmanager.cpp | 13 | ||||
| -rw-r--r-- | src/yuzu/bootmanager.h | 1 |
2 files changed, 3 insertions, 11 deletions
diff --git a/src/yuzu/bootmanager.cpp b/src/yuzu/bootmanager.cpp index 98161cc27..b064c9c64 100644 --- a/src/yuzu/bootmanager.cpp +++ b/src/yuzu/bootmanager.cpp | |||
| @@ -153,17 +153,8 @@ public: | |||
| 153 | 153 | ||
| 154 | // disable vsync for any shared contexts | 154 | // disable vsync for any shared contexts |
| 155 | auto format = share_context->format(); | 155 | auto format = share_context->format(); |
| 156 | const int swap_interval = [&]() { | 156 | const int swap_interval = |
| 157 | switch (Settings::values.vsync_mode.GetValue()) { | 157 | Settings::values.vsync_mode.GetValue() == Settings::VSyncMode::Immediate ? 0 : 1; |
| 158 | case Settings::VSyncMode::Immediate: | ||
| 159 | return 0; | ||
| 160 | case Settings::VSyncMode::FIFO: | ||
| 161 | return 1; | ||
| 162 | case Settings::VSyncMode::Mailbox: | ||
| 163 | return 2; | ||
| 164 | } | ||
| 165 | return 0; | ||
| 166 | }(); | ||
| 167 | 158 | ||
| 168 | format.setSwapInterval(main_surface ? swap_interval : 0); | 159 | format.setSwapInterval(main_surface ? swap_interval : 0); |
| 169 | 160 | ||
diff --git a/src/yuzu/bootmanager.h b/src/yuzu/bootmanager.h index bb4eca07f..8a69cf973 100644 --- a/src/yuzu/bootmanager.h +++ b/src/yuzu/bootmanager.h | |||
| @@ -14,6 +14,7 @@ | |||
| 14 | #include <QTouchEvent> | 14 | #include <QTouchEvent> |
| 15 | #include <QWidget> | 15 | #include <QWidget> |
| 16 | 16 | ||
| 17 | #include "common/logging/log.h" | ||
| 17 | #include "common/polyfill_thread.h" | 18 | #include "common/polyfill_thread.h" |
| 18 | #include "common/thread.h" | 19 | #include "common/thread.h" |
| 19 | #include "core/frontend/emu_window.h" | 20 | #include "core/frontend/emu_window.h" |