summaryrefslogtreecommitdiff
path: root/indra/newview/llviewertexturelist.cpp
diff options
context:
space:
mode:
authorErik Kundiman <erik@megapahit.org>2025-03-22 12:29:32 +0800
committerErik Kundiman <erik@megapahit.org>2025-03-22 12:29:32 +0800
commit53ff8ab675b76f84154cd639fe4fb5f8c0ac3dc7 (patch)
treefae2f97053a1ce15ade8eeecbf6b1e789f4b8498 /indra/newview/llviewertexturelist.cpp
parent2fb48eb9be6df00c3baed955fd84f4d8a1ea1d9a (diff)
parent0ec9bfaabde12d82ba6b840589f849b7cf279417 (diff)
Merge tag 'Second_Life_Release#0ec9bfaa-2025.03' into 2025.03
Diffstat (limited to 'indra/newview/llviewertexturelist.cpp')
-rw-r--r--indra/newview/llviewertexturelist.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/indra/newview/llviewertexturelist.cpp b/indra/newview/llviewertexturelist.cpp
index f2e34dd56e..5a74051227 100644
--- a/indra/newview/llviewertexturelist.cpp
+++ b/indra/newview/llviewertexturelist.cpp
@@ -968,7 +968,8 @@ void LLViewerTextureList::updateImageDecodePriority(LLViewerFetchedTexture* imag
vsize /= min_scale;
// apply bias to offscreen faces all the time, but only to onscreen faces when bias is large
- if (!face->mInFrustum || LLViewerTexture::sDesiredDiscardBias > 2.f)
+ // use mImportanceToCamera to make bias switch a bit more gradual
+ if (!face->mInFrustum || LLViewerTexture::sDesiredDiscardBias > 1.9f + face->mImportanceToCamera / 2.f)
{
vsize /= bias;
}