From d9d3ff00570827118677446860f501c5b00e2b11 Mon Sep 17 00:00:00 2001 From: Shyotl Date: Sat, 8 Oct 2011 03:06:41 -0500 Subject: [PATCH] Disable updateTextures entirely for non-visible avatars (culled ones still need updating tho.) --- indra/newview/llvoavatar.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/indra/newview/llvoavatar.cpp b/indra/newview/llvoavatar.cpp index 1a4155f5d..bbd467f99 100644 --- a/indra/newview/llvoavatar.cpp +++ b/indra/newview/llvoavatar.cpp @@ -5132,7 +5132,12 @@ void LLVOAvatar::updateTextures() } else { - render_avatar = isVisible() && !mCulled; + if(!isVisible()) + { + return ;//do not update for invisible avatar. + } + + render_avatar = !mCulled; //visible and not culled. } std::vector layer_baked;