aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/common
diff options
context:
space:
mode:
authorLiam <[email protected]>2024-02-12 20:13:07 -0500
committerLiam <[email protected]>2024-02-18 18:59:13 -0500
commit56810541f0be8951fef847368eb6db13af0d2174 (patch)
treec1a507b212bc7fb2c338d454f2953c99451ebeee /src/common
parent5361027ef09ef6e6a1bed320f174d01b8f9c154b (diff)
downloadyuzu-android-56810541f0be8951fef847368eb6db13af0d2174.tar.gz
yuzu-android-56810541f0be8951fef847368eb6db13af0d2174.zip
vulkan_device: don't use fixed cap for memory limits
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);