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:
Dylan Xaldin 2020-01-13 03:20:47 -06:00
parent f88ede397c
commit 4a16d5321a
1 changed files with 2 additions and 1 deletions

View File

@ -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);
}
}