diff options
author | UbitUmarov | 2016-12-30 01:52:02 +0000 |
---|---|---|
committer | UbitUmarov | 2016-12-30 01:52:02 +0000 |
commit | 2a01173715e8adc9ea2f263221aed1302ed7675f (patch) | |
tree | 116300a1eebe09421da112635be883196f2b41f0 /OpenSim/Region/Framework | |
parent | Merge branch 'master' into httptests (diff) | |
parent | Serving robots.txt from bin Idea of solution for http://opensimulator.org/man... (diff) | |
download | opensim-SC-2a01173715e8adc9ea2f263221aed1302ed7675f.zip opensim-SC-2a01173715e8adc9ea2f263221aed1302ed7675f.tar.gz opensim-SC-2a01173715e8adc9ea2f263221aed1302ed7675f.tar.bz2 opensim-SC-2a01173715e8adc9ea2f263221aed1302ed7675f.tar.xz |
Merge branch 'master' into httptests
Diffstat (limited to 'OpenSim/Region/Framework')
-rwxr-xr-x | OpenSim/Region/Framework/Scenes/Scene.cs | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs index e44f11a..d7a4ca4 100755 --- a/OpenSim/Region/Framework/Scenes/Scene.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.cs | |||
@@ -1582,6 +1582,8 @@ namespace OpenSim.Region.Framework.Scenes | |||
1582 | } | 1582 | } |
1583 | 1583 | ||
1584 | GC.Collect(); | 1584 | GC.Collect(); |
1585 | GC.WaitForPendingFinalizers(); | ||
1586 | GC.Collect(); | ||
1585 | // tell physics to finish building actor | 1587 | // tell physics to finish building actor |
1586 | m_sceneGraph.ProcessPhysicsPreSimulation(); | 1588 | m_sceneGraph.ProcessPhysicsPreSimulation(); |
1587 | 1589 | ||
@@ -1856,13 +1858,9 @@ namespace OpenSim.Region.Framework.Scenes | |||
1856 | 1858 | ||
1857 | if (!LoginsEnabled && Frame == 20) | 1859 | if (!LoginsEnabled && Frame == 20) |
1858 | { | 1860 | { |
1859 | // m_log.DebugFormat("{0} {1} {2}", LoginsDisabled, m_sceneGraph.GetActiveScriptsCount(), LoginLock); | ||
1860 | |||
1861 | // In 99.9% of cases it is a bad idea to manually force garbage collection. However, | ||
1862 | // this is a rare case where we know we have just went through a long cycle of heap | ||
1863 | // allocations, and there is no more work to be done until someone logs in | ||
1864 | GC.Collect(); | 1861 | GC.Collect(); |
1865 | 1862 | GC.WaitForPendingFinalizers(); | |
1863 | GC.Collect(); | ||
1866 | if (!LoginLock) | 1864 | if (!LoginLock) |
1867 | { | 1865 | { |
1868 | if (!StartDisabled) | 1866 | if (!StartDisabled) |
@@ -1887,6 +1885,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
1887 | // LoginLock can currently only be set by a region module implementation. | 1885 | // LoginLock can currently only be set by a region module implementation. |
1888 | // If somehow this hasn't been done then the quickest way to bugfix is to see the | 1886 | // If somehow this hasn't been done then the quickest way to bugfix is to see the |
1889 | // NullReferenceException | 1887 | // NullReferenceException |
1888 | |||
1890 | IRegionReadyModule rrm = RequestModuleInterface<IRegionReadyModule>(); | 1889 | IRegionReadyModule rrm = RequestModuleInterface<IRegionReadyModule>(); |
1891 | rrm.TriggerRegionReady(this); | 1890 | rrm.TriggerRegionReady(this); |
1892 | } | 1891 | } |