diff options
| author | Richard Linden <none@none> | 2013-03-21 00:37:20 -0700 |
|---|---|---|
| committer | Richard Linden <none@none> | 2013-03-21 00:37:20 -0700 |
| commit | 1f507c3cfca0c7722ebeaf71883fbaa83988e1a9 (patch) | |
| tree | c944ece26361162c2e405c710643fc43e3bc022d /indra/newview/llagent.cpp | |
| parent | 452d3350a241695d962dc58403ce4e35541b6353 (diff) | |
SH-3931 WIP Interesting: Add graphs to visualize scene load metrics
copied over scene load frame differencing changes from viewer-interesting
made periodicrecording flexible enough to allow for indefinite number of periods
added scene loading stats floater
fixed collapsing behavior of container views
Diffstat (limited to 'indra/newview/llagent.cpp')
| -rwxr-xr-x | indra/newview/llagent.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/indra/newview/llagent.cpp b/indra/newview/llagent.cpp index 4fb298df13..4e60127ef3 100755 --- a/indra/newview/llagent.cpp +++ b/indra/newview/llagent.cpp @@ -1046,6 +1046,14 @@ const LLVector3d &LLAgent::getPositionGlobal() const return mPositionGlobal; } +bool LLAgent::isPositionChanged() const +{ + LLVector3d diff; + diff = mPositionGlobal - mLastPositionGlobal; + + return diff.lengthSquared() > 1.0; +} + //----------------------------------------------------------------------------- // getPositionAgent() //----------------------------------------------------------------------------- |
