Commit Graph

38 Commits

Author SHA1 Message Date
Aikar 9a22d2fdec Fix placement of chunk tracking - Fixes #1199
Spigot had code that returned early in chunk add/remove methods.

This was causing our code added to set current chunks and counts to
be skipped over if the entity was default not persistent but made persistent.

This was the source of many issues

Fixes #1208
2018-07-15 02:44:37 -04:00
Aikar 8778a2ef97 Current Chunk for Entity and Block Entities, counts by entity type
This enables us a fast reference to the entities current chunk instead
of having to look it up by hashmap lookups.

We also store counts by type to further enable other performance optimizations in later patches.
2018-07-04 03:55:24 -04:00
Mark Vainomaa df3df43dea Skip Entity and Tile Entity ticking in chunks scheduled for unload (#1132)
Fixes #1131
2018-05-30 23:31:55 +03:00
Zach Brown c072993a5c Update upstream CB/S 2018-04-17 22:25:50 -04:00
Shane Freeder 1872a94c83 Update CB/S 2018-03-31 10:34:25 +01:00
Aikar 66dd61702a Add max-player-auto-save-per-tick setting to spread out saves more
This will force the saves to spread over multiple ticks even when many
players auto save interval is aligned, avoiding spikes on large servers.

Closes #1021
2018-03-04 20:20:27 -05:00
Nikita Rudy 9105e06867 Added options to disable additional ore generation in Mesa and Extreme Hills (#1006) 2018-02-13 03:44:50 +03:00
Shane Freeder 6d2da5e46e Update B/CB 2018-01-24 17:31:43 +00:00
Zach Brown c93e1ee068 Update upstream B/CB/S 2018-01-10 23:31:19 -06:00
Zach Brown 9ba62bc998 Restructure lighting queue runnable handling
Instead of overriding add within the queue, never add runnables to the
queue if the light queue is disabled.

This change is made to make timings reports and stacktraces less
confusing for administrators, who prior to this change, would have seen
the lighting queue referenced in both, regardless of whether or not it
was enabled.

This change should not affect performance, nor is it made with the
intent to.
2017-12-22 15:25:01 -06:00
Shane Freeder a6eb798352 Update S 2017-08-12 22:32:01 +01:00
BlackHole 01d1cc351b Update to 1.12.1 2017-08-03 16:36:06 +02:00
Aikar a289bd5949 Update upstream (memory leak fix) 2017-07-16 20:36:27 -04:00
Zach Brown 1c208bf05b Update upstream CB/S 2017-06-18 20:36:55 -05:00
Zach Brown e3dd2d2df2 Update upstream CB/S 2017-06-11 12:03:07 -05:00
Shane Freeder 9cf2e3b3dc Update to 1.12-pre6 2017-05-31 09:04:52 +01:00
Zach Brown 81159a37d4 Update upstream B/CB/S 2017-05-27 23:25:17 -05:00
Zach Brown b39f2133a1 Update Paper to MC 1.12-pre5 2017-05-20 23:41:39 -05:00
Zach Brown ab4ae72fd5 Update to MC 1.12-pre2 2017-05-14 13:05:01 -05:00
Zach Brown 26d7646a75 Update upstream B/CB/S 2017-05-04 18:08:52 -05:00
Zach Brown 2671b8b308 Update upstream B/CB/S 2017-04-28 19:25:52 -05:00
Zach Brown 22e2858fee Update bStats implementation 2017-04-22 01:16:45 -05:00
Zach Brown 0d1f8be81d Update upstream B/CB 2017-04-21 23:42:59 -05:00
Zach Brown 66a6db73e0 Update upstream B/CB 2017-03-31 23:24:42 -05:00
Zach Brown 4340ef97ca Switch to a bStats based Metrics system 2017-03-25 00:22:02 -05:00
Zach Brown de6a101264 Update upstream B/CB/S
Adds /paper command for reloading the paper config.
Closes GH-639

Per-world config logging has been removed in favor of all or nothing
logging for all paper settings. I don't believe it was used enough to
warrant maintaining. If this is not the case it should be possible to
re-add it.
2017-03-24 22:18:58 -05:00
Zach Brown a3cc3e37bd Update upstream S 2017-01-30 22:33:54 -06:00
Zach Brown 013c024ca2 Update upstream CB 2017-01-28 17:36:03 -06:00
Zach Brown b6dd3fb9d3 Update upstream B/CB
Closes GH-569
2017-01-06 15:45:59 -06:00
Aikar 34e0091024 Incremental Auto Save Players
Take same approach we did for chunks, and only save player if its been X time since last save,
instead of doing it all in 1 tick.

This is even more helpful considering Player Saving is done sync for File IO.
2016-12-27 16:11:25 -05:00
Zach Brown 67a9e0cbf6 Update upstream CB 2016-12-10 17:50:31 -06:00
Zach Brown b21c31c91d Update upstream B/CB 2016-12-09 18:07:35 -06:00
Aikar c15001e24d Fix faulty logic in Auto Save check - Fixes #443 2016-11-04 01:31:49 -04:00
Zach Brown 4bef47531a Properly update patches for upstream merge 2016-10-21 15:42:49 -05:00
Zach Brown 2515c80051 Update upstream B/CB 2016-10-21 15:28:44 -05:00
Aikar 4708920d8d Updated Timings to better detail saves 2016-10-20 00:21:35 -04:00
Aikar e081f311cb don't save level every tick for auto save. whoops 2016-09-26 01:50:26 -04:00
Aikar 6c7ea0b67a Auto Save Improvements
Makes Auto Save Rate setting configurable per-world. If the auto save rate is left -1, the global bukkit.yml value will be used.

Process auto save every tick instead of once per auto tick interval, so that chunk saves will distribute over many ticks instead of all at once.

Re-introduce a cap per tick for auto save (Spigot disabled the vanilla cap) and make it configurable.
2016-09-21 22:12:56 -04:00