summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-09-07 01:20:01 +0200
committerGitHub <noreply@github.com>2018-09-07 01:20:01 +0200
commit9273c02427d4a77d6ab61c386c595628f600b459 (patch)
tree4e3feeaa963ee3e65e6f0330ac7096ab0b497e70
parentMerge pull request #1251 from lioncash/core-inc (diff)
parentfrontend: Set swap interval to 0 (diff)
downloadyuzu-9273c02427d4a77d6ab61c386c595628f600b459.tar
yuzu-9273c02427d4a77d6ab61c386c595628f600b459.tar.gz
yuzu-9273c02427d4a77d6ab61c386c595628f600b459.tar.bz2
yuzu-9273c02427d4a77d6ab61c386c595628f600b459.tar.lz
yuzu-9273c02427d4a77d6ab61c386c595628f600b459.tar.xz
yuzu-9273c02427d4a77d6ab61c386c595628f600b459.tar.zst
yuzu-9273c02427d4a77d6ab61c386c595628f600b459.zip
-rw-r--r--src/yuzu/bootmanager.cpp1
-rw-r--r--src/yuzu_cmd/emu_window/emu_window_sdl2.cpp1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/yuzu/bootmanager.cpp b/src/yuzu/bootmanager.cpp
index 159b2c32b..4a60f450a 100644
--- a/src/yuzu/bootmanager.cpp
+++ b/src/yuzu/bootmanager.cpp
@@ -256,6 +256,7 @@ void GRenderWindow::InitRenderTarget() {
QGLFormat fmt;
fmt.setVersion(3, 3);
fmt.setProfile(QGLFormat::CoreProfile);
+ fmt.setSwapInterval(false);
// Requests a forward-compatible context, which is required to get a 3.2+ context on OS X
fmt.setOption(QGL::NoDeprecatedFunctions);
diff --git a/src/yuzu_cmd/emu_window/emu_window_sdl2.cpp b/src/yuzu_cmd/emu_window/emu_window_sdl2.cpp
index 351dd9225..e1f269d31 100644
--- a/src/yuzu_cmd/emu_window/emu_window_sdl2.cpp
+++ b/src/yuzu_cmd/emu_window/emu_window_sdl2.cpp
@@ -166,6 +166,7 @@ EmuWindow_SDL2::EmuWindow_SDL2(bool fullscreen) {
OnResize();
OnMinimalClientAreaChangeRequest(GetActiveConfig().min_client_area_size);
SDL_PumpEvents();
+ SDL_GL_SetSwapInterval(false);
LOG_INFO(Frontend, "yuzu Version: {} | {}-{}", Common::g_build_name, Common::g_scm_branch,
Common::g_scm_desc);