From 1aa810be36ca1f9b6f29dc198144b9de5dc68aef Mon Sep 17 00:00:00 2001 From: Ansariel Date: Sat, 25 Jun 2016 17:12:06 +0200 Subject: [PATCH] Disable useless diagnostics --- indra/newview/llvoavatar.cpp | 73 +++++++++++++++++++----------------- 1 file changed, 38 insertions(+), 35 deletions(-) diff --git a/indra/newview/llvoavatar.cpp b/indra/newview/llvoavatar.cpp index 306225f723..8c34efa176 100644 --- a/indra/newview/llvoavatar.cpp +++ b/indra/newview/llvoavatar.cpp @@ -9187,7 +9187,8 @@ void LLVOAvatar::calculateUpdateRenderComplexity() static const U32 COMPLEXITY_BODY_PART_COST = 200; // Diagnostic list of all textures on our avatar - static std::set all_textures; + // Disable useless diagnostics + //static std::set all_textures; if (mVisualComplexityStale) { @@ -9283,41 +9284,43 @@ void LLVOAvatar::calculateUpdateRenderComplexity() // Diagnostic output to identify all avatar-related textures. // Does not affect rendering cost calculation. // Could be wrapped in a debug option if output becomes problematic. - if (isSelf()) - { - // print any attachment textures we didn't already know about. - for (LLVOVolume::texture_cost_t::iterator it = textures.begin(); it != textures.end(); ++it) - { - LLUUID image_id = it->first; - if( ! (image_id.isNull() || image_id == IMG_DEFAULT || image_id == IMG_DEFAULT_AVATAR) - && (all_textures.find(image_id) == all_textures.end())) - { - // attachment texture not previously seen. - LL_INFOS() << "attachment_texture: " << image_id.asString() << LL_ENDL; - all_textures.insert(image_id); - } - } + // Disable useless diagnostics + //if (isSelf()) + //{ + // // print any attachment textures we didn't already know about. + // for (LLVOVolume::texture_cost_t::iterator it = textures.begin(); it != textures.end(); ++it) + // { + // LLUUID image_id = it->first; + // if( ! (image_id.isNull() || image_id == IMG_DEFAULT || image_id == IMG_DEFAULT_AVATAR) + // && (all_textures.find(image_id) == all_textures.end())) + // { + // // attachment texture not previously seen. + // LL_INFOS() << "attachment_texture: " << image_id.asString() << LL_ENDL; + // all_textures.insert(image_id); + // } + // } - // print any avatar textures we didn't already know about - for (LLAvatarAppearanceDictionary::Textures::const_iterator iter = LLAvatarAppearanceDictionary::getInstance()->getTextures().begin(); - iter != LLAvatarAppearanceDictionary::getInstance()->getTextures().end(); - ++iter) - { - const LLAvatarAppearanceDictionary::TextureEntry *texture_dict = iter->second; - // TODO: MULTI-WEARABLE: handle multiple textures for self - const LLViewerTexture* te_image = getImage(iter->first,0); - if (!te_image) - continue; - LLUUID image_id = te_image->getID(); - if( image_id.isNull() || image_id == IMG_DEFAULT || image_id == IMG_DEFAULT_AVATAR) - continue; - if (all_textures.find(image_id) == all_textures.end()) - { - LL_INFOS() << "local_texture: " << texture_dict->mName << ": " << image_id << LL_ENDL; - all_textures.insert(image_id); - } - } - } + // // print any avatar textures we didn't already know about + // for (LLAvatarAppearanceDictionary::Textures::const_iterator iter = LLAvatarAppearanceDictionary::getInstance()->getTextures().begin(); + // iter != LLAvatarAppearanceDictionary::getInstance()->getTextures().end(); + // ++iter) + // { + // const LLAvatarAppearanceDictionary::TextureEntry *texture_dict = iter->second; + // // TODO: MULTI-WEARABLE: handle multiple textures for self + // const LLViewerTexture* te_image = getImage(iter->first,0); + // if (!te_image) + // continue; + // LLUUID image_id = te_image->getID(); + // if( image_id.isNull() || image_id == IMG_DEFAULT || image_id == IMG_DEFAULT_AVATAR) + // continue; + // if (all_textures.find(image_id) == all_textures.end()) + // { + // LL_INFOS() << "local_texture: " << texture_dict->mName << ": " << image_id << LL_ENDL; + // all_textures.insert(image_id); + // } + // } + //} + // if ( cost != mVisualComplexity ) {