slow down culling kills even more

LSLKeyTest
UbitUmarov 2016-07-13 16:15:35 +01:00
parent acebfeb5c9
commit 33655e40df
1 changed files with 5 additions and 1 deletions

View File

@ -4404,6 +4404,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
HashSet<SceneObjectGroup> NewGroupsInView = new HashSet<SceneObjectGroup>(); HashSet<SceneObjectGroup> NewGroupsInView = new HashSet<SceneObjectGroup>();
HashSet<SceneObjectGroup> GroupsNeedFullUpdate = new HashSet<SceneObjectGroup>(); HashSet<SceneObjectGroup> GroupsNeedFullUpdate = new HashSet<SceneObjectGroup>();
List<uint> kills = new List<uint>(); List<uint> kills = new List<uint>();
int killedParst = 0;
EntityBase[] entities = m_scene.Entities.GetEntities(); EntityBase[] entities = m_scene.Entities.GetEntities();
foreach (EntityBase e in entities) foreach (EntityBase e in entities)
@ -4434,10 +4435,13 @@ namespace OpenSim.Region.ClientStack.LindenUDP
if(inview) if(inview)
{ {
kills.Add(grp.LocalId); kills.Add(grp.LocalId);
if (kills.Count > 100) killedParst = grp.PrimCount;
if (killedParst > 200 )
{ {
SendKillObject(kills); SendKillObject(kills);
kills.Clear(); kills.Clear();
killedParst = 0;
Thread.Sleep(50); Thread.Sleep(50);
if(mysp != null && !mysp.IsDeleted) if(mysp != null && !mysp.IsDeleted)
{ {