From ee7011c968abdf98c2d97f4fee1cadc48a5edb39 Mon Sep 17 00:00:00 2001 From: Andrey Kleshchev Date: Tue, 19 Mar 2024 21:46:12 +0200 Subject: viewer#1000 Textures on large prims lose resolution Value was selected experimentally. I suspect it needs to be even smaller or needs to take face's size (extents) into account, but lack test cases. Will ask QA to experiment around with scaling. --- indra/newview/llviewertexturelist.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/indra/newview/llviewertexturelist.cpp b/indra/newview/llviewertexturelist.cpp index 57daeccaf7..0e7c19c5e1 100644 --- a/indra/newview/llviewertexturelist.cpp +++ b/indra/newview/llviewertexturelist.cpp @@ -902,7 +902,7 @@ void LLViewerTextureList::updateImageDecodePriority(LLViewerFetchedTexture* imag // scale desired texture resolution higher or lower depending on texture scale const LLTextureEntry* te = face->getTextureEntry(); F32 min_scale = te ? llmin(fabsf(te->getScaleS()), fabsf(te->getScaleT())) : 1.f; - min_scale = llmax(min_scale*min_scale, 0.1f); + min_scale = llclamp(min_scale*min_scale, 0.1f, 25.f); vsize /= min_scale; vsize /= LLViewerTexture::sDesiredDiscardBias; -- cgit v1.2.3