diff options
author | Teravus Ovares | 2008-02-20 01:17:21 +0000 |
---|---|---|
committer | Teravus Ovares | 2008-02-20 01:17:21 +0000 |
commit | b77c48e75e5027eb8ae421e9d3105eae71cd4f52 (patch) | |
tree | 1cb66947b0628a1909a5350811609435ed83e4a4 /OpenSim/Region/Environment/Scenes/ScenePresence.cs | |
parent | * Made a quickupdate method to run through only entities that have scheduled ... (diff) | |
download | opensim-SC_OLD-b77c48e75e5027eb8ae421e9d3105eae71cd4f52.zip opensim-SC_OLD-b77c48e75e5027eb8ae421e9d3105eae71cd4f52.tar.gz opensim-SC_OLD-b77c48e75e5027eb8ae421e9d3105eae71cd4f52.tar.bz2 opensim-SC_OLD-b77c48e75e5027eb8ae421e9d3105eae71cd4f52.tar.xz |
* Cleanup of some memory consuming items on ScenePresence.Close().
* Untangled a tangly shutdown loop for the ScenePresence.
* Suggested to the Garbage Collector that this may be a good time to >.>, <.< *gasp* collect the memory.
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/ScenePresence.cs')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/ScenePresence.cs | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/Scenes/ScenePresence.cs b/OpenSim/Region/Environment/Scenes/ScenePresence.cs index 1767623..4f68817 100644 --- a/OpenSim/Region/Environment/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Environment/Scenes/ScenePresence.cs | |||
@@ -617,6 +617,11 @@ namespace OpenSim.Region.Environment.Scenes | |||
617 | } | 617 | } |
618 | } | 618 | } |
619 | 619 | ||
620 | public List<ulong> GetKnownRegionList() | ||
621 | { | ||
622 | return m_knownChildRegions; | ||
623 | } | ||
624 | |||
620 | #endregion | 625 | #endregion |
621 | 626 | ||
622 | #region Event Handlers | 627 | #region Event Handlers |
@@ -1767,7 +1772,25 @@ namespace OpenSim.Region.Environment.Scenes | |||
1767 | 1772 | ||
1768 | internal void Close() | 1773 | internal void Close() |
1769 | { | 1774 | { |
1775 | lock (m_knownPrimUUID) | ||
1776 | { | ||
1777 | m_knownPrimUUID.Clear(); | ||
1778 | } | ||
1779 | lock (m_knownChildRegions) | ||
1780 | { | ||
1781 | m_knownChildRegions.Clear(); | ||
1782 | } | ||
1783 | lock (m_updateTimes) | ||
1784 | { | ||
1785 | m_updateTimes.Clear(); | ||
1786 | } | ||
1787 | lock (m_partsUpdateQueue) | ||
1788 | { | ||
1789 | m_partsUpdateQueue.Clear(); | ||
1790 | } | ||
1791 | |||
1770 | RemoveFromPhysicalScene(); | 1792 | RemoveFromPhysicalScene(); |
1793 | GC.Collect(); | ||
1771 | } | 1794 | } |
1772 | } | 1795 | } |
1773 | } | 1796 | } |