Re-enable light queue toggle, optimize neighbor checks, add max queue time

light queue is actually buggy, so re-enabling the config.

however, if anyone is ok with the buggy behavior, made the max time lost due to
light queue configurable.

We want to get to making the ligth queue default if we can make it work perfectly.

also applying neighbor optimizations to use the faster method for light checks.
This commit is contained in:
Aikar
2018-09-26 00:57:59 -04:00
parent f2d9f62537
commit 265ac2bbb1
67 changed files with 141 additions and 109 deletions

View File

@@ -5,12 +5,12 @@ Subject: [PATCH] Configurable end credits
diff --git a/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java b/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java
index 9fd1bde0ef..29d5f30545 100644
index 8f6f0288be..5aee23dceb 100644
--- a/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java
+++ b/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java
@@ -0,0 +0,0 @@ public class PaperWorldConfig {
//queueLightUpdates = getBoolean("queue-light-updates", false);
//log("Lighting Queue enabled: " + queueLightUpdates);
log("Warning: This feature may help reduce TPS loss from light, but comes at the cost of buggy light data");
log("We are working to improve this feature.");
}
+
+ public boolean disableEndCredits;