From 0da953539baff286ea9c1aa7025d9fc5b14a4def Mon Sep 17 00:00:00 2001 From: Spottedleaf Date: Mon, 20 Mar 2023 02:48:16 -0700 Subject: [PATCH] Disable mid-tick task execution Mid-tick task execution acquires the ticket lock at least, which can possibly be a significant performance bottleneck at a high tick thread + region count. This change should reduce the impact from scaling the region threads, but is not a fix to the underlying issue. --- ...0010-Disable-mid-tick-task-execution.patch | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 patches/server/0010-Disable-mid-tick-task-execution.patch diff --git a/patches/server/0010-Disable-mid-tick-task-execution.patch b/patches/server/0010-Disable-mid-tick-task-execution.patch new file mode 100644 index 0000000..c5d9ad5 --- /dev/null +++ b/patches/server/0010-Disable-mid-tick-task-execution.patch @@ -0,0 +1,23 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Spottedleaf +Date: Mon, 20 Mar 2023 02:07:43 -0700 +Subject: [PATCH] Disable mid-tick task execution + +Mid-tick task execution acquires the ticket lock at least, +which can possibly be a significant performance bottleneck +at a high tick thread + region count. This change should reduce +the impact from scaling the region threads, but is not a fix +to the underlying issue. + +diff --git a/src/main/java/net/minecraft/server/MinecraftServer.java b/src/main/java/net/minecraft/server/MinecraftServer.java +index 4a4b19ebd3fe743ca957d5ab307ef4dc0a1becec..1e3acf15dc6c055212baa39905b9ce8fa33d081a 100644 +--- a/src/main/java/net/minecraft/server/MinecraftServer.java ++++ b/src/main/java/net/minecraft/server/MinecraftServer.java +@@ -2872,6 +2872,7 @@ public abstract class MinecraftServer extends ReentrantBlockableEventLoop