aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/ScenePresence.cs
diff options
context:
space:
mode:
authorDiva Canto2012-02-19 12:28:07 -0800
committerDiva Canto2012-02-19 12:28:07 -0800
commit20c65ac438ee67ecd3f837d268e44992f13a8af6 (patch)
tree0ca85b2064e8b5459f34586079d06a34d0e595ec /OpenSim/Region/Framework/Scenes/ScenePresence.cs
parentThis should smooth movement in heteregeneous networks by a lot: cache the reg... (diff)
downloadopensim-SC_OLD-20c65ac438ee67ecd3f837d268e44992f13a8af6.zip
opensim-SC_OLD-20c65ac438ee67ecd3f837d268e44992f13a8af6.tar.gz
opensim-SC_OLD-20c65ac438ee67ecd3f837d268e44992f13a8af6.tar.bz2
opensim-SC_OLD-20c65ac438ee67ecd3f837d268e44992f13a8af6.tar.xz
A few more tweaks on position updates and create child agents. Mono hates concurrent uses of the same TCP connection, and even of the connections to the same server. So let's stop doing it. This patch makes movement much smoother when there are lots of neighbours.
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/ScenePresence.cs')
-rw-r--r--OpenSim/Region/Framework/Scenes/ScenePresence.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
index 77f7b32..8639697 100644
--- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs
+++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
@@ -2738,7 +2738,8 @@ namespace OpenSim.Region.Framework.Scenes
2738 AgentPosition agentpos = new AgentPosition(); 2738 AgentPosition agentpos = new AgentPosition();
2739 agentpos.CopyFrom(cadu); 2739 agentpos.CopyFrom(cadu);
2740 2740
2741 m_scene.SendOutChildAgentUpdates(agentpos, this); 2741 // Let's get this out of the update loop
2742 Util.FireAndForget(delegate { m_scene.SendOutChildAgentUpdates(agentpos, this); });
2742 } 2743 }
2743 } 2744 }
2744 2745