Rebase fixups
This commit is contained in:
parent
62e3bcdc3b
commit
b711764991
90 changed files with 3448 additions and 10434 deletions
|
@ -487,10 +487,10 @@ index 0000000000000000000000000000000000000000..d9502ba028a96f9cc846f9ed428bd806
|
|||
+}
|
||||
diff --git a/src/main/java/io/papermc/paper/configuration/GlobalConfiguration.java b/src/main/java/io/papermc/paper/configuration/GlobalConfiguration.java
|
||||
new file mode 100644
|
||||
index 0000000000000000000000000000000000000000..b92bfd89e32becde2e7630c6116c16f8a4f6614a
|
||||
index 0000000000000000000000000000000000000000..7e88b1fc1ff700a7771b38f139f4472eaeaf8714
|
||||
--- /dev/null
|
||||
+++ b/src/main/java/io/papermc/paper/configuration/GlobalConfiguration.java
|
||||
@@ -0,0 +1,331 @@
|
||||
@@ -0,0 +1,355 @@
|
||||
+package io.papermc.paper.configuration;
|
||||
+
|
||||
+import co.aikar.timings.MinecraftTimings;
|
||||
|
@ -523,6 +523,45 @@ index 0000000000000000000000000000000000000000..b92bfd89e32becde2e7630c6116c16f8
|
|||
+ public static GlobalConfiguration get() {
|
||||
+ return instance;
|
||||
+ }
|
||||
+
|
||||
+ public ChunkLoadingBasic chunkLoadingBasic;
|
||||
+
|
||||
+ public class ChunkLoadingBasic extends ConfigurationPart {
|
||||
+ @Comment("The maximum rate in chunks per second that the server will send to any individual player. Set to -1 to disable this limit.")
|
||||
+ public double playerMaxChunkSendRate = 75.0;
|
||||
+
|
||||
+ @Comment(
|
||||
+ "The maximum rate at which chunks will load for any individual player. " +
|
||||
+ "Note that this setting also affects chunk generations, since a chunk load is always first issued to test if a" +
|
||||
+ "chunk is already generated. Set to -1 to disable this limit."
|
||||
+ )
|
||||
+ public double playerMaxChunkLoadRate = 100.0;
|
||||
+
|
||||
+ @Comment("The maximum rate at which chunks will generate for any individual player. Set to -1 to disable this limit.")
|
||||
+ public double playerMaxChunkGenerateRate = -1.0;
|
||||
+ }
|
||||
+
|
||||
+ public ChunkLoadingAdvanced chunkLoadingAdvanced;
|
||||
+
|
||||
+ public class ChunkLoadingAdvanced extends ConfigurationPart {
|
||||
+ @Comment(
|
||||
+ "Set to true if the server will match the chunk send radius that clients have configured" +
|
||||
+ "in their view distance settings if the client is less-than the server's send distance."
|
||||
+ )
|
||||
+ public boolean autoConfigSendDistance = true;
|
||||
+
|
||||
+ @Comment(
|
||||
+ "Specifies the maximum amount of concurrent chunk loads that an individual player can have." +
|
||||
+ "Set to 0 to let the server configure it automatically per player, or set it to -1 to disable the limit."
|
||||
+ )
|
||||
+ public int playerMaxConcurrentChunkLoads = 0;
|
||||
+
|
||||
+ @Comment(
|
||||
+ "Specifies the maximum amount of concurrent chunk generations that an individual player can have." +
|
||||
+ "Set to 0 to let the server configure it automatically per player, or set it to -1 to disable the limit."
|
||||
+ )
|
||||
+ public int playerMaxConcurrentChunkGenerates = 0;
|
||||
+ }
|
||||
+ static void set(GlobalConfiguration instance) {
|
||||
+ GlobalConfiguration.instance = instance;
|
||||
+ }
|
||||
|
@ -638,21 +677,6 @@ index 0000000000000000000000000000000000000000..b92bfd89e32becde2e7630c6116c16f8
|
|||
+ public int incomingPacketThreshold = 300;
|
||||
+ }
|
||||
+
|
||||
+ public ChunkLoading chunkLoading;
|
||||
+
|
||||
+ public class ChunkLoading extends ConfigurationPart {
|
||||
+ public int minLoadRadius = 2;
|
||||
+ public int maxConcurrentSends = 2;
|
||||
+ public boolean autoconfigSendDistance = true;
|
||||
+ public double targetPlayerChunkSendRate = 100.0;
|
||||
+ public double globalMaxChunkSendRate = -1.0;
|
||||
+ public boolean enableFrustumPriority = false;
|
||||
+ public double globalMaxChunkLoadRate = -1.0;
|
||||
+ public double playerMaxConcurrentLoads = 20.0;
|
||||
+ public double globalMaxConcurrentLoads = 500.0;
|
||||
+ public double playerMaxChunkLoadRate = -1.0;
|
||||
+ }
|
||||
+
|
||||
+ public UnsupportedSettings unsupportedSettings;
|
||||
+
|
||||
+ public class UnsupportedSettings extends ConfigurationPart {
|
||||
|
@ -711,7 +735,7 @@ index 0000000000000000000000000000000000000000..b92bfd89e32becde2e7630c6116c16f8
|
|||
+
|
||||
+ @PostProcess
|
||||
+ private void postProcess() {
|
||||
+ //io.papermc.paper.chunk.system.scheduling.ChunkTaskScheduler.init(this);
|
||||
+
|
||||
+ }
|
||||
+ }
|
||||
+
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue