aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2014-08-06 00:53:14 +0100
committerJustin Clark-Casey (justincc)2014-08-06 00:53:14 +0100
commit78ccadb27ec48e4d02c07d37bc45c5e0b23c47a7 (patch)
treead3c6cc1f41dff25d0b0f572d686c59e9898fd98
parentrefactor: Rename recent new Client*UpdateTolerance to Root*UpdateTolerance fo... (diff)
downloadopensim-SC_OLD-78ccadb27ec48e4d02c07d37bc45c5e0b23c47a7.zip
opensim-SC_OLD-78ccadb27ec48e4d02c07d37bc45c5e0b23c47a7.tar.gz
opensim-SC_OLD-78ccadb27ec48e4d02c07d37bc45c5e0b23c47a7.tar.bz2
opensim-SC_OLD-78ccadb27ec48e4d02c07d37bc45c5e0b23c47a7.tar.xz
Add RootPositionUpdateTolerance, RootRotationUpdateTolerance, and RootVelocityUpdateTolerance parameters to [InterestManagement] in OpenSimDefaults.ini
These govern when AgentUpdates are sent to observers on position, rotation and velocity changes to an avatar (including the avatar themselves). Higher values reduce AgentUpdate traffic but at a certain level will degrade smoothness of avatar and perceived avatar movement.
-rw-r--r--OpenSim/Region/Framework/Scenes/Scene.cs7
-rw-r--r--bin/OpenSimDefaults.ini24
2 files changed, 23 insertions, 8 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs
index da99d4f..8268235 100644
--- a/OpenSim/Region/Framework/Scenes/Scene.cs
+++ b/OpenSim/Region/Framework/Scenes/Scene.cs
@@ -1035,6 +1035,13 @@ namespace OpenSim.Region.Framework.Scenes
1035 m_rootReprioritizationDistance = interestConfig.GetDouble("RootReprioritizationDistance", 10.0); 1035 m_rootReprioritizationDistance = interestConfig.GetDouble("RootReprioritizationDistance", 10.0);
1036 ChildReprioritizationDistance 1036 ChildReprioritizationDistance
1037 = interestConfig.GetDouble("ChildReprioritizationDistance", ChildReprioritizationDistance); 1037 = interestConfig.GetDouble("ChildReprioritizationDistance", ChildReprioritizationDistance);
1038
1039 RootPositionUpdateTolerance
1040 = interestConfig.GetFloat("RootPositionUpdateTolerance", RootPositionUpdateTolerance);
1041 RootRotationUpdateTolerance
1042 = interestConfig.GetFloat("RootRotationUpdateTolerance", RootRotationUpdateTolerance);
1043 RootVelocityUpdateTolerance
1044 = interestConfig.GetFloat("RootVelocityUpdateTolerance", RootVelocityUpdateTolerance);
1038 } 1045 }
1039 1046
1040 m_log.DebugFormat("[SCENE]: Using the {0} prioritization scheme", m_priorityScheme); 1047 m_log.DebugFormat("[SCENE]: Using the {0} prioritization scheme", m_priorityScheme);
diff --git a/bin/OpenSimDefaults.ini b/bin/OpenSimDefaults.ini
index 3f0be2e..708a094 100644
--- a/bin/OpenSimDefaults.ini
+++ b/bin/OpenSimDefaults.ini
@@ -1729,15 +1729,23 @@
1729 1729
1730 1730
1731[InterestManagement] 1731[InterestManagement]
1732 ; This section controls how state updates are prioritized for each client 1732 ; This section controls how state updates are prioritized for each client
1733 ; Valid values are BestAvatarResponsiveness, Time, Distance, 1733 ; Valid values are BestAvatarResponsiveness, Time, Distance,
1734 ; SimpleAngularDistance, and FrontBack 1734 ; SimpleAngularDistance, and FrontBack
1735 UpdatePrioritizationScheme = BestAvatarResponsiveness 1735 UpdatePrioritizationScheme = BestAvatarResponsiveness
1736 ReprioritizationEnabled = true 1736 ReprioritizationEnabled = true
1737 ReprioritizationInterval = 2000.0 1737 ReprioritizationInterval = 2000.0
1738 RootReprioritizationDistance = 10.0 1738 RootReprioritizationDistance = 10.0
1739 ChildReprioritizationDistance = 20.0 1739 ChildReprioritizationDistance = 20.0
1740
1741 ; Send an update to clients if the difference from the last sent avatar position is greater than this tolerance
1742 RootPositionUpdateTolerance = 0.05
1743
1744 ; Send an update to clients if the euclidian difference from the last sent avatar rotation is greater than this tolerance
1745 RootRotationUpdateTolerance = 0.01
1740 1746
1747 ; Send an update to clients if the difference from the last sent avatar velocity is greater than this tolerance
1748 RootVelocityUpdateTolerance = 0.001
1741 1749
1742[Monitoring] 1750[Monitoring]
1743 ; Enable region monitoring 1751 ; Enable region monitoring