diff options
author | UbitUmarov | 2015-12-10 14:00:43 +0000 |
---|---|---|
committer | UbitUmarov | 2015-12-10 14:00:43 +0000 |
commit | 62009ba9c02590f689d202da1753c91498f5b51d (patch) | |
tree | acee356affc2af61db3eb029587a3128cba7929f /OpenSim/Region/Framework/Scenes/Scene.cs | |
parent | dont try to process packets for deleted clients (diff) | |
download | opensim-SC-62009ba9c02590f689d202da1753c91498f5b51d.zip opensim-SC-62009ba9c02590f689d202da1753c91498f5b51d.tar.gz opensim-SC-62009ba9c02590f689d202da1753c91498f5b51d.tar.bz2 opensim-SC-62009ba9c02590f689d202da1753c91498f5b51d.tar.xz |
remove some SOG references on delete to help GC
Diffstat (limited to '')
-rwxr-xr-x | OpenSim/Region/Framework/Scenes/Scene.cs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs index 8bdf39a..9061244 100755 --- a/OpenSim/Region/Framework/Scenes/Scene.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.cs | |||
@@ -1577,6 +1577,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
1577 | m_heartbeatThread = null; | 1577 | m_heartbeatThread = null; |
1578 | } | 1578 | } |
1579 | 1579 | ||
1580 | GC.Collect(); | ||
1580 | // tell physics to finish building actor | 1581 | // tell physics to finish building actor |
1581 | m_sceneGraph.ProcessPhysicsPreSimulation(); | 1582 | m_sceneGraph.ProcessPhysicsPreSimulation(); |
1582 | 1583 | ||
@@ -2798,7 +2799,11 @@ namespace OpenSim.Region.Framework.Scenes | |||
2798 | if (!silent) | 2799 | if (!silent) |
2799 | SendKillObject(new List<uint>() { group.LocalId }); | 2800 | SendKillObject(new List<uint>() { group.LocalId }); |
2800 | 2801 | ||
2801 | // m_log.DebugFormat("[SCENE]: Exit DeleteSceneObject() for {0} {1}", group.Name, group.UUID); | 2802 | // use this to mean also full delete |
2803 | if (removeScripts) | ||
2804 | group.Clear(); | ||
2805 | partList = null; | ||
2806 | // m_log.DebugFormat("[SCENE]: Exit DeleteSceneObject() for {0} {1}", group.Name, group.UUID); | ||
2802 | } | 2807 | } |
2803 | 2808 | ||
2804 | /// <summary> | 2809 | /// <summary> |