[Radar] Reroute some code, optimize silly stuff away.

No more dead state, death is instant when you disappear
No more dependency on frame or life time, updates come from the sims.
No need to rate control anymore, ui removed.

RIP: My headphones, you were shortlived, but you served my ears well.
This commit is contained in:
Inusaito Sayori
2015-06-25 02:57:48 -04:00
parent fdab6d0efb
commit b3b2da1428
9 changed files with 44 additions and 182 deletions

View File

@@ -57,6 +57,7 @@
#include "llcommandhandler.h"
#include "lldir.h"
#include "lleventpoll.h"
#include "llfloateravatarlist.h"
#include "llfloatergodtools.h"
#include "llfloaterperms.h"
#include "llfloaterreporter.h"
@@ -1250,6 +1251,7 @@ LLHTTPRegistration<CoarseLocationUpdate>
void LLViewerRegion::updateCoarseLocations(LLMessageSystem* msg)
{
//LL_INFOS() << "CoarseLocationUpdate" << LL_ENDL;
std::list<LLUUID> map_avids(mMapAvatarIDs.begin(), mMapAvatarIDs.end());
mMapAvatars.reset();
mMapAvatarIDs.reset(); // only matters in a rare case but it's good to be safe.
@@ -1304,9 +1306,16 @@ void LLViewerRegion::updateCoarseLocations(LLMessageSystem* msg)
if(has_agent_data)
{
mMapAvatarIDs.put(agent_id);
map_avids.remove(agent_id);
}
}
}
if (LLFloaterAvatarList::instanceExists())
{
LLFloaterAvatarList& inst(LLFloaterAvatarList::instance());
inst.updateAvatarList(this);
inst.expireAvatarList(map_avids);
}
}
void LLViewerRegion::getInfo(LLSD& info)