From 7de5c541b3f085cce611135400c762ad22037a0a Mon Sep 17 00:00:00 2001 From: Spottedleaf Date: Wed, 29 Mar 2023 08:12:27 -0700 Subject: [PATCH] Nerf default tick thread allocation Allocates too many threads by default --- patches/server/0004-Threaded-Regions.patch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/patches/server/0004-Threaded-Regions.patch b/patches/server/0004-Threaded-Regions.patch index de191af..3ef84d5 100644 --- a/patches/server/0004-Threaded-Regions.patch +++ b/patches/server/0004-Threaded-Regions.patch @@ -8120,7 +8120,7 @@ index 0000000000000000000000000000000000000000..3f14eda409ca49095dc43796868435b7 +} diff --git a/src/main/java/io/papermc/paper/threadedregions/TickRegions.java b/src/main/java/io/papermc/paper/threadedregions/TickRegions.java new file mode 100644 -index 0000000000000000000000000000000000000000..1ac3c3612df4c1c5c28efc4e23ea107aa722050e +index 0000000000000000000000000000000000000000..1cc7c32690ba7f7d7cdcbe239314f30f49ecb7bc --- /dev/null +++ b/src/main/java/io/papermc/paper/threadedregions/TickRegions.java @@ -0,0 +1,355 @@ @@ -8171,7 +8171,7 @@ index 0000000000000000000000000000000000000000..1ac3c3612df4c1c5c28efc4e23ea107a + if (tickThreads <= 4) { + tickThreads = 1; + } else { -+ tickThreads = (2 * tickThreads) / 3; ++ tickThreads = tickThreads / 4; + } + } else { + tickThreads = config.threads;