Skip to content
Snippets Groups Projects
Commit c508259f authored by Brad Payne (Vir Linden)'s avatar Brad Payne (Vir Linden)
Browse files

SL-731 - added est tris to animated object debug text

parent 9580e610
No related branches found
No related tags found
No related merge requests found
...@@ -242,6 +242,7 @@ void LLControlAvatar::updateDebugText() ...@@ -242,6 +242,7 @@ void LLControlAvatar::updateDebugText()
std::string lod_string; std::string lod_string;
S32 total_tris = 0; S32 total_tris = 0;
S32 total_verts = 0; S32 total_verts = 0;
S32 est_tris = 0;
for (std::vector<LLVOVolume*>::iterator it = volumes.begin(); for (std::vector<LLVOVolume*>::iterator it = volumes.begin();
it != volumes.end(); ++it) it != volumes.end(); ++it)
{ {
...@@ -249,6 +250,7 @@ void LLControlAvatar::updateDebugText() ...@@ -249,6 +250,7 @@ void LLControlAvatar::updateDebugText()
S32 verts = 0; S32 verts = 0;
total_tris += volp->getTriangleCount(&verts); total_tris += volp->getTriangleCount(&verts);
total_verts += verts; total_verts += verts;
est_tris += volp->getEstTrianglesMax();
lod_string += llformat("%d",volp->getLOD()); lod_string += llformat("%d",volp->getLOD());
if (volp && volp->mDrawable) if (volp && volp->mDrawable)
{ {
...@@ -285,7 +287,7 @@ void LLControlAvatar::updateDebugText() ...@@ -285,7 +287,7 @@ void LLControlAvatar::updateDebugText()
addDebugText(llformat("CAV obj %d anim %d active %s impost %d", addDebugText(llformat("CAV obj %d anim %d active %s impost %d",
total_linkset_count, animated_volume_count, active_string.c_str(), (S32) isImpostor())); total_linkset_count, animated_volume_count, active_string.c_str(), (S32) isImpostor()));
addDebugText(llformat("types %s lods %s", type_string.c_str(), lod_string.c_str())); addDebugText(llformat("types %s lods %s", type_string.c_str(), lod_string.c_str()));
addDebugText(llformat("tris %d verts %d", total_tris, total_verts)); addDebugText(llformat("tris %d (est %d), verts %d", total_tris, est_tris, total_verts));
addDebugText(llformat("pxarea %s", LLStringOps::getReadableNumber(getPixelArea()).c_str())); addDebugText(llformat("pxarea %s", LLStringOps::getReadableNumber(getPixelArea()).c_str()));
#if 0 #if 0
std::string region_name = "no region"; std::string region_name = "no region";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment