summaryrefslogtreecommitdiff
path: root/indra/newview/llfeaturemanager.cpp
diff options
context:
space:
mode:
authorJonathan "Geenz" Goodman <geenz@geenzo.com>2026-05-22 12:33:30 -0400
committerJonathan "Geenz" Goodman <geenz@geenzo.com>2026-05-22 12:33:30 -0400
commit755c19a05053481b19e6f6febd51aedcb238db79 (patch)
tree4cedc2883a569b2f53d353d6d36ee0724ae39cd9 /indra/newview/llfeaturemanager.cpp
parent6bef0d0b7fc26e44f6107503a2097172d9218d8a (diff)
Move texture quality to auto detect on VRAM
Diffstat (limited to 'indra/newview/llfeaturemanager.cpp')
-rw-r--r--indra/newview/llfeaturemanager.cpp24
1 files changed, 22 insertions, 2 deletions
diff --git a/indra/newview/llfeaturemanager.cpp b/indra/newview/llfeaturemanager.cpp
index c8692224f1..aab2865ef7 100644
--- a/indra/newview/llfeaturemanager.cpp
+++ b/indra/newview/llfeaturemanager.cpp
@@ -752,9 +752,29 @@ void LLFeatureManager::applyBaseMasks()
{
maskFeatures("VRAMGT512");
}
- if (gGLManager.mVRAM < 2048)
+
+ // Texture quality is driven by detected VRAM. Feature masks take the MIN
+ // of applied values, so cascading lower tiers downgrade RenderTextureQuality:
+ // <= 2GB -> Low(0), <= 4GB -> Medium(1), < 8GB -> High(2), >= 8GB -> Ultra(3).
+ // When VRAM cannot be detected (mVRAM == 0, common on Linux) fall back to Medium.
+ if (gGLManager.mVRAM == 0)
{
- maskFeatures("VRAMLT2GB");
+ maskFeatures("VRAMLT4GB");
+ }
+ else
+ {
+ if (gGLManager.mVRAM < 8192)
+ {
+ maskFeatures("VRAMLT8GB");
+ }
+ if (gGLManager.mVRAM <= 4096)
+ {
+ maskFeatures("VRAMLT4GB");
+ }
+ if (gGLManager.mVRAM <= 2048)
+ {
+ maskFeatures("VRAMLT2GB");
+ }
}
if (gGLManager.mGLVersion < 3.99f)
{