diff options
author | Brad Linden <brad@lindenlab.com> | 2024-10-15 10:45:05 -0700 |
---|---|---|
committer | Brad Linden <brad@lindenlab.com> | 2024-10-15 10:45:05 -0700 |
commit | cd712960f316496b29c53dce390dd778ad9d27f4 (patch) | |
tree | 1db0dd051cd4bd8ef356983139bb21132213e73c /indra/newview/llsettingsvo.cpp | |
parent | 4b0fa1e3d1567ea9616fd9430cf5cb91c7825133 (diff) | |
parent | 86f7e0d75ec1bb74793bbdaea82a2f02264b04a0 (diff) |
Merge remote-tracking branch 'origin/release/2024.09-ExtraFPS' into develop
Diffstat (limited to 'indra/newview/llsettingsvo.cpp')
-rw-r--r-- | indra/newview/llsettingsvo.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/indra/newview/llsettingsvo.cpp b/indra/newview/llsettingsvo.cpp index 34b8535c84..fee0bbcda4 100644 --- a/indra/newview/llsettingsvo.cpp +++ b/indra/newview/llsettingsvo.cpp @@ -671,7 +671,8 @@ void LLSettingsVOSky::updateSettings() // After some A/B comparison of relesae vs EEP, tweak to allow strength to fall below 2 // at night, for better match. (mSceneLightStrength is a divisor, so lower value means brighter // local lights) - F32 sun_dynamic_range = llmax(gSavedSettings.getF32("RenderSunDynamicRange"), 0.0001f); + LLCachedControl<F32> sdr(gSavedSettings, "RenderSunDynamicRange", 1.f); + F32 sun_dynamic_range = llmax(sdr(), 0.0001f); mSceneLightStrength = 2.0f * (0.75f + sun_dynamic_range * dp); gSky.setSunAndMoonDirectionsCFR(sun_direction, moon_direction); |