summaryrefslogtreecommitdiff
path: root/indra/newview/llcontrolavatar.cpp
diff options
context:
space:
mode:
authorBrad Payne (Vir Linden) <vir@lindenlab.com>2018-03-27 19:27:05 +0100
committerBrad Payne (Vir Linden) <vir@lindenlab.com>2018-03-27 19:27:05 +0100
commitaf30a35dc2f4542ceba0eb33c232a77bf3598b69 (patch)
tree4c763f23dc3da3e43d0b7caf9f9d0bf7ab43c605 /indra/newview/llcontrolavatar.cpp
parenta3fd0801c3030ff9a5a6761c9618f381aa965983 (diff)
SL-897 - added animated object streaming cost to DebugAnimatedObjects display.
Diffstat (limited to 'indra/newview/llcontrolavatar.cpp')
-rw-r--r--indra/newview/llcontrolavatar.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/indra/newview/llcontrolavatar.cpp b/indra/newview/llcontrolavatar.cpp
index a16fa3cd26..a181d8be9a 100644
--- a/indra/newview/llcontrolavatar.cpp
+++ b/indra/newview/llcontrolavatar.cpp
@@ -244,6 +244,7 @@ void LLControlAvatar::updateDebugText()
S32 total_verts = 0;
F32 est_tris = 0.f;
F32 est_streaming_tris = 0.f;
+ F32 streaming_cost = 0.f;
for (std::vector<LLVOVolume*>::iterator it = volumes.begin();
it != volumes.end(); ++it)
@@ -254,6 +255,7 @@ void LLControlAvatar::updateDebugText()
total_verts += verts;
est_tris += volp->getEstTrianglesMax();
est_streaming_tris += volp->getEstTrianglesStreamingCost();
+ streaming_cost += volp->getStreamingCost();
lod_string += llformat("%d",volp->getLOD());
if (volp && volp->mDrawable)
{
@@ -287,8 +289,9 @@ void LLControlAvatar::updateDebugText()
type_string += "-";
}
}
- addDebugText(llformat("CAV obj %d anim %d active %s impost %d",
- total_linkset_count, animated_volume_count, active_string.c_str(), (S32) isImpostor()));
+ addDebugText(llformat("CAV obj %d anim %d active %s impost %d strcst %f",
+ total_linkset_count, animated_volume_count,
+ active_string.c_str(), (S32) isImpostor(), streaming_cost));
addDebugText(llformat("types %s lods %s", type_string.c_str(), lod_string.c_str()));
addDebugText(llformat("tris %d (est %.1f, streaming %.1f), verts %d", total_tris, est_tris, est_streaming_tris, total_verts));
addDebugText(llformat("pxarea %s", LLStringOps::getReadableNumber(getPixelArea()).c_str()));