diff options
author | Rye Mutt <rye@alchemyviewer.org> | 2024-07-22 08:29:35 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-22 15:29:35 +0300 |
commit | 7ebbc58ae310b5c41efb3fe1460d63663ab92004 (patch) | |
tree | 031d0ad22e888a646ff20557854012574d1cd328 /indra/newview/lldrawpoolterrain.cpp | |
parent | 8a3c9a0b9d3bdf193b49f7f82378558c275948a6 (diff) |
Cache various frequently accessed settings (#2080)
Diffstat (limited to 'indra/newview/lldrawpoolterrain.cpp')
-rw-r--r-- | indra/newview/lldrawpoolterrain.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/indra/newview/lldrawpoolterrain.cpp b/indra/newview/lldrawpoolterrain.cpp index afc5cc9d4e..7d2912d81f 100644 --- a/indra/newview/lldrawpoolterrain.cpp +++ b/indra/newview/lldrawpoolterrain.cpp @@ -107,7 +107,8 @@ U32 LLDrawPoolTerrain::getVertexDataMask() void LLDrawPoolTerrain::prerender() { - sPBRDetailMode = gSavedSettings.getS32("RenderTerrainPBRDetail"); + static LLCachedControl<S32> render_terrain_pbr_detail(gSavedSettings, "RenderTerrainPBRDetail"); + sPBRDetailMode = render_terrain_pbr_detail; } void LLDrawPoolTerrain::boostTerrainDetailTextures() |