diff options
author | UbitUmarov | 2016-07-13 16:15:35 +0100 |
---|---|---|
committer | UbitUmarov | 2016-07-13 16:15:35 +0100 |
commit | 33655e40df658708502ce28f39773a793210c8b2 (patch) | |
tree | 8c4fdaab129d4cb305df074a3051cf63c13b45d7 /OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs | |
parent | don't overlap Select and Deselect, fix deselect prims account (diff) | |
download | opensim-SC-33655e40df658708502ce28f39773a793210c8b2.zip opensim-SC-33655e40df658708502ce28f39773a793210c8b2.tar.gz opensim-SC-33655e40df658708502ce28f39773a793210c8b2.tar.bz2 opensim-SC-33655e40df658708502ce28f39773a793210c8b2.tar.xz |
slow down culling kills even more
Diffstat (limited to 'OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs')
-rw-r--r-- | OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs index bd6cafc..a5c7bcf 100644 --- a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs +++ b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs | |||
@@ -4404,6 +4404,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
4404 | HashSet<SceneObjectGroup> NewGroupsInView = new HashSet<SceneObjectGroup>(); | 4404 | HashSet<SceneObjectGroup> NewGroupsInView = new HashSet<SceneObjectGroup>(); |
4405 | HashSet<SceneObjectGroup> GroupsNeedFullUpdate = new HashSet<SceneObjectGroup>(); | 4405 | HashSet<SceneObjectGroup> GroupsNeedFullUpdate = new HashSet<SceneObjectGroup>(); |
4406 | List<uint> kills = new List<uint>(); | 4406 | List<uint> kills = new List<uint>(); |
4407 | int killedParst = 0; | ||
4407 | 4408 | ||
4408 | EntityBase[] entities = m_scene.Entities.GetEntities(); | 4409 | EntityBase[] entities = m_scene.Entities.GetEntities(); |
4409 | foreach (EntityBase e in entities) | 4410 | foreach (EntityBase e in entities) |
@@ -4434,10 +4435,13 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
4434 | if(inview) | 4435 | if(inview) |
4435 | { | 4436 | { |
4436 | kills.Add(grp.LocalId); | 4437 | kills.Add(grp.LocalId); |
4437 | if (kills.Count > 100) | 4438 | killedParst = grp.PrimCount; |
4439 | |||
4440 | if (killedParst > 200 ) | ||
4438 | { | 4441 | { |
4439 | SendKillObject(kills); | 4442 | SendKillObject(kills); |
4440 | kills.Clear(); | 4443 | kills.Clear(); |
4444 | killedParst = 0; | ||
4441 | Thread.Sleep(50); | 4445 | Thread.Sleep(50); |
4442 | if(mysp != null && !mysp.IsDeleted) | 4446 | if(mysp != null && !mysp.IsDeleted) |
4443 | { | 4447 | { |