summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorTommyTheTerrible <81168766+TommyTheTerrible@users.noreply.github.com>2024-08-04 19:58:54 -0400
committerGitHub <noreply@github.com>2024-08-05 02:58:54 +0300
commitadf2d91fb9032ab70b61269d49bacec6aac22ab1 (patch)
treeb61564bdb9f78b1913dcfacb8512117935a2e411 /indra/newview
parent593479f33cecd81148a861c93c3f889e1ee5dc20 (diff)
Reduce Avatar Loading Checks (#2187)
This simple trick stops checking if the avatar is loaded if the avatar is loaded, decreasing calculation times and increasing FPS.
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/llvoavatar.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/newview/llvoavatar.cpp b/indra/newview/llvoavatar.cpp
index 8581a96c06..83df39d606 100644
--- a/indra/newview/llvoavatar.cpp
+++ b/indra/newview/llvoavatar.cpp
@@ -3145,7 +3145,7 @@ void LLVOAvatar::idleUpdateLipSync(bool voice_enabled)
void LLVOAvatar::idleUpdateLoadingEffect()
{
// update visibility when avatar is partially loaded
- if (updateIsFullyLoaded()) // changed?
+ if (!mFullyLoaded && updateIsFullyLoaded()) // Avoid repeat calculations by checking if mFullyLoaded is true first.
{
if (isFullyLoaded())
{