From 497a4109d809f7aa5818d5c5dfecb7ca8cf3b1f9 Mon Sep 17 00:00:00 2001 From: "Brad Payne (Vir Linden)" Date: Wed, 4 Oct 2017 13:54:24 +0100 Subject: SL-808 - direct area calculation matches indirect accumulation approach --- indra/newview/llvoavatar.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'indra') 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 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) { -- cgit v1.2.3