2021-06-11 14:02:28 +02:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
|
From: Spottedleaf <Spottedleaf@users.noreply.github.com>
|
|
|
|
Date: Fri, 26 Jun 2020 22:35:08 -0700
|
|
|
|
Subject: [PATCH] Hide sync chunk writes behind flag
|
|
|
|
|
|
|
|
Syncing writes on each write call has terrible performance
|
|
|
|
on harddrives.
|
|
|
|
|
|
|
|
-DPaper.enable-sync-chunk-writes=true to enable
|
|
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/dedicated/DedicatedServerProperties.java b/src/main/java/net/minecraft/server/dedicated/DedicatedServerProperties.java
|
|
|
|
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
|
|
|
--- a/src/main/java/net/minecraft/server/dedicated/DedicatedServerProperties.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/dedicated/DedicatedServerProperties.java
|
|
|
|
@@ -0,0 +0,0 @@ public class DedicatedServerProperties extends Settings<DedicatedServerPropertie
|
|
|
|
this.maxWorldSize = this.get("max-world-size", (integer) -> {
|
2023-03-14 20:54:57 +01:00
|
|
|
return Mth.clamp(integer, 1, 29999984);
|
2021-06-11 14:02:28 +02:00
|
|
|
}, 29999984);
|
|
|
|
- this.syncChunkWrites = this.get("sync-chunk-writes", true);
|
2024-01-20 23:13:41 +01:00
|
|
|
+ this.syncChunkWrites = this.get("sync-chunk-writes", true) && Boolean.getBoolean("Paper.enable-sync-chunk-writes"); // Paper - Hide sync chunk writes behind flag
|
2024-04-24 08:44:48 +02:00
|
|
|
this.regionFileComression = this.get("region-file-compression", "deflate");
|
2021-06-11 14:02:28 +02:00
|
|
|
this.enableJmxMonitoring = this.get("enable-jmx-monitoring", false);
|
|
|
|
this.enableStatus = this.get("enable-status", true);
|