2016-03-16 07:21:39 +00:00
|
|
|
From 8ca16a403ce9416e0907f986bd35b2eca18dab53 Mon Sep 17 00:00:00 2001
|
2016-02-29 23:09:49 +00:00
|
|
|
From: Zach Brown <zach.brown@destroystokyo.com>
|
|
|
|
Date: Wed, 2 Mar 2016 23:46:57 -0600
|
2015-11-16 01:40:32 +00:00
|
|
|
Subject: [PATCH] Bump thread count for chunk loading
|
|
|
|
|
|
|
|
|
|
|
|
diff --git a/src/main/java/org/bukkit/craftbukkit/chunkio/ChunkIOExecutor.java b/src/main/java/org/bukkit/craftbukkit/chunkio/ChunkIOExecutor.java
|
2016-02-29 23:09:49 +00:00
|
|
|
index e4fd9bc..729641e 100644
|
2015-11-16 01:40:32 +00:00
|
|
|
--- a/src/main/java/org/bukkit/craftbukkit/chunkio/ChunkIOExecutor.java
|
|
|
|
+++ b/src/main/java/org/bukkit/craftbukkit/chunkio/ChunkIOExecutor.java
|
|
|
|
@@ -7,7 +7,7 @@ import net.minecraft.server.World;
|
|
|
|
import org.bukkit.craftbukkit.util.AsynchronousExecutor;
|
|
|
|
|
|
|
|
public class ChunkIOExecutor {
|
|
|
|
- static final int BASE_THREADS = 1;
|
2016-02-29 23:09:49 +00:00
|
|
|
+ static final int BASE_THREADS = 2; // Paper - Bumped value
|
2015-11-16 01:40:32 +00:00
|
|
|
static final int PLAYERS_PER_THREAD = 50;
|
|
|
|
|
|
|
|
private static final AsynchronousExecutor<QueuedChunk, Chunk, Runnable, RuntimeException> instance = new AsynchronousExecutor<QueuedChunk, Chunk, Runnable, RuntimeException>(new ChunkIOProvider(), BASE_THREADS);
|
|
|
|
--
|
2016-02-29 23:09:49 +00:00
|
|
|
2.7.2
|
2015-11-16 01:40:32 +00:00
|
|
|
|