From 8d4b99c57440a9311da2c32972088519b6da3b39 Mon Sep 17 00:00:00 2001 From: Sergey Shatunov Date: Tue, 5 Jan 2016 14:56:58 +0700 Subject: [PATCH] Don't sleep between chunk unloading --- .../storage/ThreadedFileIOBase.java.patch | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 patches/net/minecraft/world/storage/ThreadedFileIOBase.java.patch diff --git a/patches/net/minecraft/world/storage/ThreadedFileIOBase.java.patch b/patches/net/minecraft/world/storage/ThreadedFileIOBase.java.patch new file mode 100644 index 0000000..de7f435 --- /dev/null +++ b/patches/net/minecraft/world/storage/ThreadedFileIOBase.java.patch @@ -0,0 +1,20 @@ +--- ../src-base/minecraft/net/minecraft/world/storage/ThreadedFileIOBase.java ++++ ../src-work/minecraft/net/minecraft/world/storage/ThreadedFileIOBase.java +@@ -38,7 +38,7 @@ + this.threadedIOQueue.remove(i--); + ++this.savedIOCounter; + } +- ++ /* // Spigot start - don't sleep in between chunks so we unload faster. + try + { + Thread.sleep(this.isThreadWaiting ? 0L : 10L); +@@ -46,7 +46,7 @@ + catch (InterruptedException interruptedexception1) + { + interruptedexception1.printStackTrace(); +- } ++ } */ // Spigot end + } + + if (this.threadedIOQueue.isEmpty())