diff --git a/indra/newview/llvoavatar.cpp b/indra/newview/llvoavatar.cpp index 26f136549..dc91b315d 100644 --- a/indra/newview/llvoavatar.cpp +++ b/indra/newview/llvoavatar.cpp @@ -10623,8 +10623,12 @@ void LLVOAvatar::idleUpdateRenderComplexity() } } - // Render Complexity - calculateUpdateRenderComplexity(); // Update mVisualComplexity if needed + if (mComplexityTimer.getElapsedTimeF32() > 5.f) + { + // Render Complexity + calculateUpdateRenderComplexity(); // Update mVisualComplexity if needed + mComplexityTimer.start(); + } if (gPipeline.hasRenderDebugMask(LLPipeline::RENDER_DEBUG_SHAME)) { diff --git a/indra/newview/llvoavatar.h b/indra/newview/llvoavatar.h index 7df17cc7c..928292791 100644 --- a/indra/newview/llvoavatar.h +++ b/indra/newview/llvoavatar.h @@ -1171,6 +1171,8 @@ public: private: S32 mIdleMinute; + LLTimer mComplexityTimer; + //CCS Nametag public: void setNameFromChat(const std::string &text);