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.
master
Andrey Kleshchev 2024-04-19 00:50:27 +03:00 committed by Andrey Kleshchev
parent a0c52be079
commit 398369233f
1 changed files with 1 additions and 1 deletions

View File

@ -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)