diff --git a/indra/newview/llvoavatar.cpp b/indra/newview/llvoavatar.cpp index c5e5e03494..212f1254c6 100644 --- a/indra/newview/llvoavatar.cpp +++ b/indra/newview/llvoavatar.cpp @@ -7864,7 +7864,11 @@ BOOL LLVOAvatar::isFullyLoaded() const bool LLVOAvatar::isTooComplex() const { bool too_complex; - bool render_friend = (LLAvatarTracker::instance().isBuddy(getID()) && gSavedSettings.getBOOL("AlwaysRenderFriends")); + // Performance improvement + //bool render_friend = (LLAvatarTracker::instance().isBuddy(getID()) && gSavedSettings.getBOOL("AlwaysRenderFriends")); + static LLCachedControl alwaysRenderFriends(gSavedSettings, "AlwaysRenderFriends"); + bool render_friend = (LLAvatarTracker::instance().isBuddy(getID()) && alwaysRenderFriends); + // if (isSelf() || render_friend || mVisuallyMuteSetting == AV_ALWAYS_RENDER) {