summaryrefslogtreecommitdiff
path: root/src/yuzu_cmd/emu_window/emu_window_sdl2.cpp
diff options
context:
space:
mode:
authorGravatar ReinUsesLisp2020-09-19 17:15:02 -0300
committerGravatar ReinUsesLisp2020-09-20 16:29:41 -0300
commit7003090187e02c8625f4eb7a024ac97f9b0159aa (patch)
treeb38f399967df79eb7c0dc711508cd54b7c9bf62e /src/yuzu_cmd/emu_window/emu_window_sdl2.cpp
parentMerge pull request #4643 from FearlessTobi/decrease-pad-update-interval (diff)
downloadyuzu-7003090187e02c8625f4eb7a024ac97f9b0159aa.tar.gz
yuzu-7003090187e02c8625f4eb7a024ac97f9b0159aa.tar.xz
yuzu-7003090187e02c8625f4eb7a024ac97f9b0159aa.zip
renderer_opengl: Remove emulated mailbox presentation
Emulated mailbox presentation was causing performance issues on Nvidia's OpenGL driver. Remove it.
Diffstat (limited to 'src/yuzu_cmd/emu_window/emu_window_sdl2.cpp')
-rw-r--r--src/yuzu_cmd/emu_window/emu_window_sdl2.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/yuzu_cmd/emu_window/emu_window_sdl2.cpp b/src/yuzu_cmd/emu_window/emu_window_sdl2.cpp
index a804d5185..521209622 100644
--- a/src/yuzu_cmd/emu_window/emu_window_sdl2.cpp
+++ b/src/yuzu_cmd/emu_window/emu_window_sdl2.cpp
@@ -13,9 +13,8 @@
13#include "input_common/sdl/sdl.h" 13#include "input_common/sdl/sdl.h"
14#include "yuzu_cmd/emu_window/emu_window_sdl2.h" 14#include "yuzu_cmd/emu_window/emu_window_sdl2.h"
15 15
16EmuWindow_SDL2::EmuWindow_SDL2(Core::System& system, bool fullscreen, 16EmuWindow_SDL2::EmuWindow_SDL2(InputCommon::InputSubsystem* input_subsystem_)
17 InputCommon::InputSubsystem* input_subsystem_) 17 : input_subsystem{input_subsystem_} {
18 : system{system}, input_subsystem{input_subsystem_} {
19 if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_JOYSTICK) < 0) { 18 if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_JOYSTICK) < 0) {
20 LOG_CRITICAL(Frontend, "Failed to initialize SDL2! Exiting..."); 19 LOG_CRITICAL(Frontend, "Failed to initialize SDL2! Exiting...");
21 exit(1); 20 exit(1);