diff options
| author | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2025-03-05 22:03:41 +0200 | 
|---|---|---|
| committer | Andrey Kleshchev <117672381+akleshchev@users.noreply.github.com> | 2025-03-05 23:00:01 +0200 | 
| commit | 85c77ee9102d4f70cc566f96b4c2f0b1924234da (patch) | |
| tree | 7ec8e3075c211a7b9f20cfac09f7a34ee9f3170b | |
| parent | 5c2a331c44424722f069cd7a6b167f24de1afb83 (diff) | |
#3611 Decrease TextureScaleMinAreaFactor
| -rw-r--r-- | indra/newview/app_settings/settings.xml | 2 | ||||
| -rw-r--r-- | indra/newview/llviewertexturelist.cpp | 7 | 
2 files changed, 5 insertions, 4 deletions
| diff --git a/indra/newview/app_settings/settings.xml b/indra/newview/app_settings/settings.xml index 4293fa3034..6f2a9932bc 100644 --- a/indra/newview/app_settings/settings.xml +++ b/indra/newview/app_settings/settings.xml @@ -11618,7 +11618,7 @@          <key>Type</key>          <string>F32</string>          <key>Value</key> -        <real>0.04</real> +        <real>0.0095</real>      </map>      <key>TextureScaleMaxAreaFactor</key>      <map> diff --git a/indra/newview/llviewertexturelist.cpp b/indra/newview/llviewertexturelist.cpp index f5bbff144b..b07957a492 100644 --- a/indra/newview/llviewertexturelist.cpp +++ b/indra/newview/llviewertexturelist.cpp @@ -901,7 +901,7 @@ void LLViewerTextureList::updateImageDecodePriority(LLViewerFetchedTexture* imag      if (imagep->getBoostLevel() < LLViewerFetchedTexture::BOOST_HIGH)  // don't bother checking face list for boosted textures      { -        static LLCachedControl<F32> texture_scale_min(gSavedSettings, "TextureScaleMinAreaFactor", 0.04f); +        static LLCachedControl<F32> texture_scale_min(gSavedSettings, "TextureScaleMinAreaFactor", 0.0095f);          static LLCachedControl<F32> texture_scale_max(gSavedSettings, "TextureScaleMaxAreaFactor", 25.f);          F32 max_vsize = 0.f; @@ -943,8 +943,9 @@ void LLViewerTextureList::updateImageDecodePriority(LLViewerFetchedTexture* imag                      // Scale desired texture resolution higher or lower depending on texture scale                      // -                    // Minimum usage examples: a 1024x1024 texture with aplhabet, runing string -                    // shows one letter at a time +                    // Minimum usage examples: a 1024x1024 texture with aplhabet (texture atlas), +                    // runing string shows one letter at a time. If texture has ten 100px symbols +                    // per side, minimal scale is (100/1024)^2 = 0.0095                      //                      // Maximum usage examples: huge chunk of terrain repeats texture                      // TODO: make this work with the GLTF texture transforms | 
