Skip to content
Snippets Groups Projects
Commit eaabea67 authored by Loren Shih's avatar Loren Shih
Browse files

SH-1364 FIXED Avatar Physics are not updating smoothly even for high-performance machines.

"high" graphics settings now give 100% updates, versus 90%.
Changed a simple constant that was acting as a threshold for when physics should be updated (the constant was set way too high, meaning that updates were being skipped).
parent 21e37069
Branches
Tags
No related merge requests found
...@@ -132,7 +132,7 @@ list High ...@@ -132,7 +132,7 @@ list High
RenderAnisotropic 1 1 RenderAnisotropic 1 1
RenderAvatarCloth 1 0 RenderAvatarCloth 1 0
RenderAvatarLODFactor 1 1.0 RenderAvatarLODFactor 1 1.0
RenderAvatarPhysicsLODFactor 1 0.9 RenderAvatarPhysicsLODFactor 1 1.0
RenderAvatarVP 1 1 RenderAvatarVP 1 1
RenderFarClip 1 128 RenderFarClip 1 128
RenderFlexTimeFactor 1 1.0 RenderFlexTimeFactor 1 1.0
......
...@@ -656,7 +656,7 @@ BOOL LLPhysicsMotion::onUpdate(F32 time) ...@@ -656,7 +656,7 @@ BOOL LLPhysicsMotion::onUpdate(F32 time)
if ((pixel_area > area_for_this_setting) || is_self) if ((pixel_area > area_for_this_setting) || is_self)
{ {
const F32 position_diff_local = llabs(mPositionLastUpdate_local-position_new_local_clamped); const F32 position_diff_local = llabs(mPositionLastUpdate_local-position_new_local_clamped);
const F32 min_delta = (1.01f-lod_factor)*0.4f; const F32 min_delta = (1.0001f-lod_factor)*0.4f;
if (llabs(position_diff_local) > min_delta) if (llabs(position_diff_local) > min_delta)
{ {
update_visuals = TRUE; update_visuals = TRUE;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment