summaryrefslogtreecommitdiff
path: root/src/yuzu_cmd
diff options
context:
space:
mode:
authorGravatar bunnei2020-02-13 22:06:11 -0500
committerGravatar bunnei2020-02-25 20:57:02 -0500
commit571451bdfe18e9e53af3fa458f18a3192094eebe (patch)
tree7fe1331c3011b6e912fdf3d17f99944d418df2fd /src/yuzu_cmd
parentMerge pull request #3461 from ReinUsesLisp/r32i-rt (diff)
downloadyuzu-571451bdfe18e9e53af3fa458f18a3192094eebe.tar.gz
yuzu-571451bdfe18e9e53af3fa458f18a3192094eebe.tar.xz
yuzu-571451bdfe18e9e53af3fa458f18a3192094eebe.zip
core: settings: Add setting to enable vsync, which is on by default.
Diffstat (limited to 'src/yuzu_cmd')
-rw-r--r--src/yuzu_cmd/config.cpp2
-rw-r--r--src/yuzu_cmd/default_ini.h5
2 files changed, 7 insertions, 0 deletions
diff --git a/src/yuzu_cmd/config.cpp b/src/yuzu_cmd/config.cpp
index 96f1ce3af..b77c12baf 100644
--- a/src/yuzu_cmd/config.cpp
+++ b/src/yuzu_cmd/config.cpp
@@ -390,6 +390,8 @@ void Config::ReadValues() {
390 sdl2_config->GetBoolean("Renderer", "use_accurate_gpu_emulation", false); 390 sdl2_config->GetBoolean("Renderer", "use_accurate_gpu_emulation", false);
391 Settings::values.use_asynchronous_gpu_emulation = 391 Settings::values.use_asynchronous_gpu_emulation =
392 sdl2_config->GetBoolean("Renderer", "use_asynchronous_gpu_emulation", false); 392 sdl2_config->GetBoolean("Renderer", "use_asynchronous_gpu_emulation", false);
393 Settings::values.use_vsync =
394 static_cast<u16>(sdl2_config->GetInteger("Renderer", "use_vsync", 1));
393 395
394 Settings::values.bg_red = static_cast<float>(sdl2_config->GetReal("Renderer", "bg_red", 0.0)); 396 Settings::values.bg_red = static_cast<float>(sdl2_config->GetReal("Renderer", "bg_red", 0.0));
395 Settings::values.bg_green = 397 Settings::values.bg_green =
diff --git a/src/yuzu_cmd/default_ini.h b/src/yuzu_cmd/default_ini.h
index 8a2b658cd..df7473858 100644
--- a/src/yuzu_cmd/default_ini.h
+++ b/src/yuzu_cmd/default_ini.h
@@ -150,6 +150,11 @@ use_accurate_gpu_emulation =
150# 0 : Off (slow), 1 (default): On (fast) 150# 0 : Off (slow), 1 (default): On (fast)
151use_asynchronous_gpu_emulation = 151use_asynchronous_gpu_emulation =
152 152
153# Forces VSync on the display thread. Usually doesn't impact performance, but on some drivers it can
154# so only turn this off if you notice a speed difference.
155# 0: Off, 1 (default): On
156use_vsync =
157
153# The clear color for the renderer. What shows up on the sides of the bottom screen. 158# The clear color for the renderer. What shows up on the sides of the bottom screen.
154# Must be in range of 0.0-1.0. Defaults to 1.0 for all. 159# Must be in range of 0.0-1.0. Defaults to 1.0 for all.
155bg_red = 160bg_red =