summaryrefslogtreecommitdiff
path: root/indra/newview/llsceneview.cpp
diff options
context:
space:
mode:
authorMaxim Nikolenko <maximnproductengine@lindenlab.com>2022-06-21 17:55:29 +0300
committerMaxim Nikolenko <maximnproductengine@lindenlab.com>2022-06-21 17:55:29 +0300
commit076a89506243e8d4037f34c2a78278ff6ee0f1f7 (patch)
tree45c3ec67ebbdda60386f6b131fd218a292f77d52 /indra/newview/llsceneview.cpp
parent791b7ff0e99c40b9de1b542f1231d21faebada05 (diff)
SL-17635 remove unused variables
Diffstat (limited to 'indra/newview/llsceneview.cpp')
-rw-r--r--indra/newview/llsceneview.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/indra/newview/llsceneview.cpp b/indra/newview/llsceneview.cpp
index f7aa63e34d..e250f9bc7a 100644
--- a/indra/newview/llsceneview.cpp
+++ b/indra/newview/llsceneview.cpp
@@ -266,14 +266,11 @@ void LLSceneView::draw()
U32 count = triangles[idx].size();
- U32 total = 0;
-
gGL.begin(LLRender::LINE_STRIP);
//plot triangles
for (U32 i = 0; i < count; ++i)
{
U32 tri_count = triangles[idx][i];
- total += tri_count;
F32 y = (F32) (tri_count-tri_domain[0])/triangle_range*tri_rect.getHeight()+tri_rect.mBottom;
F32 x = (F32) i / count * tri_rect.getWidth() + tri_rect.mLeft;
@@ -290,15 +287,8 @@ void LLSceneView::draw()
gGL.end();
gGL.flush();
- U32 total_visible = 0;
count = visible_triangles[idx].size();
- for (U32 i = 0; i < count; ++i)
- {
- U32 tri_count = visible_triangles[idx][i];
- total_visible += tri_count;
- }
-
std::string label = llformat("%s Object Triangle Counts (Ktris) -- Visible: %.2f/%.2f (%.2f KB Visible)",
category[idx], total_visible_triangles[idx]/1024.f, total_triangles[idx]/1024.f, total_visible_bytes[idx]/1024.f);