summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/llvoavatar.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/indra/newview/llvoavatar.cpp b/indra/newview/llvoavatar.cpp
index e849e14a5b..d2a413b073 100644
--- a/indra/newview/llvoavatar.cpp
+++ b/indra/newview/llvoavatar.cpp
@@ -9238,7 +9238,10 @@ void LLVOAvatar::idleUpdateRenderComplexity()
// Attachment Surface Area
static LLCachedControl<F32> max_attachment_area(gSavedSettings, "RenderAutoMuteSurfaceAreaLimit", 1000.0f);
- info_line = llformat("%.0f m^2 (%.0f)", mAttachmentSurfaceArea, mDirectAttachmentSurfaceArea);
+ // AXON we can consolidate mAttachmentSurfaceArea and
+ // mDirectAttachmentSurfaceArea once QA establishes
+ // equivalence.
+ info_line = llformat("%.0f m^2", mDirectAttachmentSurfaceArea);
if (max_render_cost != 0 && max_attachment_area != 0) // zero means don't care, so don't bother coloring based on this
{
@@ -9354,6 +9357,8 @@ void LLVOAvatar::accountRenderComplexityForObject(
{
textures.clear();
+ mDirectAttachmentSurfaceArea += attached_object->recursiveGetScaledSurfaceArea();
+
const LLVOVolume* volume = attached_object->mDrawable->getVOVolume();
if (volume)
{