summaryrefslogtreecommitdiff
path: root/core/config
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-06-17 21:07:04 +0200
committerGitHub <noreply@github.com>2022-06-17 21:07:04 +0200
commit0daa868ab432d71442b76fa9bcfe3723abfc8718 (patch)
tree867000091ec5caa8d2afbe45039423baf951f958 /core/config
parenta95e9af688ac0af147e8e44c0c247fa0405d93c8 (diff)
parent04d5626bc0ee8c6d900a9a8fdb63d29e8ec59211 (diff)
Merge pull request #62023 from Calinou/detect-3d-small-textures-no-vram-compress
Disable VRAM compression by default for small textures in Detect 3D
Diffstat (limited to 'core/config')
-rw-r--r--core/config/project_settings.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/config/project_settings.cpp b/core/config/project_settings.cpp
index c65a2a5bc6..28fbc78501 100644
--- a/core/config/project_settings.cpp
+++ b/core/config/project_settings.cpp
@@ -1250,6 +1250,9 @@ ProjectSettings::ProjectSettings() {
GLOBAL_DEF_INTERNAL("application/config/features", PackedStringArray());
GLOBAL_DEF_INTERNAL("internationalization/locale/translation_remaps", PackedStringArray());
GLOBAL_DEF_INTERNAL("internationalization/locale/translations", PackedStringArray());
+
+ GLOBAL_DEF("rendering/textures/vram_compression/minimum_size", 512);
+ custom_prop_info["rendering/textures/vram_compression/minimum_size"] = PropertyInfo(Variant::INT, "rendering/textures/vram_compression/minimum_size", PROPERTY_HINT_RANGE, "16,16384,1");
}
ProjectSettings::~ProjectSettings() {