aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs')
-rw-r--r--OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs41
1 files changed, 26 insertions, 15 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs
index 2ff6ced..cd687aa 100644
--- a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs
+++ b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs
@@ -99,8 +99,6 @@ namespace OpenSim.Region.ClientStack.LindenUDP
99 public event AgentRequestSit OnAgentRequestSit; 99 public event AgentRequestSit OnAgentRequestSit;
100 public event AgentSit OnAgentSit; 100 public event AgentSit OnAgentSit;
101 public event AvatarPickerRequest OnAvatarPickerRequest; 101 public event AvatarPickerRequest OnAvatarPickerRequest;
102 public event StartAnim OnStartAnim;
103 public event StopAnim OnStopAnim;
104 public event ChangeAnim OnChangeAnim; 102 public event ChangeAnim OnChangeAnim;
105 public event Action<IClientAPI> OnRequestAvatarsData; 103 public event Action<IClientAPI> OnRequestAvatarsData;
106 public event LinkObjects OnLinkObjects; 104 public event LinkObjects OnLinkObjects;
@@ -131,12 +129,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
131 public event UpdatePrimTexture OnUpdatePrimTexture; 129 public event UpdatePrimTexture OnUpdatePrimTexture;
132 public event ClientChangeObject onClientChangeObject; 130 public event ClientChangeObject onClientChangeObject;
133 public event UpdateVector OnUpdatePrimGroupPosition; 131 public event UpdateVector OnUpdatePrimGroupPosition;
134 public event UpdateVector OnUpdatePrimSinglePosition;
135 public event UpdatePrimRotation OnUpdatePrimGroupRotation; 132 public event UpdatePrimRotation OnUpdatePrimGroupRotation;
136 public event UpdatePrimSingleRotation OnUpdatePrimSingleRotation;
137 public event UpdatePrimSingleRotationPosition OnUpdatePrimSingleRotationPosition;
138 public event UpdatePrimGroupRotation OnUpdatePrimGroupMouseRotation;
139 public event UpdateVector OnUpdatePrimScale;
140 public event UpdateVector OnUpdatePrimGroupScale; 133 public event UpdateVector OnUpdatePrimGroupScale;
141 public event RequestMapBlocks OnRequestMapBlocks; 134 public event RequestMapBlocks OnRequestMapBlocks;
142 public event RequestMapName OnMapNameRequest; 135 public event RequestMapName OnMapNameRequest;
@@ -292,7 +285,9 @@ namespace OpenSim.Region.ClientStack.LindenUDP
292 public event GodUpdateRegionInfoUpdate OnGodUpdateRegionInfoUpdate; 285 public event GodUpdateRegionInfoUpdate OnGodUpdateRegionInfoUpdate;
293 public event GenericCall2 OnUpdateThrottles; 286 public event GenericCall2 OnUpdateThrottles;
294 287
288
295#pragma warning disable 0067 289#pragma warning disable 0067
290 // still unused
296 public event GenericMessage OnGenericMessage; 291 public event GenericMessage OnGenericMessage;
297 public event TextureRequest OnRequestTexture; 292 public event TextureRequest OnRequestTexture;
298 public event StatusChange OnChildAgentStatus; 293 public event StatusChange OnChildAgentStatus;
@@ -304,6 +299,16 @@ namespace OpenSim.Region.ClientStack.LindenUDP
304 public event SetEstateTerrainBaseTexture OnSetEstateTerrainBaseTexture; 299 public event SetEstateTerrainBaseTexture OnSetEstateTerrainBaseTexture;
305 public event TerrainUnacked OnUnackedTerrain; 300 public event TerrainUnacked OnUnackedTerrain;
306 public event CachedTextureRequest OnCachedTextureRequest; 301 public event CachedTextureRequest OnCachedTextureRequest;
302
303 public event UpdateVector OnUpdatePrimSinglePosition;
304 public event StartAnim OnStartAnim;
305 public event StopAnim OnStopAnim;
306 public event UpdatePrimSingleRotation OnUpdatePrimSingleRotation;
307 public event UpdatePrimSingleRotationPosition OnUpdatePrimSingleRotationPosition;
308 public event UpdatePrimGroupRotation OnUpdatePrimGroupMouseRotation;
309 public event UpdateVector OnUpdatePrimScale;
310
311
307#pragma warning restore 0067 312#pragma warning restore 0067
308 313
309 #endregion Events 314 #endregion Events
@@ -335,16 +340,17 @@ namespace OpenSim.Region.ClientStack.LindenUDP
335 private readonly byte[] m_channelVersion = Utils.EmptyBytes; 340 private readonly byte[] m_channelVersion = Utils.EmptyBytes;
336 private readonly IGroupsModule m_GroupsModule; 341 private readonly IGroupsModule m_GroupsModule;
337 342
338 private int m_cachedTextureSerial; 343// private int m_cachedTextureSerial;
339 private PriorityQueue m_entityUpdates; 344 private PriorityQueue m_entityUpdates;
340 private PriorityQueue m_entityProps; 345 private PriorityQueue m_entityProps;
341 private Prioritizer m_prioritizer; 346 private Prioritizer m_prioritizer;
342 private bool m_disableFacelights = false; 347 private bool m_disableFacelights;
343 348
344 // needs optimazation 349 // needs optimazation
345 private HashSet<SceneObjectGroup> GroupsInView = new HashSet<SceneObjectGroup>(); 350 private HashSet<SceneObjectGroup> GroupsInView = new HashSet<SceneObjectGroup>();
346 351#pragma warning disable 0414
347 private bool m_VelocityInterpolate = false; 352 private bool m_VelocityInterpolate;
353#pragma warning restore 0414
348 private const uint MaxTransferBytesPerPacket = 600; 354 private const uint MaxTransferBytesPerPacket = 600;
349 355
350 /// <value> 356 /// <value>
@@ -503,8 +509,11 @@ namespace OpenSim.Region.ClientStack.LindenUDP
503 RegisterInterface<IClientChat>(this); 509 RegisterInterface<IClientChat>(this);
504 510
505 m_scene = scene; 511 m_scene = scene;
506 m_entityUpdates = new PriorityQueue(m_scene.Entities.Count); 512 int pcap = 512;
507 m_entityProps = new PriorityQueue(m_scene.Entities.Count); 513 if(pcap > m_scene.Entities.Count)
514 pcap = m_scene.Entities.Count;
515 m_entityUpdates = new PriorityQueue(pcap);
516 m_entityProps = new PriorityQueue(pcap);
508 m_killRecord = new List<uint>(); 517 m_killRecord = new List<uint>();
509// m_attachmentsSent = new HashSet<uint>(); 518// m_attachmentsSent = new HashSet<uint>();
510 519
@@ -617,6 +626,8 @@ namespace OpenSim.Region.ClientStack.LindenUDP
617 ImageManager.Close(); 626 ImageManager.Close();
618 ImageManager = null; 627 ImageManager = null;
619 628
629// m_entityUpdates.Close();
630// m_entityProps.Close();
620 m_entityUpdates = new PriorityQueue(1); 631 m_entityUpdates = new PriorityQueue(1);
621 m_entityProps = new PriorityQueue(1); 632 m_entityProps = new PriorityQueue(1);
622 m_killRecord.Clear(); 633 m_killRecord.Clear();
@@ -11039,9 +11050,9 @@ namespace OpenSim.Region.ClientStack.LindenUDP
11039 if(muteListRequest.MuteData.MuteCRC == 0) 11050 if(muteListRequest.MuteData.MuteCRC == 0)
11040 SendEmpytMuteList(); 11051 SendEmpytMuteList();
11041 else 11052 else
11042 SendUseCachedMuteList(); 11053 SendUseCachedMuteList();
11043 } 11054 }
11044 return true; 11055 return true;
11045 } 11056 }
11046 11057
11047 private bool HandleUpdateMuteListEntry(IClientAPI client, Packet Packet) 11058 private bool HandleUpdateMuteListEntry(IClientAPI client, Packet Packet)