aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim')
-rwxr-xr-xOpenSim/Region/Framework/Scenes/Scene.cs22
-rw-r--r--OpenSim/Region/OptionalModules/World/SceneCommands/SceneCommandsModule.cs2
2 files changed, 15 insertions, 9 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
diff --git a/OpenSim/Region/OptionalModules/World/SceneCommands/SceneCommandsModule.cs b/OpenSim/Region/OptionalModules/World/SceneCommands/SceneCommandsModule.cs
index 1102aca..db5c7eb 100644
--- a/OpenSim/Region/OptionalModules/World/SceneCommands/SceneCommandsModule.cs
+++ b/OpenSim/Region/OptionalModules/World/SceneCommands/SceneCommandsModule.cs
@@ -225,7 +225,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Attachments
225 225
226 // FIXME: This can only come from the console at the moment but might not always be true. 226 // FIXME: This can only come from the console at the moment but might not always be true.
227 if (ConsoleUtil.TryParseConsoleDouble(MainConsole.Instance, options["child-repri"], out newValue)) 227 if (ConsoleUtil.TryParseConsoleDouble(MainConsole.Instance, options["child-repri"], out newValue))
228 m_scene.ChildReprioritizationDistance = newValue; 228 m_scene.ChildReprioritizationDistance = (float)newValue;
229 } 229 }
230 230
231 if (options.ContainsKey("client-pos-upd")) 231 if (options.ContainsKey("client-pos-upd"))