diff options
| author | Maxim Nikolenko <maximnproductengine@lindenlab.com> | 2023-01-11 19:34:04 +0200 |
|---|---|---|
| committer | Maxim Nikolenko <maximnproductengine@lindenlab.com> | 2023-01-11 20:46:28 +0200 |
| commit | 005b29b89f7a3cbe54d37b53c0061ee36c80d871 (patch) | |
| tree | fcd293aeec127abfe43399605d91d44848c586ec /indra/newview/llvoavatar.cpp | |
| parent | 020bfa66ba9f1fee3e403595a1d6c95332bb16f7 (diff) | |
SL-18933 FIXED Maximum render time cycles if the Desired framerate is much lower than current framerate
Diffstat (limited to 'indra/newview/llvoavatar.cpp')
| -rw-r--r-- | indra/newview/llvoavatar.cpp | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/indra/newview/llvoavatar.cpp b/indra/newview/llvoavatar.cpp index 9c74323f99..dbfd47d2fa 100644 --- a/indra/newview/llvoavatar.cpp +++ b/indra/newview/llvoavatar.cpp @@ -816,6 +816,12 @@ LLVOAvatar::~LLVOAvatar() debugAvatarRezTime("AvatarRezLeftNotification","left sometime after declouding"); } + if(mTuned) + { + LLPerfStats::tunedAvatars--; + mTuned = false; + } + logPendingPhases(); LL_DEBUGS("Avatar") << "LLVOAvatar Destructor (0x" << this << ") id:" << mID << LL_ENDL; @@ -8382,9 +8388,15 @@ void LLVOAvatar::updateTooSlow() mTooSlow = false; mTooSlowWithoutShadows = false; } - if(mTooSlow) + if(mTooSlow && !mTuned) { LLPerfStats::tunedAvatars++; // increment the number of avatars that have been tweaked. + mTuned = true; + } + else if(!mTooSlow && mTuned) + { + LLPerfStats::tunedAvatars--; + mTuned = false; } } |
