Commit graph

1549 commits

Author SHA1 Message Date
md_5
f04e043eb1 Rebuild patches. 2016-03-20 11:29:50 +11:00
Aikar
04266858e3 Optimize Navigation Listener
Replace WeakHashMap with an ArrayList and manually manage object
lifecycle. Gives superior iteration performance at a slight cost
to removal performance and also ensures entities are removed immediately
upon losing their validity within the world.

Additionally, change listener registration to be done upon world add
instead of immediate up creation. This provides benefit of only
registering and ticking real Navigation objects, and not invalid
entities (cancelled entity spawns for example).
2016-03-19 19:37:46 +11:00
md_5
66f95e658f Rebuild patches 2016-03-19 14:46:10 +11:00
md_5
cce4667dd0 SPIGOT-1964: Remove 1.9.1 patch 2016-03-19 08:38:35 +11:00
md_5
095e59a49a SPIGOT-1953: Don't copy NavigationListener Map on Iteration. 2016-03-18 14:41:42 +11:00
md_5
23e921ffff Rebuild patches. 2016-03-16 07:14:49 +11:00
md_5
104c8c83fe Patch rebuild 2016-03-14 16:57:03 +11:00
md_5
6f291eaafc Fix patch conflicts 2016-03-12 20:59:15 +11:00
md_5
2dc26f3af2 Patch rebuild. 2016-03-12 12:39:07 +11:00
md_5
8ccef51618 Fix patch conflicts. 2016-03-12 11:24:40 +11:00
md_5
7e9e6eb0ba Patch rebuild. 2016-03-12 08:16:41 +11:00
md_5
b1c1b55c47 SPIGOT-1864: Improve entity collision capping 2016-03-10 16:24:53 +11:00
md_5
3104eb1141 SPIGOT-1814: Crop growth rates inverted. 2016-03-07 22:16:12 +11:00
md_5
f32adbaa19 Rebuild patches 2016-03-07 19:52:16 +11:00
md_5
bc01c3ad56 Patch rebuild 2016-03-06 16:43:38 +11:00
md_5
8e91ba21a1 Patch rebuild 2016-03-06 14:36:33 +11:00
md_5
b39373b6c5 Patch rebuild 2016-03-05 18:51:20 +11:00
md_5
86016ba863 Correct syncChunkLoadPostTimer stop position. 2016-03-05 16:38:55 +11:00
md_5
87e2f4705f BUILDTOOLS-203: Fix invalid javadoc 2016-03-04 16:19:11 +11:00
md_5
7b4d4d9ab1 Rebuild patches. 2016-03-04 15:26:28 +11:00
md_5
dd155edfc7 Add missed chunkGC timings start
Pointed out by Andi in Spigot #53
2016-03-03 20:22:48 +11:00
md_5
04f9413cff SPIGOT-1672: Implement regressed SpawnerSpawnEvent 2016-03-03 19:46:15 +11:00
md_5
43ef9168e4 Rebuild patches. 2016-03-03 17:04:36 +11:00
md_5
3af460505f Patch rebuild. 2016-03-03 08:28:13 +11:00
BlackHole
73ad4533f9 SPIGOT-1637: Update bungeecord-chat to 1.9-SNAPSHOT 2016-03-03 08:26:52 +11:00
md_5
1a196e11b3 SPIGOT-1584: Entity mount / dismount events are backwards 2016-03-02 06:41:39 +11:00
md_5
e01eaa0335 Rebuild patches. 2016-03-02 06:39:42 +11:00
md_5
604e0463ec Rebuild patches 2016-03-01 17:36:41 +11:00
md_5
b27d06a302 SPIGOT-1546: Use isPassenger, not misleading getVehicle 2016-03-01 14:47:13 +11:00
md_5
ee4e41a2e0 Patch rebuild 2016-03-01 11:27:36 +11:00
md_5
b78dfbc207 Patch rebuild. 2016-03-01 11:23:45 +11:00
md_5
7ebe8ffe9a Fix accidental omission of R revision number in version. 2016-03-01 11:08:52 +11:00
md_5
7d15d07c92 Update to Minecraft 1.9 2016-03-01 09:33:00 +11:00
md_5
e4d4710834 SPIGOT-1499: Outdated server message not working 2016-02-21 19:22:37 +11:00
Zach Brown
db6de12919 SPIGOT-596: Fix EntityDismountEvent 2015-10-26 15:50:39 +11:00
md_5
5f38d38115 Fix incorrect logic in entity tick limiter to match tile entity tick limiter.
Simply a fix to the small performance shortpath.
2015-10-07 17:23:59 +11:00
md_5
06ad352429 SPIGOT-1208: Don't skip ticks for explosive creepers. 2015-10-03 11:51:46 +10:00
Aikar
76236cb74c Don't sleep between chunk saves
For some unknown reason, Minecraft is sleeping 10ms between every single chunk being saved to disk.
Under high chunk load/unload activity (lots of movement / teleporting), this causes the chunk unload queue
to build up in size.

