From 3ee70aac0b41cd28e41f31a679b4ac4d615f46dc Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Fri, 25 Jan 2019 20:49:18 +0000 Subject: mess around with prioritizer --- OpenSim/Framework/IClientAPI.cs | 27 +++++++-------------------- 1 file changed, 7 insertions(+), 20 deletions(-) (limited to 'OpenSim/Framework/IClientAPI.cs') diff --git a/OpenSim/Framework/IClientAPI.cs b/OpenSim/Framework/IClientAPI.cs index 252ee3e..307dbf3 100644 --- a/OpenSim/Framework/IClientAPI.cs +++ b/OpenSim/Framework/IClientAPI.cs @@ -587,7 +587,6 @@ namespace OpenSim.Framework { private ISceneEntity m_entity; private PrimUpdateFlags m_flags; - private int m_updateTime; public ISceneEntity Entity { @@ -599,41 +598,29 @@ namespace OpenSim.Framework get { return m_flags; } } - public int UpdateTime + public virtual void Update() { - get { return m_updateTime; } + // we are on the new one + if (m_flags.HasFlag(PrimUpdateFlags.CancelKill)) + m_flags = PrimUpdateFlags.FullUpdatewithAnim; } public virtual void Update(EntityUpdate oldupdate) { // we are on the new one PrimUpdateFlags updateFlags = oldupdate.Flags; - if(m_flags.HasFlag(PrimUpdateFlags.CancelKill)) + if (m_flags.HasFlag(PrimUpdateFlags.CancelKill)) { m_flags = PrimUpdateFlags.FullUpdatewithAnim; } - else if(updateFlags.HasFlag(PrimUpdateFlags.Kill)) - return; - else // kill case will just merge in + else m_flags |= updateFlags; - - // Use the older of the updates as the updateTime - if (Util.EnvironmentTickCountCompare(UpdateTime, oldupdate.UpdateTime) > 0) - m_updateTime = oldupdate.UpdateTime; } public EntityUpdate(ISceneEntity entity, PrimUpdateFlags flags) { m_entity = entity; m_flags = flags; - m_updateTime = Util.EnvironmentTickCount(); - } - - public EntityUpdate(ISceneEntity entity, PrimUpdateFlags flags, Int32 updateTime) - { - m_entity = entity; - m_flags = flags; - m_updateTime = updateTime; } } @@ -694,7 +681,7 @@ namespace OpenSim.Framework FullUpdatewithAnim = FullUpdate | Animations, SendInTransit = 0x20000000, // 1 << 29 - CancelKill = 0x41ffffff, // 1 << 30 + CancelKill = 0x40000000, // 1 << 30 Kill = 0x80000000 // 1 << 31 } -- cgit v1.1