diff options
author | Richard Linden <none@none> | 2013-04-11 19:12:27 -0700 |
---|---|---|
committer | Richard Linden <none@none> | 2013-04-11 19:12:27 -0700 |
commit | bdc6d58b7e84bc81977148995b0028f7420eee65 (patch) | |
tree | 9bb49c521a79b5da1d2e510c7a5691b971135fa8 /indra/newview | |
parent | ae028e79872f166db8e514ca3b442c7807d6ebdb (diff) |
SH-3931 WIP Interesting: Add graphs to visualize scene load metrics
added ability to query periodic timer for specific number of periods
used that to do smaller time averaged window for camera speed
Diffstat (limited to 'indra/newview')
-rw-r--r-- | indra/newview/llviewercamera.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/newview/llviewercamera.cpp b/indra/newview/llviewercamera.cpp index 9ca5f07f35..1f5bdc8589 100644 --- a/indra/newview/llviewercamera.cpp +++ b/indra/newview/llviewercamera.cpp @@ -170,7 +170,7 @@ void LLViewerCamera::updateCameraLocation(const LLVector3 ¢er, add(sVelocityStat, dpos); add(sAngularVelocityStat, drot); - mAverageSpeed = LLTrace::get_frame_recording().getPeriodMeanPerSec(sVelocityStat); + mAverageSpeed = LLTrace::get_frame_recording().getPeriodMeanPerSec(sVelocityStat, 50); mAverageAngularSpeed = LLTrace::get_frame_recording().getPeriodMeanPerSec(sAngularVelocityStat); mCosHalfCameraFOV = cosf(0.5f * getView() * llmax(1.0f, getAspect())); |