diff options
author | Aikar <[email protected]> | 2016-05-15 18:48:39 -0400 |
---|---|---|
committer | Aikar <[email protected]> | 2016-05-15 18:48:39 -0400 |
commit | e56bbcdcda3c65ad594cce156d1506e30940dc02 (patch) | |
tree | b69a34b4adc9446ce6cdb4c18f5e85d0dc2e83a8 /Spigot-Server-Patches/0147-Improve-Maps-in-item-frames-performance-and-bug-fixe.patch | |
parent | 433489ea3285cd8afb4c75ff5f165b407aebb463 (diff) | |
download | Paper-e56bbcdcda3c65ad594cce156d1506e30940dc02.tar.gz Paper-e56bbcdcda3c65ad594cce156d1506e30940dc02.zip |
Refactor Lighting Queue System
may help #284
Cleans up the lighting queue system, reducing diff and improving implementation.
We no longer stop chunk unloads due to lighting updates, and instead simply flush the lighting queue.
The cost of forcing the chunk (and its neighbors!) to stay loaded waiting for its
lighting work to finish is much greater than simply taking the hit and doing the work.
This change also helps reduce the diff and avoid bugs with missed diffs by removing
duplicated logic.
Also switches to a more effecient data structure (ArrayDeque instead of LinkedList) for the queue itself.
Diffstat (limited to 'Spigot-Server-Patches/0147-Improve-Maps-in-item-frames-performance-and-bug-fixe.patch')
-rw-r--r-- | Spigot-Server-Patches/0147-Improve-Maps-in-item-frames-performance-and-bug-fixe.patch | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Spigot-Server-Patches/0147-Improve-Maps-in-item-frames-performance-and-bug-fixe.patch b/Spigot-Server-Patches/0147-Improve-Maps-in-item-frames-performance-and-bug-fixe.patch index 742b3470b3..1ca96a7314 100644 --- a/Spigot-Server-Patches/0147-Improve-Maps-in-item-frames-performance-and-bug-fixe.patch +++ b/Spigot-Server-Patches/0147-Improve-Maps-in-item-frames-performance-and-bug-fixe.patch @@ -1,4 +1,4 @@ -From 8e9e6eadd852b2360b4be33223a402533f0f1fe6 Mon Sep 17 00:00:00 2001 +From d0e77b7d023cdba51d177126f4592d26da939ee1 Mon Sep 17 00:00:00 2001 From: Aikar <[email protected]> Date: Fri, 29 Apr 2016 20:02:00 -0400 Subject: [PATCH] Improve Maps (in item frames) performance and bug fixes @@ -48,10 +48,10 @@ index 6c8da79..38e88d8 100644 Iterator iterator = this.trackedPlayers.iterator(); // CraftBukkit diff --git a/src/main/java/net/minecraft/server/World.java b/src/main/java/net/minecraft/server/World.java -index 2e767e4..741850e 100644 +index 5c3e075..0f1ee49 100644 --- a/src/main/java/net/minecraft/server/World.java +++ b/src/main/java/net/minecraft/server/World.java -@@ -1154,6 +1154,7 @@ public abstract class World implements IBlockAccess { +@@ -1144,6 +1144,7 @@ public abstract class World implements IBlockAccess { { if ( iter.next().trackee == entity ) { |