summaryrefslogtreecommitdiff
path: root/indra/newview/llviewerwindow.cpp
diff options
context:
space:
mode:
authorBrad Payne (Vir Linden) <vir@lindenlab.com>2018-04-25 17:10:21 +0100
committerBrad Payne (Vir Linden) <vir@lindenlab.com>2018-04-25 17:10:21 +0100
commit7d91a263a8a634b0148fcd9b1a3af28f7b58ca1c (patch)
treed20c4abeb555c3efbf04a2b04af9e447bfe34455 /indra/newview/llviewerwindow.cpp
parentbc773adf618eb531fdccacd95f4cd51f6b87497a (diff)
MAINT-8549 - more on animesh ARC and associated refactoring
Diffstat (limited to 'indra/newview/llviewerwindow.cpp')
-rw-r--r--indra/newview/llviewerwindow.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/indra/newview/llviewerwindow.cpp b/indra/newview/llviewerwindow.cpp
index b87a6d14e5..467b0c6fcb 100644
--- a/indra/newview/llviewerwindow.cpp
+++ b/indra/newview/llviewerwindow.cpp
@@ -546,7 +546,14 @@ public:
object_count++;
S32 bytes = 0;
S32 visible = 0;
- cost += object->getStreamingCost(&bytes, &visible);
+ cost += object->getStreamingCost();
+ LLMeshCostData costs;
+ if (object->getCostData(costs))
+ {
+ bytes = costs.getSizeTotal();
+ visible = costs.getSizeByLOD(object->getLOD());
+ }
+
S32 vt = 0;
count += object->getTriangleCount(&vt);
vcount += vt;