diff options
Diffstat (limited to 'OpenSim/Region/ClientStack')
-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 | { |