summaryrefslogtreecommitdiff
path: root/indra/newview/llvovolume.cpp
diff options
context:
space:
mode:
authorBrad Payne (Vir Linden) <vir@lindenlab.com>2018-03-26 20:59:37 +0100
committerBrad Payne (Vir Linden) <vir@lindenlab.com>2018-03-26 20:59:37 +0100
commita3fd0801c3030ff9a5a6761c9618f381aa965983 (patch)
tree2210a497800bdcddadd8c74d0fcabef52a7c8077 /indra/newview/llvovolume.cpp
parent4b7caa244570e0d1a42c5155f8620e05d2a47bad (diff)
SL-897 - display for DebugAnimatedObjects now includes streaming cost triangle count
Diffstat (limited to 'indra/newview/llvovolume.cpp')
-rw-r--r--indra/newview/llvovolume.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/indra/newview/llvovolume.cpp b/indra/newview/llvovolume.cpp
index 69c2d2cccd..3b5129d994 100644
--- a/indra/newview/llvovolume.cpp
+++ b/indra/newview/llvovolume.cpp
@@ -3905,6 +3905,15 @@ F32 LLVOVolume::getEstTrianglesMax() const
return 0.f;
}
+F32 LLVOVolume::getEstTrianglesStreamingCost() const
+{
+ if (isMesh() && getVolume())
+ {
+ return gMeshRepo.getEstTrianglesStreamingCost(getVolume()->getParams().getSculptID());
+ }
+ return 0.f;
+}
+
F32 LLVOVolume::getStreamingCost(S32* bytes, S32* visible_bytes, F32* unscaled_value) const
{
F32 radius = getScale().length()*0.5f;