diff options
author | Erik Kundiman <erik@megapahit.org> | 2025-07-31 20:42:38 +0800 |
---|---|---|
committer | Erik Kundiman <erik@megapahit.org> | 2025-07-31 20:48:39 +0800 |
commit | b81c1c4e871be0ff5e5dbbfa235571350cd477fe (patch) | |
tree | 2a3e599e3db36bd42628fcb681a67b7b956a6ab1 /indra/newview/llavatarlist.h | |
parent | 0146a8b3119e2c6c652dd7b608de9efcdbd3fd50 (diff) |
Optimise nearby tab distance & arrival time impl
by not having extra calls to getAvatars, by avoiding unnecessary
function overhead which actually make it possible to share some
iterative code, and by piggybacking updateNearbyList and
updateArrivalTime which is already done periodically though the
range had to be lengthened to match nearby list range which is
MPVNearMeRange instead of SLv's NearMeRange. Minimise differences
from SLv too (arrival time really doesn't need to be updated
*every* second.. every 5 seconds is just okay).
Diffstat (limited to 'indra/newview/llavatarlist.h')
-rw-r--r-- | indra/newview/llavatarlist.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/newview/llavatarlist.h b/indra/newview/llavatarlist.h index 97b4f05985..5ef7eeb041 100644 --- a/indra/newview/llavatarlist.h +++ b/indra/newview/llavatarlist.h @@ -74,6 +74,7 @@ public: uuid_vec_t& getIDs() { return mIDs; } bool contains(const LLUUID& id); + void setAvatarsPositions(const std::map<LLUUID, LLVector3d>& avatarsPositions); void setContextMenu(LLListContextMenu* menu) { mContextMenu = menu; } void setSessionID(const LLUUID& session_id) { mSessionID = session_id; } const LLUUID& getSessionID() { return mSessionID; } @@ -114,8 +115,6 @@ protected: const uuid_vec_t& vnew, uuid_vec_t& vadded, uuid_vec_t& vremoved); - void updateAvatarArrivalTime(); - void updateAvatarDistance(); void updateLastInteractionTimes(); void rebuildNames(); void onItemDoubleClicked(LLUICtrl* ctrl, S32 x, S32 y, MASK mask); @@ -144,6 +143,7 @@ private: uuid_vec_t mIDs; LLUUID mSessionID; + std::map<LLUUID, LLVector3d> mAvatarsPositions; LLListContextMenu* mContextMenu; commit_signal_t mRefreshCompleteSignal; |