summaryrefslogtreecommitdiffstats
path: root/src/common
diff options
context:
space:
mode:
authorlat9nq <22451773+lat9nq@users.noreply.github.com>2022-09-09 04:46:58 +0200
committerGitHub <noreply@github.com>2022-09-09 04:46:58 +0200
commit0cef3b47f36e8613f7fdbda8fd712e0784026ac2 (patch)
treeede9615eebf3dcba0d15429b1c0938e85b222b35 /src/common
parentMerge pull request #8859 from CaptV0rt3x/patch-1 (diff)
parentvideo_core: add option for pessimistic flushing (diff)
downloadyuzu-0cef3b47f36e8613f7fdbda8fd712e0784026ac2.tar
yuzu-0cef3b47f36e8613f7fdbda8fd712e0784026ac2.tar.gz
yuzu-0cef3b47f36e8613f7fdbda8fd712e0784026ac2.tar.bz2
yuzu-0cef3b47f36e8613f7fdbda8fd712e0784026ac2.tar.lz
yuzu-0cef3b47f36e8613f7fdbda8fd712e0784026ac2.tar.xz
yuzu-0cef3b47f36e8613f7fdbda8fd712e0784026ac2.tar.zst
yuzu-0cef3b47f36e8613f7fdbda8fd712e0784026ac2.zip
Diffstat (limited to '')
-rw-r--r--src/common/settings.cpp1
-rw-r--r--src/common/settings.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/common/settings.cpp b/src/common/settings.cpp
index 7282a45d3..0a560ebb7 100644
--- a/src/common/settings.cpp
+++ b/src/common/settings.cpp
@@ -195,6 +195,7 @@ void RestoreGlobalState(bool is_powered_on) {
values.shader_backend.SetGlobal(true);
values.use_asynchronous_shaders.SetGlobal(true);
values.use_fast_gpu_time.SetGlobal(true);
+ values.use_pessimistic_flushes.SetGlobal(true);
values.bg_red.SetGlobal(true);
values.bg_green.SetGlobal(true);
values.bg_blue.SetGlobal(true);
diff --git a/src/common/settings.h b/src/common/settings.h
index 14ed9b237..13651de57 100644
--- a/src/common/settings.h
+++ b/src/common/settings.h
@@ -446,6 +446,7 @@ struct Values {
ShaderBackend::SPIRV, "shader_backend"};
SwitchableSetting<bool> use_asynchronous_shaders{false, "use_asynchronous_shaders"};
SwitchableSetting<bool> use_fast_gpu_time{true, "use_fast_gpu_time"};
+ SwitchableSetting<bool> use_pessimistic_flushes{false, "use_pessimistic_flushes"};
SwitchableSetting<u8> bg_red{0, "bg_red"};
SwitchableSetting<u8> bg_green{0, "bg_green"};