diff options
| author | Brad Payne (Vir Linden) <vir@lindenlab.com> | 2017-08-03 14:23:02 +0100 |
|---|---|---|
| committer | Brad Payne (Vir Linden) <vir@lindenlab.com> | 2017-08-03 14:23:02 +0100 |
| commit | a57170724344842e26b8cd0fa4a47c24efa834c5 (patch) | |
| tree | 355331bdd08d67b600db68812d8048688c4e9f9f /indra/newview/llcontrolavatar.cpp | |
| parent | 912c8faf55a4d391f69eb18d4fda5a85a70de6ca (diff) | |
SL-731 - render metadata includes triangle count, triangle and vertex count included with debug text for control avatar
Diffstat (limited to 'indra/newview/llcontrolavatar.cpp')
| -rw-r--r-- | indra/newview/llcontrolavatar.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/indra/newview/llcontrolavatar.cpp b/indra/newview/llcontrolavatar.cpp index fb61328a1b..d458e2951b 100644 --- a/indra/newview/llcontrolavatar.cpp +++ b/indra/newview/llcontrolavatar.cpp @@ -214,11 +214,14 @@ void LLControlAvatar::updateDebugText() 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; - total_tris += volp->getTriangleCount(); + S32 verts = 0; + total_tris += volp->getTriangleCount(&verts); + total_verts += verts; lod_string += llformat("%d",volp->getLOD()); if (volp && volp->mDrawable) { @@ -253,7 +256,7 @@ void LLControlAvatar::updateDebugText() #endif addDebugText(llformat("lod %s",lod_string.c_str())); - addDebugText(llformat("tris %d", total_tris)); + addDebugText(llformat("tris %d verts %d", total_tris, total_verts)); //addDebugText(llformat("anim time %.1f (step %f factor %f)", // mMotionController.getAnimTime(), // mMotionController.getTimeStep(), |
