SL-3278 Wrap debug code into debug option

meow-7.2.2
Andrey Kleshchev 2020-09-07 23:23:17 +03:00
parent f9ed4fedab
commit 6f16e6c4e0
1 changed files with 1 additions and 2 deletions

View File

@ -10432,8 +10432,7 @@ 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())
if (isSelf() && debugLoggingEnabled("ARCdetail"))
{
// print any attachment textures we didn't already know about.
for (LLVOVolume::texture_cost_t::iterator it = textures.begin(); it != textures.end(); ++it)