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.
0.8-extended
Justin Clark-Casey (justincc) 2014-08-06 00:53:14 +01:00 committed by Justin Clark-Casey
parent 59a79f52b3
commit ba5f6fdfad
2 changed files with 23 additions and 8 deletions

View File

@ -1035,6 +1035,13 @@ namespace OpenSim.Region.Framework.Scenes
m_rootReprioritizationDistance = interestConfig.GetDouble("RootReprioritizationDistance", 10.0);
ChildReprioritizationDistance
= interestConfig.GetDouble("ChildReprioritizationDistance", ChildReprioritizationDistance);
RootPositionUpdateTolerance
= interestConfig.GetFloat("RootPositionUpdateTolerance", RootPositionUpdateTolerance);
RootRotationUpdateTolerance
= interestConfig.GetFloat("RootRotationUpdateTolerance", RootRotationUpdateTolerance);
RootVelocityUpdateTolerance
= interestConfig.GetFloat("RootVelocityUpdateTolerance", RootVelocityUpdateTolerance);
}
m_log.DebugFormat("[SCENE]: Using the {0} prioritization scheme", m_priorityScheme);

View File

@ -1728,15 +1728,23 @@
[InterestManagement]
; This section controls how state updates are prioritized for each client
; Valid values are BestAvatarResponsiveness, Time, Distance,
; SimpleAngularDistance, and FrontBack
UpdatePrioritizationScheme = BestAvatarResponsiveness
ReprioritizationEnabled = true
ReprioritizationInterval = 2000.0
RootReprioritizationDistance = 10.0
ChildReprioritizationDistance = 20.0
; This section controls how state updates are prioritized for each client
; Valid values are BestAvatarResponsiveness, Time, Distance,
; SimpleAngularDistance, and FrontBack
UpdatePrioritizationScheme = BestAvatarResponsiveness
ReprioritizationEnabled = true
ReprioritizationInterval = 2000.0
RootReprioritizationDistance = 10.0
ChildReprioritizationDistance = 20.0
; Send an update to clients if the difference from the last sent avatar position is greater than this tolerance
RootPositionUpdateTolerance = 0.05
; Send an update to clients if the euclidian difference from the last sent avatar rotation is greater than this tolerance
RootRotationUpdateTolerance = 0.01
; Send an update to clients if the difference from the last sent avatar velocity is greater than this tolerance
RootVelocityUpdateTolerance = 0.001
[Monitoring]
; Enable region monitoring