diff options
author | UbitUmarov | 2019-04-06 21:26:12 +0100 |
---|---|---|
committer | UbitUmarov | 2019-04-06 21:26:12 +0100 |
commit | ec6a52c029792e78d31100a742d575ae71b402e3 (patch) | |
tree | 718f74c329897193aa97153e8617e2a55db0bd60 /OpenSim/Region | |
parent | set SupportViewerObjectsCache true by default (diff) | |
download | opensim-SC-ec6a52c029792e78d31100a742d575ae71b402e3.zip opensim-SC-ec6a52c029792e78d31100a742d575ae71b402e3.tar.gz opensim-SC-ec6a52c029792e78d31100a742d575ae71b402e3.tar.bz2 opensim-SC-ec6a52c029792e78d31100a742d575ae71b402e3.tar.xz |
change interpretation of a viewer flag
Diffstat (limited to 'OpenSim/Region')
-rw-r--r-- | OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs | 4 | ||||
-rwxr-xr-x | OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs | 2 | ||||
-rw-r--r-- | OpenSim/Region/Framework/Scenes/ScenePresence.cs | 14 |
3 files changed, 6 insertions, 14 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs index 112b66d..62f0b32 100644 --- a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs +++ b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs | |||
@@ -4814,7 +4814,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
4814 | 4814 | ||
4815 | EntityUpdate update; | 4815 | EntityUpdate update; |
4816 | 4816 | ||
4817 | bool viewerCache = m_supportViewerCache && (m_viewerHandShakeFlags & 1) != 0;// && mysp.IsChildAgent; // only on child agents | 4817 | bool viewerCache = m_supportViewerCache;// && mysp.IsChildAgent; // only on child agents |
4818 | bool doCulling = m_scene.ObjectsCullingByDistance; | 4818 | bool doCulling = m_scene.ObjectsCullingByDistance; |
4819 | float cullingrange = 64.0f; | 4819 | float cullingrange = 64.0f; |
4820 | Vector3 mypos = Vector3.Zero; | 4820 | Vector3 mypos = Vector3.Zero; |
@@ -5650,7 +5650,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
5650 | 5650 | ||
5651 | if(GroupsNeedFullUpdate.Count > 0) | 5651 | if(GroupsNeedFullUpdate.Count > 0) |
5652 | { | 5652 | { |
5653 | bool sendProbes = m_supportViewerCache && (m_viewerHandShakeFlags & 1) != 0 && (m_viewerHandShakeFlags & 2) == 0; | 5653 | bool sendProbes = m_supportViewerCache && (m_viewerHandShakeFlags & 2) == 0; |
5654 | 5654 | ||
5655 | if(sendProbes) | 5655 | if(sendProbes) |
5656 | { | 5656 | { |
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs index 6746573..19535dc 100755 --- a/OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs +++ b/OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs | |||
@@ -369,7 +369,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
369 | /// </summary> | 369 | /// </summary> |
370 | public int IncomingOrphanedPacketCount { get; protected set; } | 370 | public int IncomingOrphanedPacketCount { get; protected set; } |
371 | 371 | ||
372 | public bool SupportViewerObjectsCache = false; | 372 | public bool SupportViewerObjectsCache = true; |
373 | /// <summary> | 373 | /// <summary> |
374 | /// Run queue empty processing within a single persistent thread. | 374 | /// Run queue empty processing within a single persistent thread. |
375 | /// </summary> | 375 | /// </summary> |
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs index aea3a8d..c536184 100644 --- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs | |||
@@ -4045,11 +4045,9 @@ namespace OpenSim.Region.Framework.Scenes | |||
4045 | 4045 | ||
4046 | Scene.SimulationService.ReleaseAgent(originID, UUID, m_callbackURI); | 4046 | Scene.SimulationService.ReleaseAgent(originID, UUID, m_callbackURI); |
4047 | m_callbackURI = null; | 4047 | m_callbackURI = null; |
4048 | //NeedInitialData = 4; | ||
4049 | //return; | ||
4050 | } | 4048 | } |
4051 | // v0.7 close HG sender region | 4049 | // v0.7 close HG sender region |
4052 | if (!string.IsNullOrEmpty(m_newCallbackURI)) | 4050 | else if (!string.IsNullOrEmpty(m_newCallbackURI)) |
4053 | { | 4051 | { |
4054 | m_log.DebugFormat( | 4052 | m_log.DebugFormat( |
4055 | "[SCENE PRESENCE({0})]: Releasing {1} {2} with callback to {3}", | 4053 | "[SCENE PRESENCE({0})]: Releasing {1} {2} with callback to {3}", |
@@ -4062,8 +4060,6 @@ namespace OpenSim.Region.Framework.Scenes | |||
4062 | 4060 | ||
4063 | Scene.SimulationService.ReleaseAgent(originID, UUID, m_newCallbackURI); | 4061 | Scene.SimulationService.ReleaseAgent(originID, UUID, m_newCallbackURI); |
4064 | m_newCallbackURI = null; | 4062 | m_newCallbackURI = null; |
4065 | //NeedInitialData = 4; | ||
4066 | //return; | ||
4067 | } | 4063 | } |
4068 | IEntityTransferModule m_agentTransfer = m_scene.RequestModuleInterface<IEntityTransferModule>(); | 4064 | IEntityTransferModule m_agentTransfer = m_scene.RequestModuleInterface<IEntityTransferModule>(); |
4069 | if (m_agentTransfer != null) | 4065 | if (m_agentTransfer != null) |
@@ -4096,12 +4092,8 @@ namespace OpenSim.Region.Framework.Scenes | |||
4096 | } | 4092 | } |
4097 | else | 4093 | else |
4098 | { | 4094 | { |
4099 | bool cacheCulling = (flags & 1) != 0; | 4095 | //bool cacheCulling = (flags & 1) != 0; |
4100 | bool cacheEmpty; | 4096 | bool cacheEmpty = (flags & 2) != 0;; |
4101 | if (cacheCulling) | ||
4102 | cacheEmpty = (flags & 2) != 0; | ||
4103 | else | ||
4104 | cacheEmpty = true; | ||
4105 | 4097 | ||
4106 | EntityBase[] entities = Scene.Entities.GetEntities(); | 4098 | EntityBase[] entities = Scene.Entities.GetEntities(); |
4107 | if(cacheEmpty) | 4099 | if(cacheEmpty) |