Commit b2afa4a5 authored by NiranV's avatar NiranV

Changed: Include HUDs into the complexity list in the Advanced Complexity Information window.

parent 087e55f4
...@@ -252,7 +252,7 @@ void BDFloaterComplexity::calcARC() ...@@ -252,7 +252,7 @@ void BDFloaterComplexity::calcARC()
for (LLViewerObject* attached_object : attachment->mAttachedObjects) for (LLViewerObject* attached_object : attachment->mAttachedObjects)
{ {
if (attached_object && !attached_object->isDead() && attached_object->mDrawable.notNull() && !attached_object->isHUDAttachment()) if (attached_object && !attached_object->isDead() && attached_object->mDrawable.notNull())
{ {
textures.clear(); textures.clear();
const LLDrawable* drawable = attached_object->mDrawable; const LLDrawable* drawable = attached_object->mDrawable;
...@@ -323,11 +323,15 @@ void BDFloaterComplexity::calcARC() ...@@ -323,11 +323,15 @@ void BDFloaterComplexity::calcARC()
} }
//BD - Final results. //BD - Final results.
texture_memory += attachment_memory_usage; // Do not add HUDs to this.
attachment_final_cost = attachment_total_cost + attachment_texture_cost; if (!attached_object->isHUDAttachment())
cost += attachment_final_cost; {
vertices += attachment_total_vertices; texture_memory += attachment_memory_usage;
triangles += attachment_total_triangles; attachment_final_cost = attachment_total_cost + attachment_texture_cost;
cost += attachment_final_cost;
vertices += attachment_total_vertices;
triangles += attachment_total_triangles;
}
//BD - Write our results into the list. //BD - Write our results into the list.
// Note that most of these values are actually not shown in the list, they are // Note that most of these values are actually not shown in the list, they are
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment