summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar lat9nq2023-05-01 20:29:13 -0400
committerGravatar lat9nq2023-05-02 21:51:30 -0400
commita090a380be674ae001aea47434e1a2f008574a48 (patch)
tree1fdb34cd7b74367102a1a91893bd5a3fa4d89fc1
parentqt_common: Move window info function out of bootmanager (diff)
downloadyuzu-a090a380be674ae001aea47434e1a2f008574a48.tar.gz
yuzu-a090a380be674ae001aea47434e1a2f008574a48.tar.xz
yuzu-a090a380be674ae001aea47434e1a2f008574a48.zip
bootmanager: Remove inaccurate switch
Those vulkan settings do not correspond 1:1 to the swap intervals that they set for OpenGL, so remove it. bootmanager: Add missing include I didn't add this log why did it break
-rw-r--r--src/yuzu/bootmanager.cpp13
-rw-r--r--src/yuzu/bootmanager.h1
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"