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
This commit is contained in:
parent
cbd79df233
commit
a090a380be
|
@ -153,17 +153,8 @@ public:
|
||||||
|
|
||||||
// disable vsync for any shared contexts
|
// disable vsync for any shared contexts
|
||||||
auto format = share_context->format();
|
auto format = share_context->format();
|
||||||
const int swap_interval = [&]() {
|
const int swap_interval =
|
||||||
switch (Settings::values.vsync_mode.GetValue()) {
|
Settings::values.vsync_mode.GetValue() == Settings::VSyncMode::Immediate ? 0 : 1;
|
||||||
case Settings::VSyncMode::Immediate:
|
|
||||||
return 0;
|
|
||||||
case Settings::VSyncMode::FIFO:
|
|
||||||
return 1;
|
|
||||||
case Settings::VSyncMode::Mailbox:
|
|
||||||
return 2;
|
|
||||||
}
|
|
||||||
return 0;
|
|
||||||
}();
|
|
||||||
|
|
||||||
format.setSwapInterval(main_surface ? swap_interval : 0);
|
format.setSwapInterval(main_surface ? swap_interval : 0);
|
||||||
|
|
||||||
|
|
|
@ -14,6 +14,7 @@
|
||||||
#include <QTouchEvent>
|
#include <QTouchEvent>
|
||||||
#include <QWidget>
|
#include <QWidget>
|
||||||
|
|
||||||
|
#include "common/logging/log.h"
|
||||||
#include "common/polyfill_thread.h"
|
#include "common/polyfill_thread.h"
|
||||||
#include "common/thread.h"
|
#include "common/thread.h"
|
||||||
#include "core/frontend/emu_window.h"
|
#include "core/frontend/emu_window.h"
|
||||||
|
|
Loading…
Reference in New Issue