Don't request chunk unloads during fill
Requesting chunk unloads during the fill task takes a tremendous hit on the server TPS, which leads to a really bad experience while players are online. It also slows down the fill process overall. By removing the chunk unload request, the server TPS will stay at a near 20 TPS due to the server now unloading the chunks naturally.
This commit is contained in:
parent
f88ede397c
commit
4a16d5321a
|
@ -249,7 +249,8 @@ public class WorldFillTask implements Runnable
|
|||
if (!chunkOnUnloadPreventionList(unload.x, unload.z))
|
||||
{
|
||||
world.setChunkForceLoaded(unload.x, unload.z, false);
|
||||
world.unloadChunkRequest(unload.x, unload.z);
|
||||
// this causes severe TPS loss by forcibly unloading chunks - instead, let server unload them naturally
|
||||
//world.unloadChunkRequest(unload.x, unload.z);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue