diff options
author | Brad Payne (Vir Linden) <vir@lindenlab.com> | 2017-12-04 13:57:49 +0000 |
---|---|---|
committer | Brad Payne (Vir Linden) <vir@lindenlab.com> | 2017-12-04 13:57:49 +0000 |
commit | 0c800002e2bdc81d66eb7f7f7eb76448574edad8 (patch) | |
tree | d851d4054136e4dcc1779f63f1c914951fd0fb0a /indra | |
parent | fd893e18361fb5e919759256825cdc4b7b58381f (diff) |
SL-704 - animated object debug logging cleanup
Diffstat (limited to 'indra')
-rw-r--r-- | indra/newview/llvovolume.cpp | 50 | ||||
-rw-r--r-- | indra/newview/pipeline.cpp | 18 |
2 files changed, 35 insertions, 33 deletions
diff --git a/indra/newview/llvovolume.cpp b/indra/newview/llvovolume.cpp index fc03373cc1..cdab90d6cf 100644 --- a/indra/newview/llvovolume.cpp +++ b/indra/newview/llvovolume.cpp @@ -1348,15 +1348,16 @@ BOOL LLVOVolume::updateLOD() if (lod_changed) { -#if 1 - // AXON debugging - if (isAnimatedObject() && isRiggedMesh()) + if (debugLoggingEnabled("AnimatedObjectsLinkset")) { - std::string vobj_name = llformat("Vol%u", (U32) this); - F32 est_tris = getEstTrianglesMax(); - LL_DEBUGS("AnimatedObjectsLinkset") << vobj_name << " updateLOD to " << getLOD() << ", tris " << est_tris << LL_ENDL; + if (isAnimatedObject() && isRiggedMesh()) + { + std::string vobj_name = llformat("Vol%u", (U32) this); + F32 est_tris = getEstTrianglesMax(); + LL_DEBUGS("AnimatedObjectsLinkset") << vobj_name << " updateLOD to " << getLOD() << ", tris " << est_tris << LL_ENDL; + } } -#endif + gPipeline.markRebuild(mDrawable, LLDrawable::REBUILD_VOLUME, FALSE); mLODChanged = TRUE; } @@ -4058,15 +4059,16 @@ const LLMatrix4& LLVOVolume::getWorldMatrix(LLXformMatrix* xform) const void LLVOVolume::markForUpdate(BOOL priority) { -#if 1 - // AXON debugging - if (isAnimatedObject() && isRiggedMesh()) + if (debugLoggingEnabled("AnimatedObjectsLinkset")) { - std::string vobj_name = llformat("Vol%u", (U32) this); - F32 est_tris = getEstTrianglesMax(); - LL_DEBUGS("AnimatedObjectsLinkset") << vobj_name << " markForUpdate, tris " << est_tris << LL_ENDL; + if (isAnimatedObject() && isRiggedMesh()) + { + std::string vobj_name = llformat("Vol%u", (U32) this); + F32 est_tris = getEstTrianglesMax(); + LL_DEBUGS("AnimatedObjectsLinkset") << vobj_name << " markForUpdate, tris " << est_tris << LL_ENDL; + } } -#endif + LLViewerObject::markForUpdate(priority); mVolumeChanged = TRUE; } @@ -5011,7 +5013,6 @@ void LLVolumeGeometryManager::rebuildGeom(LLSpatialGroup* group) bool is_mesh = vobj->isMesh(); F32 est_tris = vobj->getEstTrianglesMax(); -#if 1 LL_DEBUGS("AnimatedObjectsLinkset") << vobj_name << " rebuilding, isAttachment: " << (U32) vobj->isAttachment() << " is_mesh " << is_mesh << " est_tris " << est_tris @@ -5021,7 +5022,6 @@ void LLVolumeGeometryManager::rebuildGeom(LLSpatialGroup* group) << " playing " << (U32) (vobj->getControlAvatar() ? vobj->getControlAvatar()->mPlaying : false) << " frame " << LLFrameTimer::getFrameCount() << LL_ENDL; -#endif llassert_always(vobj); vobj->updateTextureVirtualSize(true); @@ -5561,15 +5561,17 @@ void LLVolumeGeometryManager::rebuildMesh(LLSpatialGroup* group) if (drawablep && !drawablep->isDead() && drawablep->isState(LLDrawable::REBUILD_ALL) && !drawablep->isState(LLDrawable::RIGGED) ) { LLVOVolume* vobj = drawablep->getVOVolume(); -#if 1 - // AXON debugging - if (vobj->isAnimatedObject() && vobj->isRiggedMesh()) + + if (debugLoggingEnabled("AnimatedObjectsLinkset")) { - std::string vobj_name = llformat("Vol%u", (U32) vobj); - F32 est_tris = vobj->getEstTrianglesMax(); - LL_DEBUGS("AnimatedObjectsLinkset") << vobj_name << " rebuildMesh, tris " << est_tris << LL_ENDL; - } -#endif + if (vobj->isAnimatedObject() && vobj->isRiggedMesh()) + { + std::string vobj_name = llformat("Vol%u", (U32) vobj); + F32 est_tris = vobj->getEstTrianglesMax(); + LL_DEBUGS("AnimatedObjectsLinkset") << vobj_name << " rebuildMesh, tris " << est_tris << LL_ENDL; + } + } + vobj->preRebuild(); if (drawablep->isState(LLDrawable::ANIMATED_CHILD)) diff --git a/indra/newview/pipeline.cpp b/indra/newview/pipeline.cpp index 6be5db8246..b6a27a178b 100644 --- a/indra/newview/pipeline.cpp +++ b/indra/newview/pipeline.cpp @@ -3350,17 +3350,17 @@ void LLPipeline::markRebuild(LLDrawable *drawablep, LLDrawable::EDrawableFlags f { if (drawablep && !drawablep->isDead() && assertInitialized()) { -#if 1 - // AXON debugging - LLVOVolume *vol_obj = drawablep->getVOVolume(); - if (vol_obj && vol_obj->isAnimatedObject() && vol_obj->isRiggedMesh()) + if (debugLoggingEnabled("AnimatedObjectsLinkset")) { - std::string vobj_name = llformat("Vol%u", (U32) vol_obj); - F32 est_tris = vol_obj->getEstTrianglesMax(); - LL_DEBUGS("AnimatedObjectsLinkset") << vobj_name << " markRebuild, tris " << est_tris - << " priority " << (S32) priority << " flag " << std::hex << flag << LL_ENDL; + LLVOVolume *vol_obj = drawablep->getVOVolume(); + if (vol_obj && vol_obj->isAnimatedObject() && vol_obj->isRiggedMesh()) + { + std::string vobj_name = llformat("Vol%u", (U32) vol_obj); + F32 est_tris = vol_obj->getEstTrianglesMax(); + LL_DEBUGS("AnimatedObjectsLinkset") << vobj_name << " markRebuild, tris " << est_tris + << " priority " << (S32) priority << " flag " << std::hex << flag << LL_ENDL; + } } -#endif if (!drawablep->isState(LLDrawable::BUILT)) { |