diff options
| author | Maxim Nikolenko <maximnproductengine@lindenlab.com> | 2023-10-27 23:37:33 +0300 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-10-27 23:37:33 +0300 | 
| commit | 0e10127081c97cfb7931ab9c99eb0e07ad42860a (patch) | |
| tree | c39c0cc0159780af05000ff8d50e0b7421a37969 | |
| parent | 272da5c01abd84f5e39ac3396e4e10ebe73b40b0 (diff) | |
SL-20496 FIXED Auto-adjust causes incorrect UI value of Max number of non-impostors
| -rw-r--r-- | indra/newview/llperfstats.cpp | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/indra/newview/llperfstats.cpp b/indra/newview/llperfstats.cpp index 7ff363c3c1..6ee14c1420 100644 --- a/indra/newview/llperfstats.cpp +++ b/indra/newview/llperfstats.cpp @@ -64,7 +64,7 @@ namespace LLPerfStats      {          assert_main_thread();          // these following variables are proxies for pipeline statics we do not need a two way update (no llviewercontrol handler) -        if( tuningFlag & NonImpostors ){ gSavedSettings.setU32("IndirectMaxNonImpostors", nonImpostors); }; +        if( tuningFlag & NonImpostors ){ gSavedSettings.setU32("RenderAvatarMaxNonImpostors", nonImpostors); };          if( tuningFlag & ReflectionDetail ){ gSavedSettings.setS32("RenderReflectionDetail", reflectionDetail); };          if( tuningFlag & FarClip ){ gSavedSettings.setF32("RenderFarClip", farClip); };          if( tuningFlag & UserMinDrawDistance ){ gSavedSettings.setF32("AutoTuneRenderFarClipMin", userMinDrawDistance); }; @@ -388,7 +388,7 @@ namespace LLPerfStats              auto count = countNearbyAvatars(std::min(LLPipeline::RenderFarClip, tunables.userImpostorDistance));              if( count != tunables.nonImpostors )              { -                tunables.updateNonImposters( (count < LLVOAvatar::NON_IMPOSTORS_MAX_SLIDER)?count : LLVOAvatar::NON_IMPOSTORS_MAX_SLIDER ); +                tunables.updateNonImposters( (count < LLVOAvatar::NON_IMPOSTORS_MAX_SLIDER)?count : 0 );                  LL_DEBUGS("AutoTune") << "There are " << count << "avatars within " << std::min(LLPipeline::RenderFarClip, tunables.userImpostorDistance) << "m of the camera" << LL_ENDL;              }          } | 
