mirror of
https://github.com/LeavesMC/Leaves.git
synced 2026-01-04 15:41:31 +00:00
Disable Multithreaded Tracker and Async Pathfinding
This commit is contained in:
@@ -186,10 +186,10 @@ index 8eb4a062489b42b26076d5f3bdfbff368c1a199b..441edf3dbd34c8d15b7b1ba02c92e8f1
|
||||
|
||||
set.clear();
|
||||
diff --git a/src/main/java/top/leavesmc/leaves/LeavesConfig.java b/src/main/java/top/leavesmc/leaves/LeavesConfig.java
|
||||
index f4e5b84f0bd952676950369eff44b87fe1c46f1b..6cff1d44bbbdf998b79c17a5fd78b084d49ce988 100644
|
||||
index f4e5b84f0bd952676950369eff44b87fe1c46f1b..c9adf62da15389d2548f8f4540395f73dcdf243f 100644
|
||||
--- a/src/main/java/top/leavesmc/leaves/LeavesConfig.java
|
||||
+++ b/src/main/java/top/leavesmc/leaves/LeavesConfig.java
|
||||
@@ -237,6 +237,19 @@ public final class LeavesConfig {
|
||||
@@ -237,6 +237,20 @@ public final class LeavesConfig {
|
||||
dontSendUselessEntityPackets = getBoolean("settings.performance.dont-send-useless-entity-packets", dontSendUselessEntityPackets);
|
||||
}
|
||||
|
||||
@@ -202,7 +202,8 @@ index f4e5b84f0bd952676950369eff44b87fe1c46f1b..6cff1d44bbbdf998b79c17a5fd78b084
|
||||
+ }
|
||||
+
|
||||
+ if (asyncEntityTracker) {
|
||||
+ LeavesLogger.LOGGER.severe("Async EntityTracker is updating, it may work normally");
|
||||
+ asyncEntityTracker = false;
|
||||
+ LeavesLogger.LOGGER.severe("Async EntityTracker is updating, it can't work");
|
||||
+ }
|
||||
+ }
|
||||
+
|
||||
@@ -211,10 +212,10 @@ index f4e5b84f0bd952676950369eff44b87fe1c46f1b..6cff1d44bbbdf998b79c17a5fd78b084
|
||||
public final String worldName;
|
||||
diff --git a/src/main/java/top/leavesmc/leaves/tracker/MultithreadedTracker.java b/src/main/java/top/leavesmc/leaves/tracker/MultithreadedTracker.java
|
||||
new file mode 100644
|
||||
index 0000000000000000000000000000000000000000..6f0ef15bf132d727e1fe87e336f83ec26f1a1f74
|
||||
index 0000000000000000000000000000000000000000..559daa0150e395921d110efc63c477be0248ad25
|
||||
--- /dev/null
|
||||
+++ b/src/main/java/top/leavesmc/leaves/tracker/MultithreadedTracker.java
|
||||
@@ -0,0 +1,123 @@
|
||||
@@ -0,0 +1,125 @@
|
||||
+package top.leavesmc.leaves.tracker;
|
||||
+
|
||||
+import com.google.common.util.concurrent.ThreadFactoryBuilder;
|
||||
@@ -318,6 +319,7 @@ index 0000000000000000000000000000000000000000..6f0ef15bf132d727e1fe87e336f83ec2
|
||||
+ }
|
||||
+
|
||||
+ private void processChunk(LevelChunk chunk) {
|
||||
+ /* Updating DISABLE THIS
|
||||
+ final ChunkEntitySlices entitySlices = chunk.level.entityManager.entitySliceManager.getChunk(chunk.locX, chunk.locZ);
|
||||
+ if (entitySlices == null) {
|
||||
+ return;
|
||||
@@ -336,5 +338,6 @@ index 0000000000000000000000000000000000000000..6f0ef15bf132d727e1fe87e336f83ec2
|
||||
+ }
|
||||
+ }
|
||||
+ }
|
||||
+ */
|
||||
+ }
|
||||
+}
|
||||
|
||||
Reference in New Issue
Block a user