Skip to content

Commit

Permalink
Revert "Limit avatar physics to 20-40 simulation steps per second to …
Browse files Browse the repository at this point in the history
…avoid wonky integration"

This reverts commit cde5b23.
  • Loading branch information
lkalif committed Jan 28, 2014
1 parent 58b7fe5 commit 2a812e0
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions indra/newview/llphysicsmotion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@ typedef std::map<std::string, std::string> controller_map_t;
typedef std::map<std::string, F32> default_controller_map_t;

#define MIN_REQUIRED_PIXEL_AREA_AVATAR_PHYSICS_MOTION 0.f
#define TIME_ITERATION_STEP 0.05f
#define MINIMUM_UPDATE_TIMESTEP 0.025f
#define TIME_ITERATION_STEP 0.1f

inline F64 llsgn(const F64 a)
{
Expand Down Expand Up @@ -593,7 +592,7 @@ BOOL LLPhysicsMotion::onUpdate(F32 time)
const F32 time_delta = time - mLastTime;

// Don't update too frequently, to avoid precision errors from small time slices.
if (time_delta <= MINIMUM_UPDATE_TIMESTEP)
if (time_delta <= .01)
{
return FALSE;
}
Expand Down Expand Up @@ -890,4 +889,4 @@ void LLPhysicsMotion::reset()
mCharacter->setVisualParamWeight((*iter).mParam,(*iter).mParam->getDefaultWeight());
}
}
}
}

0 comments on commit 2a812e0

Please sign in to comment.