Commit Graph

17 Commits

Author SHA1 Message Date
842831a3cf ConcurrentUtil: Fix concurrent long map resize chain pull function
The function assumed that the current resize chain pointed to
the previous table, when in fact it pointed to the current table.

The function is supposed to restore the resize chain to the previous
table, previous increment, and previous index + new increment.
2024-08-01 16:55:33 -07:00
2bfea35de3 Update ConcurrentUtil
Mostly for the primitive long to reference hashtable impl
2024-06-14 10:47:33 -07:00
79da0788dd 62 2024-06-13 10:12:48 -07:00
0ef31547a1 Finish API patches 2024-06-13 08:45:43 -07:00
7f1e33effe do some work 2024-04-23 11:03:16 -07:00
47ee5579ff Begin update to 1.20.5 2024-04-23 10:02:08 -07:00
b63a0c5a8f Fix javadoc errors, remove unused classes 2024-01-26 21:34:40 +01:00
f520d3c39b Adventure (kind of) 2023-12-05 19:38:29 +01:00
46f4547805 Prepare for 1.20.3 dev 2023-12-05 18:20:55 +01:00
6a5bb6ffb8 rebuild old indexes, first work 2023-09-21 19:39:51 +02:00
524eeedaa8 So it begins... 2023-09-21 19:18:04 +02:00
15ade6f446 More patches 2023-03-14 19:05:23 +01:00
08ab8edb76 Start working on 1.19.4 2023-03-14 18:11:24 +01:00
d0386f21e8 First server patches 2022-12-07 18:08:55 +01:00
b7dd55ce72 API patches 2022-12-07 17:46:46 +01:00
0f1a8717e8 Rewrite chunk system (#8177)
Patch documentation to come

Issues with the old system that are fixed now:
- World generation does not scale with cpu cores effectively.
- Relies on the main thread for scheduling and maintaining chunk state, dropping chunk load/generate rates at lower tps.
- Unreliable prioritisation of chunk gen/load calls that block the main thread.
- Shutdown logic is utterly unreliable, as it has to wait for all chunks to unload - is it guaranteed that the chunk system is in a state on shutdown that it can reliably do this? Watchdog shutdown also typically failed due to thread checks, which is now resolved.
- Saving of data is not unified (i.e can save chunk data without saving entity data, poses problems for desync if shutdown is really abnormal.
- Entities are not loaded with chunks. This caused quite a bit of headache for Chunk#getEntities API, but now the new chunk system loads entities with chunks so that they are ready whenever the chunk loads in. Effectively brings the behavior back to 1.16 era, but still storing entities in their own separate regionfiles.

The above list is not complete. The patch documentation will complete it.

New chunk system hard relies on starlight and dataconverter, and most importantly the new concurrent utilities in ConcurrentUtil.

Some of the old async chunk i/o interface (i.e the old file io thread reroutes _some_ calls to the new file io thread) is kept for plugin compat reasons. It will be removed in the next major version of minecraft.

The old legacy chunk system patches have been moved to the removed folder in case we need them again.
2022-09-26 01:02:51 -07:00
90da9124c5 Re-arrange most chunk system patches to front (#8338)
* Re-arrange most chunk system patches to front

Co-authored-by: Spottedleaf <Spottedleaf@users.noreply.github.com>
2022-09-01 09:51:59 -07:00