aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/ScenePresence.cs
diff options
context:
space:
mode:
authorDiva Canto2010-12-14 20:15:26 -0800
committerDiva Canto2010-12-14 20:15:26 -0800
commited26376ec5377050dd2cf0b17f41009834638875 (patch)
tree2908d12ad1e8e831c02fafefe9a6ff3c7d4db72f /OpenSim/Region/Framework/Scenes/ScenePresence.cs
parentAnother attempt at moving heavy computation away from the Update loop. #LoginLag (diff)
downloadopensim-SC_OLD-ed26376ec5377050dd2cf0b17f41009834638875.zip
opensim-SC_OLD-ed26376ec5377050dd2cf0b17f41009834638875.tar.gz
opensim-SC_OLD-ed26376ec5377050dd2cf0b17f41009834638875.tar.bz2
opensim-SC_OLD-ed26376ec5377050dd2cf0b17f41009834638875.tar.xz
Yet more things out of the main Update thread loop and into threadlets. This time, SendPrimsUpdate. Plus a few more tweaks on triggering actions from the Update loop. #LoginLag.
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/ScenePresence.cs')
-rw-r--r--OpenSim/Region/Framework/Scenes/ScenePresence.cs5
1 files changed, 4 insertions, 1 deletions
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
index 432ce46..9d72bf6 100644
--- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs
+++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
@@ -2279,6 +2279,8 @@ namespace OpenSim.Region.Framework.Scenes
2279 2279
2280 #region Overridden Methods 2280 #region Overridden Methods
2281 2281
2282 private bool sendingPrims = false;
2283
2282 public override void Update() 2284 public override void Update()
2283 { 2285 {
2284 const float ROTATION_TOLERANCE = 0.01f; 2286 const float ROTATION_TOLERANCE = 0.01f;
@@ -2286,7 +2288,8 @@ namespace OpenSim.Region.Framework.Scenes
2286 const float POSITION_TOLERANCE = 0.05f; 2288 const float POSITION_TOLERANCE = 0.05f;
2287 //const int TIME_MS_TOLERANCE = 3000; 2289 //const int TIME_MS_TOLERANCE = 3000;
2288 2290
2289 SendPrimUpdates(); 2291 if (!sendingPrims)
2292 Util.FireAndForget(delegate { sendingPrims = true; SendPrimUpdates(); sendingPrims = false; });
2290 2293
2291 if (m_isChildAgent == false) 2294 if (m_isChildAgent == false)
2292 { 2295 {