Browse Source

Merge pull request #1249 from FearlessTobi/disable-vsync

frontend: Set swap interval to 0
pull/15/merge
bunnei 7 years ago
committed by GitHub
parent
commit
9273c02427
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      src/yuzu/bootmanager.cpp
  2. 1
      src/yuzu_cmd/emu_window/emu_window_sdl2.cpp

1
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);

1
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);

Loading…
Cancel
Save