diff options
Diffstat (limited to 'OpenSim/Framework')
-rw-r--r-- | OpenSim/Framework/Constants.cs | 1 | ||||
-rw-r--r-- | OpenSim/Framework/RegionInfo.cs | 18 |
2 files changed, 19 insertions, 0 deletions
diff --git a/OpenSim/Framework/Constants.cs b/OpenSim/Framework/Constants.cs index 1b1aaf2..a2eb5ee 100644 --- a/OpenSim/Framework/Constants.cs +++ b/OpenSim/Framework/Constants.cs | |||
@@ -31,6 +31,7 @@ namespace OpenSim.Framework | |||
31 | public class Constants | 31 | public class Constants |
32 | { | 32 | { |
33 | public const uint RegionSize = 256; | 33 | public const uint RegionSize = 256; |
34 | public const uint RegionHeight = 4096; | ||
34 | public const byte TerrainPatchSize = 16; | 35 | public const byte TerrainPatchSize = 16; |
35 | public const string DefaultTexture = "89556747-24cb-43ed-920b-47caed15465f"; | 36 | public const string DefaultTexture = "89556747-24cb-43ed-920b-47caed15465f"; |
36 | 37 | ||
diff --git a/OpenSim/Framework/RegionInfo.cs b/OpenSim/Framework/RegionInfo.cs index fcf1896..da87b05 100644 --- a/OpenSim/Framework/RegionInfo.cs +++ b/OpenSim/Framework/RegionInfo.cs | |||
@@ -128,6 +128,7 @@ namespace OpenSim.Framework | |||
128 | private int m_physPrimMax = 0; | 128 | private int m_physPrimMax = 0; |
129 | private bool m_clampPrimSize = false; | 129 | private bool m_clampPrimSize = false; |
130 | private int m_objectCapacity = 0; | 130 | private int m_objectCapacity = 0; |
131 | private int m_linksetCapacity = 0; | ||
131 | private int m_agentCapacity = 0; | 132 | private int m_agentCapacity = 0; |
132 | private string m_regionType = String.Empty; | 133 | private string m_regionType = String.Empty; |
133 | private RegionLightShareData m_windlight = new RegionLightShareData(); | 134 | private RegionLightShareData m_windlight = new RegionLightShareData(); |
@@ -319,6 +320,11 @@ namespace OpenSim.Framework | |||
319 | get { return m_objectCapacity; } | 320 | get { return m_objectCapacity; } |
320 | } | 321 | } |
321 | 322 | ||
323 | public int LinksetCapacity | ||
324 | { | ||
325 | get { return m_linksetCapacity; } | ||
326 | } | ||
327 | |||
322 | public int AgentCapacity | 328 | public int AgentCapacity |
323 | { | 329 | { |
324 | get { return m_agentCapacity; } | 330 | get { return m_agentCapacity; } |
@@ -656,6 +662,9 @@ namespace OpenSim.Framework | |||
656 | 662 | ||
657 | m_objectCapacity = config.GetInt("MaxPrims", 15000); | 663 | m_objectCapacity = config.GetInt("MaxPrims", 15000); |
658 | allKeys.Remove("MaxPrims"); | 664 | allKeys.Remove("MaxPrims"); |
665 | |||
666 | m_linksetCapacity = config.GetInt("LinksetPrims", 0); | ||
667 | allKeys.Remove("LinksetPrims"); | ||
659 | 668 | ||
660 | #endregion | 669 | #endregion |
661 | 670 | ||
@@ -714,6 +723,9 @@ namespace OpenSim.Framework | |||
714 | if (m_objectCapacity != 0) | 723 | if (m_objectCapacity != 0) |
715 | config.Set("MaxPrims", m_objectCapacity); | 724 | config.Set("MaxPrims", m_objectCapacity); |
716 | 725 | ||
726 | if (m_linksetCapacity != 0) | ||
727 | config.Set("LinksetPrims", m_linksetCapacity); | ||
728 | |||
717 | if (m_agentCapacity != 0) | 729 | if (m_agentCapacity != 0) |
718 | config.Set("MaxAgents", m_agentCapacity); | 730 | config.Set("MaxAgents", m_agentCapacity); |
719 | 731 | ||
@@ -809,6 +821,9 @@ namespace OpenSim.Framework | |||
809 | configMember.addConfigurationOption("object_capacity", ConfigurationOption.ConfigurationTypes.TYPE_INT32, | 821 | configMember.addConfigurationOption("object_capacity", ConfigurationOption.ConfigurationTypes.TYPE_INT32, |
810 | "Max objects this sim will hold", m_objectCapacity.ToString(), true); | 822 | "Max objects this sim will hold", m_objectCapacity.ToString(), true); |
811 | 823 | ||
824 | configMember.addConfigurationOption("linkset_capacity", ConfigurationOption.ConfigurationTypes.TYPE_INT32, | ||
825 | "Max prims an object will hold", m_linksetCapacity.ToString(), true); | ||
826 | |||
812 | configMember.addConfigurationOption("agent_capacity", ConfigurationOption.ConfigurationTypes.TYPE_INT32, | 827 | configMember.addConfigurationOption("agent_capacity", ConfigurationOption.ConfigurationTypes.TYPE_INT32, |
813 | "Max avatars this sim will hold", m_agentCapacity.ToString(), true); | 828 | "Max avatars this sim will hold", m_agentCapacity.ToString(), true); |
814 | 829 | ||
@@ -930,6 +945,9 @@ namespace OpenSim.Framework | |||
930 | case "object_capacity": | 945 | case "object_capacity": |
931 | m_objectCapacity = (int)configuration_result; | 946 | m_objectCapacity = (int)configuration_result; |
932 | break; | 947 | break; |
948 | case "linkset_capacity": | ||
949 | m_linksetCapacity = (int)configuration_result; | ||
950 | break; | ||
933 | case "agent_capacity": | 951 | case "agent_capacity": |
934 | m_agentCapacity = (int)configuration_result; | 952 | m_agentCapacity = (int)configuration_result; |
935 | break; | 953 | break; |