aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
authorUbitUmarov2019-03-23 03:58:22 +0000
committerUbitUmarov2019-03-23 03:58:22 +0000
commit010d64dcd2d55850750b3c67ae901d7b183fd741 (patch)
tree479227b1e8387ae7ab27edc4d38d6d198fc39ffb /OpenSim/Region
parentpesty warning (diff)
downloadopensim-SC-010d64dcd2d55850750b3c67ae901d7b183fd741.zip
opensim-SC-010d64dcd2d55850750b3c67ae901d7b183fd741.tar.gz
opensim-SC-010d64dcd2d55850750b3c67ae901d7b183fd741.tar.bz2
opensim-SC-010d64dcd2d55850750b3c67ae901d7b183fd741.tar.xz
a bit more suicidal...
Diffstat (limited to 'OpenSim/Region')
-rw-r--r--OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs6
-rw-r--r--OpenSim/Region/Framework/Scenes/ScenePresence.cs32
2 files changed, 21 insertions, 17 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs
index 526783e..9d606a6 100644
--- a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs
+++ b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs
@@ -4811,7 +4811,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
4811 4811
4812 EntityUpdate update; 4812 EntityUpdate update;
4813 4813
4814 bool viewerCache = m_supportViewerCache && (m_viewerHandShakeFlags & 1) != 0 && mysp.IsChildAgent; // only on child agents 4814 bool viewerCache = m_supportViewerCache && (m_viewerHandShakeFlags & 1) != 0;// && mysp.IsChildAgent; // only on child agents
4815 bool doCulling = m_scene.ObjectsCullingByDistance; 4815 bool doCulling = m_scene.ObjectsCullingByDistance;
4816 float cullingrange = 64.0f; 4816 float cullingrange = 64.0f;
4817 Vector3 mypos = Vector3.Zero; 4817 Vector3 mypos = Vector3.Zero;
@@ -5449,7 +5449,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
5449// 5449//
5450 } 5450 }
5451*/ 5451*/
5452 public void ReprioritizeUpdates() 5452 public void ReprioritizeUpdates()
5453 { 5453 {
5454 lock (m_entityUpdates.SyncRoot) 5454 lock (m_entityUpdates.SyncRoot)
5455 m_entityUpdates.Reprioritize(UpdatePriorityHandler); 5455 m_entityUpdates.Reprioritize(UpdatePriorityHandler);
@@ -5544,7 +5544,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
5544 5544
5545 if(GroupsNeedFullUpdate.Count > 0) 5545 if(GroupsNeedFullUpdate.Count > 0)
5546 { 5546 {
5547 bool viewerCache = m_supportViewerCache && (m_viewerHandShakeFlags & 1) != 0 && mysp.IsChildAgent; 5547 bool viewerCache = m_supportViewerCache && (m_viewerHandShakeFlags & 1) != 0;// && mysp.IsChildAgent;
5548 foreach (SceneObjectGroup grp in GroupsNeedFullUpdate) 5548 foreach (SceneObjectGroup grp in GroupsNeedFullUpdate)
5549 { 5549 {
5550 PrimUpdateFlags flags = PrimUpdateFlags.CancelKill; 5550 PrimUpdateFlags flags = PrimUpdateFlags.CancelKill;
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
index e635841..e35481f 100644
--- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs
+++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
@@ -2368,8 +2368,9 @@ namespace OpenSim.Region.Framework.Scenes
2368 //m_log.DebugFormat("[CompleteMovement] openChildAgents: {0}ms", Util.EnvironmentTickCountSubtract(ts)); 2368 //m_log.DebugFormat("[CompleteMovement] openChildAgents: {0}ms", Util.EnvironmentTickCountSubtract(ts));
2369 2369
2370 // send the rest of the world 2370 // send the rest of the world
2371 if (m_teleportFlags > 0 | m_currentParcelHide) 2371 if (m_teleportFlags > 0 || m_currentParcelHide)
2372 SendInitialDataToMe(); 2372 //SendInitialDataToMe();
2373 SendOtherAgentsAvatarFullToMe();
2373 2374
2374 // priority uses avatar position only 2375 // priority uses avatar position only
2375 // m_reprioritizationLastPosition = AbsolutePosition; 2376 // m_reprioritizationLastPosition = AbsolutePosition;
@@ -4035,8 +4036,8 @@ namespace OpenSim.Region.Framework.Scenes
4035 else 4036 else
4036 cacheEmpty = true; 4037 cacheEmpty = true;
4037 4038
4038 if (m_teleportFlags > 0) // only doing for child for now 4039// if (m_teleportFlags > 0) // only doing for child for now
4039 return; 4040// return;
4040 4041
4041 lock (m_completeMovementLock) 4042 lock (m_completeMovementLock)
4042 { 4043 {
@@ -4047,18 +4048,21 @@ namespace OpenSim.Region.Framework.Scenes
4047 4048
4048 Util.FireAndForget(delegate 4049 Util.FireAndForget(delegate
4049 { 4050 {
4050 Scene.SendLayerData(ControllingClient); 4051 if (m_teleportFlags <= 0)
4052 {
4053 Scene.SendLayerData(ControllingClient);
4051 4054
4052 ILandChannel landch = m_scene.LandChannel; 4055 ILandChannel landch = m_scene.LandChannel;
4053 if (landch != null) 4056 if (landch != null)
4054 landch.sendClientInitialLandInfo(ControllingClient, true); 4057 landch.sendClientInitialLandInfo(ControllingClient, true);
4058
4059 SendOtherAgentsAvatarFullToMe();
4060 }
4055 4061
4056 // recheck to reduce timing issues 4062 // recheck to reduce timing issues
4057 ControllingClient.CheckViewerCaps(); 4063 ControllingClient.CheckViewerCaps();
4058 4064
4059 SendOtherAgentsAvatarFullToMe(); 4065 if (m_scene.ObjectsCullingByDistance)
4060 /*
4061 if (m_scene.ObjectsCullingByDistance && cacheCulling)
4062 { 4066 {
4063 m_reprioritizationBusy = true; 4067 m_reprioritizationBusy = true;
4064 m_reprioritizationLastPosition = AbsolutePosition; 4068 m_reprioritizationLastPosition = AbsolutePosition;
@@ -4069,7 +4073,6 @@ namespace OpenSim.Region.Framework.Scenes
4069 m_reprioritizationBusy = false; 4073 m_reprioritizationBusy = false;
4070 return; 4074 return;
4071 } 4075 }
4072 */
4073 4076
4074 EntityBase[] entities = Scene.Entities.GetEntities(); 4077 EntityBase[] entities = Scene.Entities.GetEntities();
4075 if(cacheEmpty) 4078 if(cacheEmpty)
@@ -4367,18 +4370,19 @@ namespace OpenSim.Region.Framework.Scenes
4367 if(IsDeleted || !ControllingClient.IsActive) 4370 if(IsDeleted || !ControllingClient.IsActive)
4368 return; 4371 return;
4369 4372
4373/*
4370 bool needsendinitial = false; 4374 bool needsendinitial = false;
4371 lock(m_completeMovementLock) 4375 lock(m_completeMovementLock)
4372 { 4376 {
4373 needsendinitial = SentInitialData; 4377 needsendinitial = SentInitialData;
4374 } 4378 }
4375 4379
4376 if(!needsendinitial) 4380 if(needsendinitial)
4377 { 4381 {
4378 SendInitialDataToMe(); 4382 SendInitialDataToMe();
4379 return; 4383 return;
4380 } 4384 }
4381 4385*/
4382 if(m_reprioritizationBusy) 4386 if(m_reprioritizationBusy)
4383 return; 4387 return;
4384 4388