* Adjusted the significant movement magic value from 0.5m to 2.0m and added an explanation of what it does

slimupdates
John Hurliman 2010-03-03 12:34:21 -08:00
parent 13a8d11c46
commit fc233d4e1e
1 changed files with 6 additions and 1 deletions

View File

@ -2659,7 +2659,12 @@ namespace OpenSim.Region.Framework.Scenes
/// </summary>
protected void CheckForSignificantMovement()
{
if (Util.GetDistanceTo(AbsolutePosition, posLastSignificantMove) > 0.5)
// Movement updates for agents in neighboring regions are sent directly to clients.
// This value only affects how often agent positions are sent to neighbor regions
// for things such as distance-based update prioritization
const float SIGNIFICANT_MOVEMENT = 2.0f;
if (Util.GetDistanceTo(AbsolutePosition, posLastSignificantMove) > SIGNIFICANT_MOVEMENT)
{
posLastSignificantMove = AbsolutePosition;
m_scene.EventManager.TriggerSignificantClientMovement(m_controllingClient);