Skip to content
Snippets Groups Projects
Commit 5a912d73 authored by andreykproductengine's avatar andreykproductengine
Browse files

MAINT-5557 FIXED [QuickGraphics] Estimates of how many users can show you are...

MAINT-5557 FIXED [QuickGraphics] Estimates of how many users can show you are incorrect immediately after changing an outfit.
parent cfaa98cc
No related branches found
No related tags found
No related merge requests found
...@@ -44,6 +44,8 @@ ...@@ -44,6 +44,8 @@
// when change exceeds this ration, notification is shown // when change exceeds this ration, notification is shown
static const F32 RENDER_ALLOWED_CHANGE_PCT = 0.1; 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() : LLAvatarRenderNotifier::LLAvatarRenderNotifier() :
...@@ -164,8 +166,8 @@ void LLAvatarRenderNotifier::updateNotification() ...@@ -164,8 +166,8 @@ void LLAvatarRenderNotifier::updateNotification()
// if we have an agent complexity update, we always display it // if we have an agent complexity update, we always display it
display_notification = true; display_notification = true;
// next 'over limit' update should be displayed as soon as possible if there is anything noteworthy // next 'over limit' update should be displayed after delay to make sure information got updated at server side
mPopUpDelayTimer.resetWithExpiry(0); mPopUpDelayTimer.resetWithExpiry(OVER_LIMIT_UPDATE_DELAY);
} }
else if ( (mPopUpDelayTimer.hasExpired() || is_visible) else if ( (mPopUpDelayTimer.hasExpired() || is_visible)
&& (mOverLimitPct > 0 || mLatestOverLimitPct > 0) && (mOverLimitPct > 0 || mLatestOverLimitPct > 0)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment