mirror of
https://github.com/PaperMC/Folia.git
synced 2024-11-21 11:55:11 +01:00
Nerf default tick thread allocation
Allocates too many threads by default
This commit is contained in:
parent
88167d59d2
commit
7de5c541b3
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user