diff options
author | Brad Payne (Vir Linden) <vir@lindenlab.com> | 2017-12-20 21:56:46 +0000 |
---|---|---|
committer | Brad Payne (Vir Linden) <vir@lindenlab.com> | 2017-12-20 21:56:46 +0000 |
commit | b78354ac79385bcb28316aa3f43913393ad8c5ab (patch) | |
tree | 3d9ea8b7c9c4af0753584719c06e9d2e45c3b193 /indra | |
parent | 2e6e6c434615b46b754b8198c867f77b0a6b92de (diff) |
SL-731 - show est tris in metadata->triangle count display
Diffstat (limited to 'indra')
-rw-r--r-- | indra/newview/llvovolume.cpp | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/indra/newview/llvovolume.cpp b/indra/newview/llvovolume.cpp index e291416f92..ad72fa9480 100644 --- a/indra/newview/llvovolume.cpp +++ b/indra/newview/llvovolume.cpp @@ -1308,16 +1308,12 @@ BOOL LLVOVolume::calcLOD() if (gPipeline.hasRenderDebugMask(LLPipeline::RENDER_DEBUG_TRIANGLE_COUNT) && mDrawable->getFace(0)) { - if (isRootEdit() && getChildren().size()>0) + if (isRootEdit()) { S32 total_tris = recursiveGetTriangleCount(); - setDebugText(llformat("TRIS %d TOTAL %d", getTriangleCount(), total_tris)); + S32 est_max_tris = recursiveGetEstTrianglesMax(); + setDebugText(llformat("TRIS SHOWN %d EST %d", total_tris, est_max_tris)); } - else - { - setDebugText(llformat("TRIS %d", getTriangleCount())); - } - } if (gPipeline.hasRenderDebugMask(LLPipeline::RENDER_DEBUG_LOD_INFO) && mDrawable->getFace(0)) |