summaryrefslogtreecommitdiff
path: root/indra/newview/llcontrolavatar.cpp
diff options
context:
space:
mode:
authorBrad Payne (Vir Linden) <vir@lindenlab.com>2017-08-31 16:48:49 +0100
committerBrad Payne (Vir Linden) <vir@lindenlab.com>2017-08-31 16:48:49 +0100
commit57bb63bafd2adc744ea8cab63593abd90c7199df (patch)
tree94ec221ca06ce32dee7e6138d655d8a575a46a23 /indra/newview/llcontrolavatar.cpp
parent936ccff59f2045f5747a0730570784608f39a7b4 (diff)
parent218584593a7815f7494be58a7b36774c47fd047f (diff)
merge
Diffstat (limited to 'indra/newview/llcontrolavatar.cpp')
-rw-r--r--indra/newview/llcontrolavatar.cpp16
1 files changed, 15 insertions, 1 deletions
diff --git a/indra/newview/llcontrolavatar.cpp b/indra/newview/llcontrolavatar.cpp
index 8dfc2e81dc..d458e2951b 100644
--- a/indra/newview/llcontrolavatar.cpp
+++ b/indra/newview/llcontrolavatar.cpp
@@ -212,11 +212,18 @@ void LLControlAvatar::updateDebugText()
getAnimatedVolumes(volumes);
S32 animated_volume_count = volumes.size();
std::string active_string;
+ std::string lod_string;
+ S32 total_tris = 0;
+ S32 total_verts = 0;
for (std::vector<LLVOVolume*>::iterator it = volumes.begin();
it != volumes.end(); ++it)
{
LLVOVolume *volp = *it;
- if (volp && volp->mDrawable)
+ S32 verts = 0;
+ total_tris += volp->getTriangleCount(&verts);
+ total_verts += verts;
+ lod_string += llformat("%d",volp->getLOD());
+ if (volp && volp->mDrawable)
{
if (volp->mDrawable->isActive())
{
@@ -248,6 +255,13 @@ void LLControlAvatar::updateDebugText()
}
#endif
+ addDebugText(llformat("lod %s",lod_string.c_str()));
+ addDebugText(llformat("tris %d verts %d", total_tris, total_verts));
+ //addDebugText(llformat("anim time %.1f (step %f factor %f)",
+ // mMotionController.getAnimTime(),
+ // mMotionController.getTimeStep(),
+ // mMotionController.getTimeFactor()));
+
}
LLVOAvatar::updateDebugText();