This has multiple impacts:
1) Performance of the unload queue itself - The save thread is pretty ineffecient for how it accesses it
   By letting the queue get larger, checking and popping work off the queue can get less performant.
2) Performance of chunk loading - As with #1, chunk loads also have to check this queue when loading
   chunk data so that it doesn't load stale data if new data is pending write to disk.
3) Memory Usage - The entire chunk has been serialized to NBT, and now sits in this queue. This leads to
   elevated memory usage, and then the objects used in the serialization sit around longer than needed,
   resulting in promotion to Old Generation instead of dying young.

If there is work to do, then the thread should be doing its work, and only sleep when it is done.
2015-09-10 16:48:10 +10:00
Aikar
da71ee9abd Optimize Chunk Saving Memory Allocation and Compression
Minecraft ineffeciently uses OutputStreams by calling .write(int) on the stream.
For Chunks, this is a DeflaterOutputStream, which allocates a single byte EVERY write.

This is causing the server to allocate tons of new byte[1] objects.
Additionally, this is very ineffecient for the Deflate process.

By Buffering Writes the same way it already is Buffering Reads, we will
write to the stream much more effeciently.

Also a more effecient RegionFile zero'ing for new chunks to speed up
new chunk generation.
2015-09-10 16:47:30 +10:00
md_5
0359393b14 Rebuild patches. 2015-09-01 18:07:28 +10:00
md_5
fdc144025c SPIGOT-1117: Barrier blocks are transparent for xray purposes 2015-08-07 15:34:06 +10:00
Melair
d97e08be4b Ensure that inactiveTick on EntityItem obeys magic values for age and pickupDelay. 2015-07-31 18:38:38 +10:00
md_5
6abac0cfd5 Update for latest CraftBukkit changes. 2015-07-30 17:25:21 +10:00
md_5
6c9b0a1a1d Update to Minecraft 1.8.8 (Pre-)Release. 2015-07-27 22:20:54 +10:00
Thinkofdeath
f94fe8f7a0 SPIGOT-1050: Add a missing case in the disable usercache saving option 2015-07-23 21:43:27 +01:00
Aikar
74e8786763 Don't allow sendPacket once disconnect has been processed. 2015-07-23 16:23:21 +10:00
md_5
b2c2c6348e Clear Packet Queue on Disconnect 2015-07-22 19:04:46 +10:00
Adam Thomas
18b238b2d7 Add an as bungee method to the Bukkit ChatColor enum 2015-07-22 19:00:06 +10:00
md_5
c8a0d06ae1 SPIGOT-1062: Update POM repo URL. 2015-07-21 18:18:51 +10:00
md_5
6d16e64a2a Add note about BungeeCord when in offline mode.
See PR #10 for motivation.
2015-07-13 19:22:08 +10:00