diff --git a/indra/newview/lltextureview.cpp b/indra/newview/lltextureview.cpp index 343c98afa9..c0c3b0d656 100644 --- a/indra/newview/lltextureview.cpp +++ b/indra/newview/lltextureview.cpp @@ -406,7 +406,10 @@ private: void LLAvatarTexBar::draw() { - if (!gSavedSettings.getBOOL("DebugAvatarRezTime")) return; + // Speed-up + //if (!gSavedSettings.getBOOL("DebugAvatarRezTime")) return; + static LLCachedControl debugAvatarRezTime(gSavedSettings, "DebugAvatarRezTime"); + if (!debugAvatarRezTime) return; LLVOAvatarSelf* avatarp = gAgentAvatarp; if (!avatarp) return; @@ -624,7 +627,11 @@ void LLGLTexMemBar::draw() left = 500; F32 bandwidth = LLAppViewer::getTextureFetch()->getTextureBandwidth(); - F32 max_bandwidth = gSavedSettings.getF32("ThrottleBandwidthKBPS"); + // Speed-up + //F32 max_bandwidth = gSavedSettings.getF32("ThrottleBandwidthKBPS"); + static LLCachedControl throttleBandwidthKBPS(gSavedSettings, "ThrottleBandwidthKBPS"); + F32 max_bandwidth = F32(throttleBandwidthKBPS); + // Speed-up color = bandwidth > max_bandwidth ? LLColor4::red : bandwidth > max_bandwidth*.75f ? LLColor4::yellow : text_color; color[VALPHA] = text_color[VALPHA]; text = llformat("BW:%.0f/%.0f",bandwidth, max_bandwidth);