summaryrefslogtreecommitdiffstats
path: root/src/common
diff options
context:
space:
mode:
authorKewlan <colin_rehn@hotmail.com>2021-11-21 16:57:00 +0100
committerKewlan <colin_rehn@hotmail.com>2021-11-21 16:57:00 +0100
commit8e3371a5c5aa26e1f3d0c1f944b65ee6b65c3f34 (patch)
treee68cbcdee5e9f9e1b484aad562825568e796d88b /src/common
parentMerge pull request #7395 from Morph1984/resolve-comments (diff)
downloadyuzu-8e3371a5c5aa26e1f3d0c1f944b65ee6b65c3f34.tar
yuzu-8e3371a5c5aa26e1f3d0c1f944b65ee6b65c3f34.tar.gz
yuzu-8e3371a5c5aa26e1f3d0c1f944b65ee6b65c3f34.tar.bz2
yuzu-8e3371a5c5aa26e1f3d0c1f944b65ee6b65c3f34.tar.lz
yuzu-8e3371a5c5aa26e1f3d0c1f944b65ee6b65c3f34.tar.xz
yuzu-8e3371a5c5aa26e1f3d0c1f944b65ee6b65c3f34.tar.zst
yuzu-8e3371a5c5aa26e1f3d0c1f944b65ee6b65c3f34.zip
Diffstat (limited to 'src/common')
-rw-r--r--src/common/settings.cpp1
-rw-r--r--src/common/settings.h2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/common/settings.cpp b/src/common/settings.cpp
index 3bcaa072f..6964a8273 100644
--- a/src/common/settings.cpp
+++ b/src/common/settings.cpp
@@ -183,6 +183,7 @@ void RestoreGlobalState(bool is_powered_on) {
values.max_anisotropy.SetGlobal(true);
values.use_speed_limit.SetGlobal(true);
values.speed_limit.SetGlobal(true);
+ values.fps_cap.SetGlobal(true);
values.use_disk_shader_cache.SetGlobal(true);
values.gpu_accuracy.SetGlobal(true);
values.use_asynchronous_gpu_emulation.SetGlobal(true);
diff --git a/src/common/settings.h b/src/common/settings.h
index 42f8b4a7d..fa4aa8747 100644
--- a/src/common/settings.h
+++ b/src/common/settings.h
@@ -525,7 +525,7 @@ struct Values {
Setting<NvdecEmulation> nvdec_emulation{NvdecEmulation::GPU, "nvdec_emulation"};
Setting<bool> accelerate_astc{true, "accelerate_astc"};
Setting<bool> use_vsync{true, "use_vsync"};
- BasicRangedSetting<u16> fps_cap{1000, 1, 1000, "fps_cap"};
+ RangedSetting<u16> fps_cap{1000, 1, 1000, "fps_cap"};
BasicSetting<bool> disable_fps_limit{false, "disable_fps_limit"};
RangedSetting<ShaderBackend> shader_backend{ShaderBackend::GLASM, ShaderBackend::GLSL,
ShaderBackend::SPIRV, "shader_backend"};