summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
Diffstat (limited to 'src/common')
-rw-r--r--src/common/settings.cpp3
-rw-r--r--src/common/settings.h9
2 files changed, 9 insertions, 3 deletions
diff --git a/src/common/settings.cpp b/src/common/settings.cpp
index 77ff21128..92794f4a2 100644
--- a/src/common/settings.cpp
+++ b/src/common/settings.cpp
@@ -60,7 +60,7 @@ void LogSettings() {
60 log_setting("Renderer_NvdecEmulation", values.nvdec_emulation.GetValue()); 60 log_setting("Renderer_NvdecEmulation", values.nvdec_emulation.GetValue());
61 log_setting("Renderer_AccelerateASTC", values.accelerate_astc.GetValue()); 61 log_setting("Renderer_AccelerateASTC", values.accelerate_astc.GetValue());
62 log_setting("Renderer_AsyncASTC", values.async_astc.GetValue()); 62 log_setting("Renderer_AsyncASTC", values.async_astc.GetValue());
63 log_setting("Renderer_UseVsync", values.use_vsync.GetValue()); 63 log_setting("Renderer_UseVsync", values.vsync_mode.GetValue());
64 log_setting("Renderer_ShaderBackend", values.shader_backend.GetValue()); 64 log_setting("Renderer_ShaderBackend", values.shader_backend.GetValue());
65 log_setting("Renderer_UseAsynchronousShaders", values.use_asynchronous_shaders.GetValue()); 65 log_setting("Renderer_UseAsynchronousShaders", values.use_asynchronous_shaders.GetValue());
66 log_setting("Renderer_AnisotropicFilteringLevel", values.max_anisotropy.GetValue()); 66 log_setting("Renderer_AnisotropicFilteringLevel", values.max_anisotropy.GetValue());
@@ -222,7 +222,6 @@ void RestoreGlobalState(bool is_powered_on) {
222 values.nvdec_emulation.SetGlobal(true); 222 values.nvdec_emulation.SetGlobal(true);
223 values.accelerate_astc.SetGlobal(true); 223 values.accelerate_astc.SetGlobal(true);
224 values.async_astc.SetGlobal(true); 224 values.async_astc.SetGlobal(true);
225 values.use_vsync.SetGlobal(true);
226 values.shader_backend.SetGlobal(true); 225 values.shader_backend.SetGlobal(true);
227 values.use_asynchronous_shaders.SetGlobal(true); 226 values.use_asynchronous_shaders.SetGlobal(true);
228 values.use_fast_gpu_time.SetGlobal(true); 227 values.use_fast_gpu_time.SetGlobal(true);
diff --git a/src/common/settings.h b/src/common/settings.h
index 5379d0dd5..2371495e4 100644
--- a/src/common/settings.h
+++ b/src/common/settings.h
@@ -16,6 +16,12 @@
16 16
17namespace Settings { 17namespace Settings {
18 18
19enum class VSyncMode : u32 {
20 Immediate,
21 FIFO,
22 Mailbox,
23};
24
19enum class RendererBackend : u32 { 25enum class RendererBackend : u32 {
20 OpenGL = 0, 26 OpenGL = 0,
21 Vulkan = 1, 27 Vulkan = 1,
@@ -455,7 +461,8 @@ struct Values {
455 SwitchableSetting<NvdecEmulation> nvdec_emulation{NvdecEmulation::GPU, "nvdec_emulation"}; 461 SwitchableSetting<NvdecEmulation> nvdec_emulation{NvdecEmulation::GPU, "nvdec_emulation"};
456 SwitchableSetting<bool> accelerate_astc{true, "accelerate_astc"}; 462 SwitchableSetting<bool> accelerate_astc{true, "accelerate_astc"};
457 SwitchableSetting<bool> async_astc{false, "async_astc"}; 463 SwitchableSetting<bool> async_astc{false, "async_astc"};
458 SwitchableSetting<bool> use_vsync{true, "use_vsync"}; 464 Setting<VSyncMode, true> vsync_mode{VSyncMode::FIFO, VSyncMode::Immediate, VSyncMode::Mailbox,
465 "use_vsync"};
459 SwitchableSetting<ShaderBackend, true> shader_backend{ShaderBackend::GLSL, ShaderBackend::GLSL, 466 SwitchableSetting<ShaderBackend, true> shader_backend{ShaderBackend::GLSL, ShaderBackend::GLSL,
460 ShaderBackend::SPIRV, "shader_backend"}; 467 ShaderBackend::SPIRV, "shader_backend"};
461 SwitchableSetting<bool> use_asynchronous_shaders{false, "use_asynchronous_shaders"}; 468 SwitchableSetting<bool> use_asynchronous_shaders{false, "use_asynchronous_shaders"};