diff options
| author | Dave Parks <davep@lindenlab.com> | 2012-06-01 15:51:14 -0500 |
|---|---|---|
| committer | Dave Parks <davep@lindenlab.com> | 2012-06-01 15:51:14 -0500 |
| commit | ae15778eebafa6c8f69cedd51fe5fe1a5f7b543b (patch) | |
| tree | 76a83a42a0e0b4764649a19b98c36f135fb29828 /indra/llcharacter/llkeyframewalkmotion.cpp | |
| parent | 02a88f42a248f96f6816af4f674dde23f6bad9ef (diff) | |
Add some timers.
Diffstat (limited to 'indra/llcharacter/llkeyframewalkmotion.cpp')
| -rw-r--r-- | indra/llcharacter/llkeyframewalkmotion.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/indra/llcharacter/llkeyframewalkmotion.cpp b/indra/llcharacter/llkeyframewalkmotion.cpp index d52eb89a5c..ea63f9f8dc 100644 --- a/indra/llcharacter/llkeyframewalkmotion.cpp +++ b/indra/llcharacter/llkeyframewalkmotion.cpp @@ -196,11 +196,15 @@ BOOL LLWalkAdjustMotion::onActivate() return TRUE; } +static LLFastTimer::DeclareTimer FTM_WALK_ADJUST_MOTION("Walk Adjust"); + //----------------------------------------------------------------------------- // LLWalkAdjustMotion::onUpdate() //----------------------------------------------------------------------------- BOOL LLWalkAdjustMotion::onUpdate(F32 time, U8* joint_mask) { + LLFastTimer t(FTM_WALK_ADJUST_MOTION); + // delta_time is guaranteed to be non zero F32 delta_time = llclamp(time - mLastTime, TIME_EPSILON, MAX_TIME_DELTA); mLastTime = time; |
