diff options
author | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2024-04-19 00:50:27 +0300 |
---|---|---|
committer | Andrey Kleshchev <117672381+akleshchev@users.noreply.github.com> | 2024-04-19 00:58:43 +0300 |
commit | 398369233fc2621eb447701e26082057fb0c97d7 (patch) | |
tree | 02348d5a20d87c35347c74b7709adb3c738a0753 /indra/newview/llvoavatar.cpp | |
parent | a0c52be0793c353d1aec7fb1e7ad0a885a61a62b (diff) |
viewer#1117 optimize one getIsCloud() away
getIsCloud() is relatively expensive, especially for 'self', yet
getRezzedStatus() already checks it and return 0, no need to repeat.
Diffstat (limited to 'indra/newview/llvoavatar.cpp')
-rw-r--r-- | indra/newview/llvoavatar.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/newview/llvoavatar.cpp b/indra/newview/llvoavatar.cpp index 10c403fbd8..9dd22f2768 100644 --- a/indra/newview/llvoavatar.cpp +++ b/indra/newview/llvoavatar.cpp @@ -8270,7 +8270,7 @@ void LLVOAvatar::logMetricsTimerRecord(const std::string& phase_name, F32 elapse bool LLVOAvatar::updateIsFullyLoaded() { S32 rez_status = getRezzedStatus(); - bool loading = getIsCloud(); + bool loading = rez_status == 0; if (mFirstFullyVisible && !mIsControlAvatar) { loading = ((rez_status < 2) |