3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-12-26 16:12:37 +01:00
Paper/src/main/java/net
Travis Watkins 6149fc3e78 Don't thread single chunk compression. Fixes BUKKIT-2927
Packet 51 is used to send updates about large changes to single chunks
and to remove chunks from the client when they get out of range. In the
first case a single packet object is created and queued for all relevant
players. With our current chunk compression scheme this means the first
player to have the packet processed will start the compression and get the
packet correctly but the rest will get garbage.

Since this packet never contains much data it is better to simply handle
compression of it on the main thread like vanilla does instead of putting in
locks and dealing with their overhead and complexity.
2012-11-15 16:09:21 -06:00
..
minecraft/server Don't thread single chunk compression. Fixes BUKKIT-2927 2012-11-15 16:09:21 -06:00