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))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user