summaryrefslogtreecommitdiff
path: root/indra/newview/llfeaturemanager.cpp
diff options
context:
space:
mode:
authorAndrey Lihatskiy <alihatskiy@productengine.com>2026-07-16 19:22:02 +0300
committerAndrey Lihatskiy <alihatskiy@productengine.com>2026-07-16 19:22:02 +0300
commit72581ab99d2e891821f5266330ecd8a58a277eb7 (patch)
tree528629c8943a400bc1a6186b49cdabdb4b8ed507 /indra/newview/llfeaturemanager.cpp
parentf5e788b1b4ff5fb45f20ee5fa5daad7cca42069f (diff)
parent1577ca1724787fdc0f0317ade3dab8ea3c5df7e7 (diff)
Merge branch 'release/26.3' into marchcat/slua-26.3
# Conflicts: # .github/workflows/build.yaml # autobuild.xml # indra/llcommon/llsys.cpp # indra/llrender/llimagegl.cpp # indra/llrender/llimagegl.h # indra/newview/CMakeLists.txt # indra/newview/featuretable.txt # indra/newview/featuretable_linux.txt # indra/newview/featuretable_mac.txt # indra/newview/llvoavatar.cpp # indra/newview/llvoiceclient.cpp # indra/newview/llvoicevivox.cpp # indra/newview/viewer_manifest.py
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 5a2b1c719c..b67b7e2bff 100644
--- a/indra/newview/llfeaturemanager.cpp
+++ b/indra/newview/llfeaturemanager.cpp
@@ -750,9 +750,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.mHasAnisotropic || 2.f > gGLManager.mMaxAnisotropy)
{