Throttle avie complexity calculation frequency to once per 5s per avie.

This commit is contained in:
Shyotl
2019-08-06 00:09:59 -05:00
parent 2dbbec88f7
commit da86dd08c4
2 changed files with 8 additions and 2 deletions

View File

@@ -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))
{

View File

@@ -1171,6 +1171,8 @@ public:
private:
S32 mIdleMinute;
LLTimer mComplexityTimer;
//CCS Nametag
public:
void setNameFromChat(const std::string &text);