Minor radar performance tweak: Don't resort the list while still adding avatars
parent
8156ca3dcc
commit
1345bbd202
|
|
@ -324,6 +324,9 @@ void FSPanelRadar::updateList(const std::vector<LLSD>& entries, const LLSD& stat
|
|||
// Update list
|
||||
mRadarList->setCommentText(RlvActions::canShowNearbyAgents() ? LLStringUtil::null : RlvStrings::getString("blocked_nearby"));
|
||||
|
||||
bool needs_sort = mRadarList->isSorted();
|
||||
mRadarList->setNeedsSort(false);
|
||||
|
||||
mRadarList->clearRows();
|
||||
const std::vector<LLSD>::const_iterator it_end = entries.end();
|
||||
for (std::vector<LLSD>::const_iterator it = entries.begin(); it != it_end; ++it)
|
||||
|
|
@ -411,6 +414,9 @@ void FSPanelRadar::updateList(const std::vector<LLSD>& entries, const LLSD& stat
|
|||
}
|
||||
}
|
||||
|
||||
mRadarList->setNeedsSort(needs_sort);
|
||||
mRadarList->updateSort();
|
||||
|
||||
LLStringUtil::format_map_t name_count_args;
|
||||
name_count_args["[TOTAL]"] = stats["total"].asString();
|
||||
name_count_args["[IN_REGION]"] = stats["region"].asString();
|
||||
|
|
|
|||
Loading…
Reference in New Issue