diff options
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/Scene.cs')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/Scene.cs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/Scenes/Scene.cs b/OpenSim/Region/Environment/Scenes/Scene.cs index 8f4c332..4a57c5d 100644 --- a/OpenSim/Region/Environment/Scenes/Scene.cs +++ b/OpenSim/Region/Environment/Scenes/Scene.cs | |||
@@ -219,6 +219,8 @@ namespace OpenSim.Region.Environment.Scenes | |||
219 | set { m_innerScene.RestorePresences = value; } | 219 | set { m_innerScene.RestorePresences = value; } |
220 | } | 220 | } |
221 | 221 | ||
222 | public int objectCapacity = 45000; | ||
223 | |||
222 | #endregion | 224 | #endregion |
223 | 225 | ||
224 | #region Constructors | 226 | #region Constructors |
@@ -299,6 +301,9 @@ namespace OpenSim.Region.Environment.Scenes | |||
299 | 301 | ||
300 | m_statsReporter = new SimStatsReporter(regInfo); | 302 | m_statsReporter = new SimStatsReporter(regInfo); |
301 | m_statsReporter.OnSendStatsResult += SendSimStatsPackets; | 303 | m_statsReporter.OnSendStatsResult += SendSimStatsPackets; |
304 | |||
305 | m_statsReporter.SetObjectCapacity(objectCapacity); | ||
306 | |||
302 | string OSString = ""; | 307 | string OSString = ""; |
303 | 308 | ||
304 | if (System.Environment.OSVersion.Platform != PlatformID.Unix) | 309 | if (System.Environment.OSVersion.Platform != PlatformID.Unix) |
@@ -2016,6 +2021,15 @@ namespace OpenSim.Region.Environment.Scenes | |||
2016 | } | 2021 | } |
2017 | } | 2022 | } |
2018 | 2023 | ||
2024 | public void SetObjectCapacity(int objects) | ||
2025 | { | ||
2026 | if (m_statsReporter != null) | ||
2027 | { | ||
2028 | m_statsReporter.SetObjectCapacity(objects); | ||
2029 | } | ||
2030 | objectCapacity = objects; | ||
2031 | } | ||
2032 | |||
2019 | #endregion | 2033 | #endregion |
2020 | 2034 | ||
2021 | #region Other Methods | 2035 | #region Other Methods |