aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
authorJohn Hurliman2010-03-03 12:34:21 -0800
committerJohn Hurliman2010-03-03 12:34:21 -0800
commitfc233d4e1e2601fd0c86e84849873d4bd8b55420 (patch)
tree8c88df4a63133c3e0de19c47cd5f874952cbd83f /OpenSim
parentRemoving the sLLVector3 dinosaur (diff)
downloadopensim-SC_OLD-fc233d4e1e2601fd0c86e84849873d4bd8b55420.zip
opensim-SC_OLD-fc233d4e1e2601fd0c86e84849873d4bd8b55420.tar.gz
opensim-SC_OLD-fc233d4e1e2601fd0c86e84849873d4bd8b55420.tar.bz2
opensim-SC_OLD-fc233d4e1e2601fd0c86e84849873d4bd8b55420.tar.xz
* Adjusted the significant movement magic value from 0.5m to 2.0m and added an explanation of what it does
Diffstat (limited to 'OpenSim')
-rw-r--r--OpenSim/Region/Framework/Scenes/ScenePresence.cs7
1 files changed, 6 insertions, 1 deletions
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
index c7008df..465e916 100644
--- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs
+++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
@@ -2659,7 +2659,12 @@ namespace OpenSim.Region.Framework.Scenes
2659 /// </summary> 2659 /// </summary>
2660 protected void CheckForSignificantMovement() 2660 protected void CheckForSignificantMovement()
2661 { 2661 {
2662 if (Util.GetDistanceTo(AbsolutePosition, posLastSignificantMove) > 0.5) 2662 // Movement updates for agents in neighboring regions are sent directly to clients.
2663 // This value only affects how often agent positions are sent to neighbor regions
2664 // for things such as distance-based update prioritization
2665 const float SIGNIFICANT_MOVEMENT = 2.0f;
2666
2667 if (Util.GetDistanceTo(AbsolutePosition, posLastSignificantMove) > SIGNIFICANT_MOVEMENT)
2663 { 2668 {
2664 posLastSignificantMove = AbsolutePosition; 2669 posLastSignificantMove = AbsolutePosition;
2665 m_scene.EventManager.TriggerSignificantClientMovement(m_controllingClient); 2670 m_scene.EventManager.TriggerSignificantClientMovement(m_controllingClient);