aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ClientStack
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/ClientStack')
-rw-r--r--OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs98
1 files changed, 49 insertions, 49 deletions
diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs
index 393cd03..0f1a1ca 100644
--- a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs
+++ b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs
@@ -3696,56 +3696,56 @@ namespace OpenSim.Region.ClientStack.LindenUDP
3696 3696
3697 #endregion Block Construction 3697 #endregion Block Construction
3698 } 3698 }
3699 }
3700
3701 #region Packet Sending
3702
3703 const float TIME_DILATION = 1.0f;
3704 ushort timeDilation = Utils.FloatToUInt16(TIME_DILATION, 0.0f, 1.0f);
3705
3706 if (objectUpdateBlocks.IsValueCreated)
3707 {
3708 List<ObjectUpdatePacket.ObjectDataBlock> blocks = objectUpdateBlocks.Value;
3709
3710 ObjectUpdatePacket packet = (ObjectUpdatePacket)PacketPool.Instance.GetPacket(PacketType.ObjectUpdate);
3711 packet.RegionData.RegionHandle = m_scene.RegionInfo.RegionHandle;
3712 packet.RegionData.TimeDilation = timeDilation;
3713 packet.ObjectData = new ObjectUpdatePacket.ObjectDataBlock[blocks.Count];
3714
3715 for (int i = 0; i < blocks.Count; i++)
3716 packet.ObjectData[i] = blocks[i];
3717
3718 OutPacket(packet, ThrottleOutPacketType.Task, true);
3719 }
3720
3721 if (compressedUpdateBlocks.IsValueCreated)
3722 {
3723 List<ObjectUpdateCompressedPacket.ObjectDataBlock> blocks = compressedUpdateBlocks.Value;
3724
3725 ObjectUpdateCompressedPacket packet = (ObjectUpdateCompressedPacket)PacketPool.Instance.GetPacket(PacketType.ObjectUpdateCompressed);
3726 packet.RegionData.RegionHandle = m_scene.RegionInfo.RegionHandle;
3727 packet.RegionData.TimeDilation = timeDilation;
3728 packet.ObjectData = new ObjectUpdateCompressedPacket.ObjectDataBlock[blocks.Count];
3729
3730 for (int i = 0; i < blocks.Count; i++)
3731 packet.ObjectData[i] = blocks[i];
3732
3733 OutPacket(packet, ThrottleOutPacketType.Task, true);
3734 }
3735
3736 if (terseUpdateBlocks.IsValueCreated)
3737 {
3738 List<ImprovedTerseObjectUpdatePacket.ObjectDataBlock> blocks = terseUpdateBlocks.Value;
3739
3740 ImprovedTerseObjectUpdatePacket packet = new ImprovedTerseObjectUpdatePacket();
3741 packet.RegionData.RegionHandle = m_scene.RegionInfo.RegionHandle;
3742 packet.RegionData.TimeDilation = timeDilation;
3743 packet.ObjectData = new ImprovedTerseObjectUpdatePacket.ObjectDataBlock[blocks.Count];
3744
3745 for (int i = 0; i < blocks.Count; i++)
3746 packet.ObjectData[i] = blocks[i];
3747 3699
3748 OutPacket(packet, ThrottleOutPacketType.Task, true); 3700 #region Packet Sending
3701
3702 const float TIME_DILATION = 1.0f;
3703 ushort timeDilation = Utils.FloatToUInt16(TIME_DILATION, 0.0f, 1.0f);
3704
3705 if (objectUpdateBlocks.IsValueCreated)
3706 {
3707 List<ObjectUpdatePacket.ObjectDataBlock> blocks = objectUpdateBlocks.Value;
3708
3709 ObjectUpdatePacket packet = (ObjectUpdatePacket)PacketPool.Instance.GetPacket(PacketType.ObjectUpdate);
3710 packet.RegionData.RegionHandle = m_scene.RegionInfo.RegionHandle;
3711 packet.RegionData.TimeDilation = timeDilation;
3712 packet.ObjectData = new ObjectUpdatePacket.ObjectDataBlock[blocks.Count];
3713
3714 for (int i = 0; i < blocks.Count; i++)
3715 packet.ObjectData[i] = blocks[i];
3716
3717 OutPacket(packet, ThrottleOutPacketType.Task, true);
3718 }
3719
3720 if (compressedUpdateBlocks.IsValueCreated)
3721 {
3722 List<ObjectUpdateCompressedPacket.ObjectDataBlock> blocks = compressedUpdateBlocks.Value;
3723
3724 ObjectUpdateCompressedPacket packet = (ObjectUpdateCompressedPacket)PacketPool.Instance.GetPacket(PacketType.ObjectUpdateCompressed);
3725 packet.RegionData.RegionHandle = m_scene.RegionInfo.RegionHandle;
3726 packet.RegionData.TimeDilation = timeDilation;
3727 packet.ObjectData = new ObjectUpdateCompressedPacket.ObjectDataBlock[blocks.Count];
3728
3729 for (int i = 0; i < blocks.Count; i++)
3730 packet.ObjectData[i] = blocks[i];
3731
3732 OutPacket(packet, ThrottleOutPacketType.Task, true);
3733 }
3734
3735 if (terseUpdateBlocks.IsValueCreated)
3736 {
3737 List<ImprovedTerseObjectUpdatePacket.ObjectDataBlock> blocks = terseUpdateBlocks.Value;
3738
3739 ImprovedTerseObjectUpdatePacket packet = new ImprovedTerseObjectUpdatePacket();
3740 packet.RegionData.RegionHandle = m_scene.RegionInfo.RegionHandle;
3741 packet.RegionData.TimeDilation = timeDilation;
3742 packet.ObjectData = new ImprovedTerseObjectUpdatePacket.ObjectDataBlock[blocks.Count];
3743
3744 for (int i = 0; i < blocks.Count; i++)
3745 packet.ObjectData[i] = blocks[i];
3746
3747 OutPacket(packet, ThrottleOutPacketType.Task, true);
3748 }
3749 } 3749 }
3750 3750
3751 #endregion Packet Sending 3751 #endregion Packet Sending