summaryrefslogtreecommitdiffstats
path: root/src/common
diff options
context:
space:
mode:
authorLiam <byteslice@airmail.cc>2024-02-13 02:13:07 +0100
committerLiam <byteslice@airmail.cc>2024-02-19 00:59:13 +0100
commit56810541f0be8951fef847368eb6db13af0d2174 (patch)
treec1a507b212bc7fb2c338d454f2953c99451ebeee /src/common
parentMerge pull request #13068 from german77/no_errors (diff)
downloadyuzu-56810541f0be8951fef847368eb6db13af0d2174.tar
yuzu-56810541f0be8951fef847368eb6db13af0d2174.tar.gz
yuzu-56810541f0be8951fef847368eb6db13af0d2174.tar.bz2
yuzu-56810541f0be8951fef847368eb6db13af0d2174.tar.lz
yuzu-56810541f0be8951fef847368eb6db13af0d2174.tar.xz
yuzu-56810541f0be8951fef847368eb6db13af0d2174.tar.zst
yuzu-56810541f0be8951fef847368eb6db13af0d2174.zip
Diffstat (limited to 'src/common')
-rw-r--r--src/common/settings.h6
-rw-r--r--src/common/settings_enums.h2
2 files changed, 8 insertions, 0 deletions
diff --git a/src/common/settings.h b/src/common/settings.h
index aa054dc24..b2b071e7e 100644
--- a/src/common/settings.h
+++ b/src/common/settings.h
@@ -384,6 +384,12 @@ struct Values {
AstcRecompression::Bc3,
"astc_recompression",
Category::RendererAdvanced};
+ SwitchableSetting<VramUsageMode, true> vram_usage_mode{linkage,
+ VramUsageMode::Conservative,
+ VramUsageMode::Conservative,
+ VramUsageMode::Aggressive,
+ "vram_usage_mode",
+ Category::RendererAdvanced};
SwitchableSetting<bool> async_presentation{linkage,
#ifdef ANDROID
true,
diff --git a/src/common/settings_enums.h b/src/common/settings_enums.h
index f42367e67..6e247e930 100644
--- a/src/common/settings_enums.h
+++ b/src/common/settings_enums.h
@@ -122,6 +122,8 @@ ENUM(AstcRecompression, Uncompressed, Bc1, Bc3);
ENUM(VSyncMode, Immediate, Mailbox, Fifo, FifoRelaxed);
+ENUM(VramUsageMode, Conservative, Aggressive);
+
ENUM(RendererBackend, OpenGL, Vulkan, Null);
ENUM(ShaderBackend, Glsl, Glasm, SpirV);