diff options
author | andreykproductengine <akleshchev@productengine.com> | 2015-08-28 16:40:44 +0300 |
---|---|---|
committer | andreykproductengine <akleshchev@productengine.com> | 2015-08-28 16:40:44 +0300 |
commit | 5a912d738555f1a2f8e5e6f86c55464ebc50100d (patch) | |
tree | b6617d81d40d877c0a49fe0145b6ef2f8ad51e3e | |
parent | cfaa98cc6319e6ce43185096858b88635b53467a (diff) |
MAINT-5557 FIXED [QuickGraphics] Estimates of how many users can show you are incorrect immediately after changing an outfit.
-rw-r--r-- | indra/newview/llavatarrendernotifier.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/indra/newview/llavatarrendernotifier.cpp b/indra/newview/llavatarrendernotifier.cpp index 0741206160..f39e84786b 100644 --- a/indra/newview/llavatarrendernotifier.cpp +++ b/indra/newview/llavatarrendernotifier.cpp @@ -44,6 +44,8 @@ // when change exceeds this ration, notification is shown static const F32 RENDER_ALLOWED_CHANGE_PCT = 0.1; +// wait seconds before processing over limit updates after last complexity change +static const U32 OVER_LIMIT_UPDATE_DELAY = 70; LLAvatarRenderNotifier::LLAvatarRenderNotifier() : @@ -164,8 +166,8 @@ void LLAvatarRenderNotifier::updateNotification() // if we have an agent complexity update, we always display it display_notification = true; - // next 'over limit' update should be displayed as soon as possible if there is anything noteworthy - mPopUpDelayTimer.resetWithExpiry(0); + // next 'over limit' update should be displayed after delay to make sure information got updated at server side + mPopUpDelayTimer.resetWithExpiry(OVER_LIMIT_UPDATE_DELAY); } else if ( (mPopUpDelayTimer.hasExpired() || is_visible) && (mOverLimitPct > 0 || mLatestOverLimitPct > 0) |