Halve the prediction lag for region crossing to improve most flying region crossings without degrading the walk cross experience (neither of which have been that great anyway).

mb-throttle-test
Justin Clark-Casey (justincc) 2014-11-29 00:48:26 +00:00
parent 39eab72d7c
commit dcc36507f3
1 changed files with 2 additions and 2 deletions

View File

@ -3674,10 +3674,10 @@ namespace OpenSim.Region.Framework.Scenes
Vector3 origPosition = pos2; Vector3 origPosition = pos2;
Vector3 vel = Velocity; Vector3 vel = Velocity;
// Compute the avatar position in the next physics tick. // Compute the future avatar position.
// If the avatar will be crossing, we force the crossing to happen now // If the avatar will be crossing, we force the crossing to happen now
// in the hope that this will make the avatar movement smoother when crossing. // in the hope that this will make the avatar movement smoother when crossing.
pos2 += vel * 0.1f; pos2 += vel * 0.05f;
if (m_scene.PositionIsInCurrentRegion(pos2)) if (m_scene.PositionIsInCurrentRegion(pos2))
return; return;