Thank you, mpallari, for a patch that correct the behavior of the avatar
performance patch. Fixes Mantis #35620.6.5-rc1
parent
ceb4db5272
commit
e901c8be17
|
@ -2746,13 +2746,11 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||||
|
|
||||||
private void ProcessAvatarTerseUpdates(object sender, ElapsedEventArgs e)
|
private void ProcessAvatarTerseUpdates(object sender, ElapsedEventArgs e)
|
||||||
{
|
{
|
||||||
Dictionary<uint, ImprovedTerseObjectUpdatePacket.ObjectDataBlock> dataBlocks = null;
|
|
||||||
|
|
||||||
lock (m_terseUpdates)
|
lock (m_terseUpdates)
|
||||||
{
|
{
|
||||||
ImprovedTerseObjectUpdatePacket terse = (ImprovedTerseObjectUpdatePacket)PacketPool.Instance.GetPacket(PacketType.ImprovedTerseObjectUpdate);
|
ImprovedTerseObjectUpdatePacket terse = (ImprovedTerseObjectUpdatePacket)PacketPool.Instance.GetPacket(PacketType.ImprovedTerseObjectUpdate);
|
||||||
terse.RegionData.RegionHandle = Scene.RegionInfo.RegionHandle;
|
terse.RegionData.RegionHandle = Scene.RegionInfo.RegionHandle;
|
||||||
terse.ObjectData = new ImprovedTerseObjectUpdatePacket.ObjectDataBlock[dataBlocks.Count];
|
terse.ObjectData = new ImprovedTerseObjectUpdatePacket.ObjectDataBlock[m_terseUpdates.Count];
|
||||||
|
|
||||||
int i = 0;
|
int i = 0;
|
||||||
foreach (KeyValuePair<uint, ImprovedTerseObjectUpdatePacket.ObjectDataBlock> dbe in m_terseUpdates)
|
foreach (KeyValuePair<uint, ImprovedTerseObjectUpdatePacket.ObjectDataBlock> dbe in m_terseUpdates)
|
||||||
|
|
Loading…
Reference in New Issue