change interpretation of a viewer flag

0.9.1.0-post-fixes
UbitUmarov 2019-04-06 21:26:12 +01:00
parent a25e18587c
commit ec6a52c029
3 changed files with 6 additions and 14 deletions

View File

@ -4814,7 +4814,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
EntityUpdate update;
bool viewerCache = m_supportViewerCache && (m_viewerHandShakeFlags & 1) != 0;// && mysp.IsChildAgent; // only on child agents
bool viewerCache = m_supportViewerCache;// && mysp.IsChildAgent; // only on child agents
bool doCulling = m_scene.ObjectsCullingByDistance;
float cullingrange = 64.0f;
Vector3 mypos = Vector3.Zero;
@ -5650,7 +5650,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
if(GroupsNeedFullUpdate.Count > 0)
{
bool sendProbes = m_supportViewerCache && (m_viewerHandShakeFlags & 1) != 0 && (m_viewerHandShakeFlags & 2) == 0;
bool sendProbes = m_supportViewerCache && (m_viewerHandShakeFlags & 2) == 0;
if(sendProbes)
{

View File

@ -369,7 +369,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
/// </summary>
public int IncomingOrphanedPacketCount { get; protected set; }
public bool SupportViewerObjectsCache = false;
public bool SupportViewerObjectsCache = true;
/// <summary>
/// Run queue empty processing within a single persistent thread.
/// </summary>

View File

@ -4045,11 +4045,9 @@ namespace OpenSim.Region.Framework.Scenes
Scene.SimulationService.ReleaseAgent(originID, UUID, m_callbackURI);
m_callbackURI = null;
//NeedInitialData = 4;
//return;
}
// v0.7 close HG sender region
if (!string.IsNullOrEmpty(m_newCallbackURI))
else if (!string.IsNullOrEmpty(m_newCallbackURI))
{
m_log.DebugFormat(
"[SCENE PRESENCE({0})]: Releasing {1} {2} with callback to {3}",
@ -4062,8 +4060,6 @@ namespace OpenSim.Region.Framework.Scenes
Scene.SimulationService.ReleaseAgent(originID, UUID, m_newCallbackURI);
m_newCallbackURI = null;
//NeedInitialData = 4;
//return;
}
IEntityTransferModule m_agentTransfer = m_scene.RequestModuleInterface<IEntityTransferModule>();
if (m_agentTransfer != null)
@ -4096,12 +4092,8 @@ namespace OpenSim.Region.Framework.Scenes
}
else
{
bool cacheCulling = (flags & 1) != 0;
bool cacheEmpty;
if (cacheCulling)
cacheEmpty = (flags & 2) != 0;
else
cacheEmpty = true;
//bool cacheCulling = (flags & 1) != 0;
bool cacheEmpty = (flags & 2) != 0;;
EntityBase[] entities = Scene.Entities.GetEntities();
if(cacheEmpty)