summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorJonathan "Geenz" Goodman <geenz@geenzo.com>2026-05-27 20:47:04 -0400
committerJonathan "Geenz" Goodman <geenz@geenzo.com>2026-05-27 20:47:04 -0400
commit375ade3df2930cdc6087e1b4e4c31851ed5be762 (patch)
tree62855c322cf1d9e021432bd9364303d89961e6b5 /indra/newview
parent0a1690418f1ce6b66635bafe3f8dfecda69c9f8c (diff)
Update llviewertexture.cpp
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/llviewertexture.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/newview/llviewertexture.cpp b/indra/newview/llviewertexture.cpp
index 2504278467..fa29ffdf2d 100644
--- a/indra/newview/llviewertexture.cpp
+++ b/indra/newview/llviewertexture.cpp
@@ -102,14 +102,14 @@ F32 LLViewerTexture::getMemoryPressureProgress()
// Effective oversample factor for the per-texture pixel-area discard cap.
// Trends from TextureScreenSizeOversample toward
// TextureScreenSizeOversampleUnderPressure as the pressure multiplier
-// walks its 0..1 range; pinned to the floor above the high water mark.
+// walks its 0..1 range. Progress = 1 (mult at cap, including the high-
+// water-mark slam in updateClass) lands on the floor.
static F32 pixelCapOversampleForPressure()
{
static LLCachedControl<F32> over_base(gSavedSettings, "TextureScreenSizeOversample", 1.5f);
static LLCachedControl<F32> over_pressure(gSavedSettings, "TextureScreenSizeOversampleUnderPressure", 0.5f);
F32 base = llmax((F32)over_base, 0.1f);
F32 floor = llclamp((F32)over_pressure, 0.1f, base);
- if (LLViewerTexture::sAboveHighWater) return floor;
F32 progress = LLViewerTexture::getMemoryPressureProgress();
return base + (floor - base) * progress;
}