Throttle avie complexity calculation frequency to once per 5s per avie.
This commit is contained in:
@@ -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))
|
||||
{
|
||||
|
||||
@@ -1171,6 +1171,8 @@ public:
|
||||
private:
|
||||
S32 mIdleMinute;
|
||||
|
||||
LLTimer mComplexityTimer;
|
||||
|
||||
//CCS Nametag
|
||||
public:
|
||||
void setNameFromChat(const std::string &text);
|
||||
|
||||
Reference in New Issue
Block a user