diff options
author | UbitUmarov | 2018-02-03 20:37:36 +0000 |
---|---|---|
committer | UbitUmarov | 2018-02-03 20:37:36 +0000 |
commit | 42d07e283f5310c043eeadf58a5797de2c48f373 (patch) | |
tree | d0125913180909268dbf65e4f03b461a30807586 /OpenSim/Region | |
parent | just DIE damm thread (recent monos issue) (diff) | |
download | opensim-SC-42d07e283f5310c043eeadf58a5797de2c48f373.zip opensim-SC-42d07e283f5310c043eeadf58a5797de2c48f373.tar.gz opensim-SC-42d07e283f5310c043eeadf58a5797de2c48f373.tar.bz2 opensim-SC-42d07e283f5310c043eeadf58a5797de2c48f373.tar.xz |
pesty warnings
Diffstat (limited to 'OpenSim/Region')
-rw-r--r-- | OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs | 37 | ||||
-rw-r--r-- | OpenSim/Region/ScriptEngine/XMREngine/XMREngine.cs | 2 |
2 files changed, 24 insertions, 15 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs index ee7df5a..7229522 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 |
@@ -339,12 +344,13 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
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,8 +626,8 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
617 | ImageManager.Close(); | 626 | ImageManager.Close(); |
618 | ImageManager = null; | 627 | ImageManager = null; |
619 | 628 | ||
620 | m_entityUpdates = new PriorityQueue(1); | 629 | m_entityUpdates.Close(); |
621 | m_entityProps = new PriorityQueue(1); | 630 | m_entityProps.Close(); |
622 | m_killRecord.Clear(); | 631 | m_killRecord.Clear(); |
623 | GroupsInView.Clear(); | 632 | GroupsInView.Clear(); |
624 | 633 | ||
diff --git a/OpenSim/Region/ScriptEngine/XMREngine/XMREngine.cs b/OpenSim/Region/ScriptEngine/XMREngine/XMREngine.cs index 51c7618..6b0410a 100644 --- a/OpenSim/Region/ScriptEngine/XMREngine/XMREngine.cs +++ b/OpenSim/Region/ScriptEngine/XMREngine/XMREngine.cs | |||
@@ -97,7 +97,7 @@ namespace OpenSim.Region.ScriptEngine.XMREngine | |||
97 | private int m_HeapSize; | 97 | private int m_HeapSize; |
98 | private XMRScriptThread[] m_ScriptThreads; | 98 | private XMRScriptThread[] m_ScriptThreads; |
99 | private Thread m_SleepThread = null; | 99 | private Thread m_SleepThread = null; |
100 | private Thread m_SliceThread = null; | 100 | // private Thread m_SliceThread = null; |
101 | private bool m_Exiting = false; | 101 | private bool m_Exiting = false; |
102 | 102 | ||
103 | private int m_MaintenanceInterval = 10; | 103 | private int m_MaintenanceInterval = 10; |