diff options
| author | Brad Payne (Vir Linden) <vir@lindenlab.com> | 2017-07-29 14:48:43 +0100 |
|---|---|---|
| committer | Brad Payne (Vir Linden) <vir@lindenlab.com> | 2017-07-29 14:48:43 +0100 |
| commit | 912c8faf55a4d391f69eb18d4fda5a85a70de6ca (patch) | |
| tree | 20f8cec972e407794d3a060bf69099cb24f13af1 /indra/newview/llcontrolavatar.cpp | |
| parent | 1b9e6225c8e438d44beb6a993cf1d0f24659d1e0 (diff) | |
SL-731 - diagnostic displays for LOD, tri count
Diffstat (limited to 'indra/newview/llcontrolavatar.cpp')
| -rw-r--r-- | indra/newview/llcontrolavatar.cpp | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/indra/newview/llcontrolavatar.cpp b/indra/newview/llcontrolavatar.cpp index 9ed3020b66..fb61328a1b 100644 --- a/indra/newview/llcontrolavatar.cpp +++ b/indra/newview/llcontrolavatar.cpp @@ -212,11 +212,15 @@ void LLControlAvatar::updateDebugText() getAnimatedVolumes(volumes); S32 animated_volume_count = volumes.size(); std::string active_string; + std::string lod_string; + S32 total_tris = 0; for (std::vector<LLVOVolume*>::iterator it = volumes.begin(); it != volumes.end(); ++it) { LLVOVolume *volp = *it; - if (volp && volp->mDrawable) + total_tris += volp->getTriangleCount(); + lod_string += llformat("%d",volp->getLOD()); + if (volp && volp->mDrawable) { if (volp->mDrawable->isActive()) { @@ -248,10 +252,13 @@ void LLControlAvatar::updateDebugText() } #endif - addDebugText(llformat("anim time %.1f (step %f factor %f)", - mMotionController.getAnimTime(), - mMotionController.getTimeStep(), - mMotionController.getTimeFactor())); + addDebugText(llformat("lod %s",lod_string.c_str())); + addDebugText(llformat("tris %d", total_tris)); + //addDebugText(llformat("anim time %.1f (step %f factor %f)", + // mMotionController.getAnimTime(), + // mMotionController.getTimeStep(), + // mMotionController.getTimeFactor())); + } LLVOAvatar::updateDebugText(); |
