aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/Scene.cs
diff options
context:
space:
mode:
authorUbitUmarov2015-12-19 17:39:42 +0000
committerUbitUmarov2015-12-19 17:39:42 +0000
commit01a27e8c7118a09ae959c9d00832b549831169ae (patch)
tree1f149027216f68109bdce2659f5daced8e795973 /OpenSim/Region/Framework/Scenes/Scene.cs
parenta more clean enforcement of BestAvatarResponsiveness (others aren't good at m... (diff)
downloadopensim-SC-01a27e8c7118a09ae959c9d00832b549831169ae.zip
opensim-SC-01a27e8c7118a09ae959c9d00832b549831169ae.tar.gz
opensim-SC-01a27e8c7118a09ae959c9d00832b549831169ae.tar.bz2
opensim-SC-01a27e8c7118a09ae959c9d00832b549831169ae.tar.xz
establish a minimun for ReprioritizationDistance
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/Scene.cs')
-rwxr-xr-xOpenSim/Region/Framework/Scenes/Scene.cs22
1 files changed, 14 insertions, 8 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs
index 5c5e4b3..1ccba4b 100755
--- a/OpenSim/Region/Framework/Scenes/Scene.cs
+++ b/OpenSim/Region/Framework/Scenes/Scene.cs
@@ -801,9 +801,10 @@ namespace OpenSim.Region.Framework.Scenes
801 801
802 public UpdatePrioritizationSchemes UpdatePrioritizationScheme { get; set; } 802 public UpdatePrioritizationSchemes UpdatePrioritizationScheme { get; set; }
803 public bool IsReprioritizationEnabled { get; set; } 803 public bool IsReprioritizationEnabled { get; set; }
804 public double ReprioritizationInterval { get; set; } 804 public float ReprioritizationInterval { get; set; }
805 public double RootReprioritizationDistance { get; set; } 805 public float RootReprioritizationDistance { get; set; }
806 public double ChildReprioritizationDistance { get; set; } 806 public float ChildReprioritizationDistance { get; set; }
807 private float m_minReprioritizationDistance = 32f;
807 808
808 public AgentCircuitManager AuthenticateHandler 809 public AgentCircuitManager AuthenticateHandler
809 { 810 {
@@ -1181,11 +1182,16 @@ namespace OpenSim.Region.Framework.Scenes
1181 IsReprioritizationEnabled 1182 IsReprioritizationEnabled
1182 = interestConfig.GetBoolean("ReprioritizationEnabled", IsReprioritizationEnabled); 1183 = interestConfig.GetBoolean("ReprioritizationEnabled", IsReprioritizationEnabled);
1183 ReprioritizationInterval 1184 ReprioritizationInterval
1184 = interestConfig.GetDouble("ReprioritizationInterval", ReprioritizationInterval); 1185 = interestConfig.GetFloat("ReprioritizationInterval", ReprioritizationInterval);
1185 RootReprioritizationDistance 1186 RootReprioritizationDistance
1186 = interestConfig.GetDouble("RootReprioritizationDistance", RootReprioritizationDistance); 1187 = interestConfig.GetFloat("RootReprioritizationDistance", RootReprioritizationDistance);
1187 ChildReprioritizationDistance 1188 ChildReprioritizationDistance
1188 = interestConfig.GetDouble("ChildReprioritizationDistance", ChildReprioritizationDistance); 1189 = interestConfig.GetFloat("ChildReprioritizationDistance", ChildReprioritizationDistance);
1190
1191 if(RootReprioritizationDistance < m_minReprioritizationDistance)
1192 RootReprioritizationDistance = m_minReprioritizationDistance;
1193 if(ChildReprioritizationDistance < m_minReprioritizationDistance)
1194 ChildReprioritizationDistance = m_minReprioritizationDistance;
1189 1195
1190 RootTerseUpdatePeriod = interestConfig.GetInt("RootTerseUpdatePeriod", RootTerseUpdatePeriod); 1196 RootTerseUpdatePeriod = interestConfig.GetInt("RootTerseUpdatePeriod", RootTerseUpdatePeriod);
1191 ChildTerseUpdatePeriod = interestConfig.GetInt("ChildTerseUpdatePeriod", ChildTerseUpdatePeriod); 1197 ChildTerseUpdatePeriod = interestConfig.GetInt("ChildTerseUpdatePeriod", ChildTerseUpdatePeriod);
@@ -1244,8 +1250,8 @@ namespace OpenSim.Region.Framework.Scenes
1244 RootRotationUpdateTolerance = 0.1f; 1250 RootRotationUpdateTolerance = 0.1f;
1245 RootVelocityUpdateTolerance = 0.001f; 1251 RootVelocityUpdateTolerance = 0.001f;
1246 RootPositionUpdateTolerance = 0.05f; 1252 RootPositionUpdateTolerance = 0.05f;
1247 RootReprioritizationDistance = 10.0; 1253 RootReprioritizationDistance = m_minReprioritizationDistance;
1248 ChildReprioritizationDistance = 20.0; 1254 ChildReprioritizationDistance = m_minReprioritizationDistance;
1249 1255
1250 m_eventManager = new EventManager(); 1256 m_eventManager = new EventManager();
1251 1257