9
0
mirror of https://github.com/LeavesMC/Leaves.git synced 2025-12-19 14:59:32 +00:00

Remove some performance

This commit is contained in:
violetc
2024-08-14 17:01:06 +08:00
parent 1a110f5d08
commit a8e403d968
3 changed files with 8 additions and 50 deletions

View File

@@ -85,10 +85,10 @@ index d97771ecaf06b92d92b5ca0224ae0866e36703a6..439305bb4f5ce232aa6237276c121d53
.withRequiredArg()
diff --git a/src/main/java/org/leavesmc/leaves/LeavesConfig.java b/src/main/java/org/leavesmc/leaves/LeavesConfig.java
new file mode 100644
index 0000000000000000000000000000000000000000..a45b71149dc76503e82238ba9dfc8af4cfd3eb9d
index 0000000000000000000000000000000000000000..31845199d4a8148365579152aef11e0e59339fc2
--- /dev/null
+++ b/src/main/java/org/leavesmc/leaves/LeavesConfig.java
@@ -0,0 +1,922 @@
@@ -0,0 +1,880 @@
+package org.leavesmc.leaves;
+
+import com.destroystokyo.paper.util.SneakyThrow;
@@ -199,7 +199,7 @@ index 0000000000000000000000000000000000000000..a45b71149dc76503e82238ba9dfc8af4
+ }
+ }
+
+ @RemovedConfig(name = "unable-fakeplayer-names", category = "fakeplayer", transform = true)
+ @RemovedConfig(name = "unable-fakeplayer-names", category = "fakeplayer", convert = ConfigVerifyImpl.ListConfigVerify.STRING.class, transform = true)
+ @GlobalConfig(name = "unable-fakeplayer-names", category = {"modify", "fakeplayer"}, verify = ConfigVerifyImpl.ListConfigVerify.STRING.class)
+ public static List<String> unableFakeplayerNames = List.of("player-name");
+
@@ -567,21 +567,11 @@ index 0000000000000000000000000000000000000000..a45b71149dc76503e82238ba9dfc8af4
+ }
+ }
+
+ // Leaves start - modify - removed
+
+ @RemovedConfig(name = "tick-command", category = "modify")
+ public static boolean tickCommand = false;
+
+ @RemovedConfig(name = "player-can-edit-sign", category = "modify")
+ public static boolean playerCanEditSign = false;
+
+ @RemovedConfig(name = "mending-compatibility-infinity", category = {"modify", "minecraft-old"})
+ public static boolean mendingCompatibilityInfinity = false;
+
+ @RemovedConfig(name = "protection-stacking", category = {"modify", "minecraft-old"})
+ public static boolean protectionStacking = false;
+
+ // Leaves end - modify - removed
+ public static boolean removedModify = false;
+
+ // Leaves end - modify
+
@@ -609,9 +599,6 @@ index 0000000000000000000000000000000000000000..a45b71149dc76503e82238ba9dfc8af4
+ @GlobalConfig(name = "dont-send-useless-entity-packets", category = "performance")
+ public static boolean dontSendUselessEntityPackets = true;
+
+ @GlobalConfig(name = "optimize-entity-coordinate-key", category = "performance")
+ public static boolean optimizeEntityCoordinateKey = true;
+
+ @GlobalConfig(name = "enable-suffocation-optimization", category = "performance")
+ public static boolean enableSuffocationOptimization = true;
+
@@ -639,9 +626,6 @@ index 0000000000000000000000000000000000000000..a45b71149dc76503e82238ba9dfc8af4
+ @GlobalConfig(name = "biome-temperatures-use-aging-cache", category = "performance", lock = true)
+ public static boolean biomeTemperaturesUseAgingCache = true;
+
+ @GlobalConfig(name = "reduce-entity-fluid-lookup", category = "performance")
+ public static boolean reduceEntityFluidLookup = false;
+
+ @GlobalConfig(name = "reduce-chuck-load-and-lookup", category = "performance")
+ public static boolean reduceChuckLoadAndLookup = true;
+
@@ -660,9 +644,6 @@ index 0000000000000000000000000000000000000000..a45b71149dc76503e82238ba9dfc8af4
+ @GlobalConfig(name = "skip-secondary-POI-sensor-if-absent", category = "performance")
+ public static boolean skipSecondaryPOISensorIfAbsent = true;
+
+ @GlobalConfig(name = "cache-CubeVoxelShape-shape-array", category = "performance")
+ public static boolean cacheCubeVoxelShapeShapeArray = true;
+
+ @GlobalConfig(name = "store-mob-counts-in-array", category = "performance")
+ public static boolean storeMobCountsInArray = true;
+
@@ -693,45 +674,22 @@ index 0000000000000000000000000000000000000000..a45b71149dc76503e82238ba9dfc8af4
+ @GlobalConfig(name = "fix-villagers-dont-release-memory", category = "performance")
+ public static boolean villagersDontReleaseMemoryFix = false;
+
+ // Leaves start - performance - removed
+
+ @RemovedConfig(name = "cache-ominous-banner-item", category = "performance")
+ public static boolean cacheOminousBannerItem = true;
+
+ @RemovedConfig(name = "use-optimized-collection", category = "performance")
+ public static boolean useOptimizedCollection = true;
+
+ @RemovedConfig(name = "async-pathfinding", category = "performance")
+ public static boolean asyncPathfinding = false;
+
+ @RemovedConfig(name = "async-mob-spawning", category = "performance")
+ public static boolean asyncMobSpawning = false;
+
+ @RemovedConfig(name = "async-entity-tracker", category = "performance")
+ public static boolean asyncEntityTracker = false;
+
+ @RemovedConfig(name = "fix-paper-6045", category = {"performance", "fix"})
+ public static boolean fixPaper6045 = true;
+
+ @RemovedConfig(name = "fix-paper-9372", category = {"performance", "fix"})
+ public static boolean fixPaper9372 = true;
+
+ @RemovedConfig(name = "skip-clone-loot-parameters", category = "performance")
+ public static boolean skipCloneLootParameters = true;
+
+ @RemovedConfig(name = "skip-poi-find-in-vehicle", category = "performance")
+ public static boolean skipPOIFindingInVehicle = true;
+
+ @RemovedConfig(name = "strip-raytracing-for-entity", category = "performance")
+ public static boolean entityStripRaytracing = true;
+
+ @RemovedConfig(name = "get-nearby-players-streams", category = {"performance", "remove"})
+ public static boolean removeGetNearPlayerStreams = true;
+
+ @RemovedConfig(name = "optimize-world-generation-and-block-access", category = "performance")
+ public static boolean optimizeWorldGenerationAccess = true;
+
+ // Leaves end - performance - removed
+ @RemovedConfig(name = "cache-CubeVoxelShape-shape-array", category = "performance")
+ @RemovedConfig(name = "reduce-entity-fluid-lookup", category = "performance")
+ @RemovedConfig(name = "optimize-entity-coordinate-key", category = "performance")
+ public static boolean removedPerformance = true;
+
+ // Leaves end - performance
+