diff options
author | Matthew Breindel (Falcon) <falcon@lindenlab.com> | 2010-07-13 17:16:05 -0700 |
---|---|---|
committer | Matthew Breindel (Falcon) <falcon@lindenlab.com> | 2010-07-13 17:16:05 -0700 |
commit | a884f5c0c794777f33012a5ca318fd98bab32667 (patch) | |
tree | 5f237d4a60bcd057232439989c29847e66a4d40f /indra/newview/llagent.cpp | |
parent | adf597e4c4a0fd2f8c7ddaad630fda646831b366 (diff) |
Added AgentPositionSnaps data to ViewerStats to measure frequency and scale of interpolation failures.
Diffstat (limited to 'indra/newview/llagent.cpp')
-rw-r--r-- | indra/newview/llagent.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/indra/newview/llagent.cpp b/indra/newview/llagent.cpp index 4e5fdb1219..72d51540ef 100644 --- a/indra/newview/llagent.cpp +++ b/indra/newview/llagent.cpp @@ -3406,6 +3406,9 @@ void LLAgent::setTeleportState(ETeleportState state) } else if(mTeleportState == TELEPORT_ARRIVING) { + // First two position updates after a teleport tend to be weird + LLViewerStats::getInstance()->mAgentPositionSnaps.mCountOfNextUpdatesToIgnore = 2; + // Let the interested parties know we've teleported. LLViewerParcelMgr::getInstance()->onTeleportFinished(false, getPositionGlobal()); } |