Changed order of checks for local regions when processing
AgentUpdate messages. Should improve throttles and reprioritization when an avatar is moving.0.7.1-dev
parent
72cb498fd0
commit
3c0d607f45
|
@ -192,15 +192,10 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Simulation
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
// Try local first
|
// Try local first
|
||||||
if (m_localBackend.UpdateAgent(destination, cAgentData))
|
if (m_localBackend.IsLocalRegion(destination.RegionHandle))
|
||||||
return true;
|
return m_localBackend.UpdateAgent(destination, cAgentData);
|
||||||
|
|
||||||
// else do the remote thing
|
|
||||||
if (!m_localBackend.IsLocalRegion(destination.RegionHandle))
|
|
||||||
return m_remoteConnector.UpdateAgent(destination, cAgentData);
|
|
||||||
|
|
||||||
return false;
|
|
||||||
|
|
||||||
|
return m_remoteConnector.UpdateAgent(destination, cAgentData);
|
||||||
}
|
}
|
||||||
|
|
||||||
public bool UpdateAgent(GridRegion destination, AgentPosition cAgentData)
|
public bool UpdateAgent(GridRegion destination, AgentPosition cAgentData)
|
||||||
|
@ -209,15 +204,10 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Simulation
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
// Try local first
|
// Try local first
|
||||||
if (m_localBackend.UpdateAgent(destination, cAgentData))
|
if (m_localBackend.IsLocalRegion(destination.RegionHandle))
|
||||||
return true;
|
return m_localBackend.UpdateAgent(destination, cAgentData);
|
||||||
|
|
||||||
// else do the remote thing
|
|
||||||
if (!m_localBackend.IsLocalRegion(destination.RegionHandle))
|
|
||||||
return m_remoteConnector.UpdateAgent(destination, cAgentData);
|
|
||||||
|
|
||||||
return false;
|
|
||||||
|
|
||||||
|
return m_remoteConnector.UpdateAgent(destination, cAgentData);
|
||||||
}
|
}
|
||||||
|
|
||||||
public bool RetrieveAgent(GridRegion destination, UUID id, out IAgentData agent)
|
public bool RetrieveAgent(GridRegion destination, UUID id, out IAgentData agent)
|
||||||
|
|
Loading…
Reference in New Issue