Skip to content

Commit 2a812e0

Browse files
committed
Revert "Limit avatar physics to 20-40 simulation steps per second to avoid wonky integration"
This reverts commit cde5b23.
1 parent 58b7fe5 commit 2a812e0

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

indra/newview/llphysicsmotion.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,7 @@ typedef std::map<std::string, std::string> controller_map_t;
4545
typedef std::map<std::string, F32> default_controller_map_t;
4646

4747
#define MIN_REQUIRED_PIXEL_AREA_AVATAR_PHYSICS_MOTION 0.f
48-
#define TIME_ITERATION_STEP 0.05f
49-
#define MINIMUM_UPDATE_TIMESTEP 0.025f
48+
#define TIME_ITERATION_STEP 0.1f
5049

5150
inline F64 llsgn(const F64 a)
5251
{
@@ -593,7 +592,7 @@ BOOL LLPhysicsMotion::onUpdate(F32 time)
593592
const F32 time_delta = time - mLastTime;
594593

595594
// Don't update too frequently, to avoid precision errors from small time slices.
596-
if (time_delta <= MINIMUM_UPDATE_TIMESTEP)
595+
if (time_delta <= .01)
597596
{
598597
return FALSE;
599598
}
@@ -890,4 +889,4 @@ void LLPhysicsMotion::reset()
890889
mCharacter->setVisualParamWeight((*iter).mParam,(*iter).mParam->getDefaultWeight());
891890
}
892891
}
893-
}
892+
}

0 commit comments

Comments
 (0)