Skip to content

Commit

Permalink
Add async chunk writing
Browse files Browse the repository at this point in the history
The RegionFile IO scheduler is now capable of taking in
a Completable<CompoundTag> for the chunk data instead of
CompoundTag. This allows writes to be scheduled without
the write value immediately.
  • Loading branch information
Spottedleaf committed Oct 18, 2024
1 parent ed60eb0 commit 59709fc
Show file tree
Hide file tree
Showing 4 changed files with 313 additions and 134 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@ private void noOpClose(final ServerLevel instance) {}
private void closeIOThreads(final CallbackInfo ci) {
LOGGER.info("Waiting for I/O tasks to complete...");
MoonriseRegionFileIO.flush((MinecraftServer)(Object)this);
LOGGER.info("All I/O tasks to complete");
if ((Object)this instanceof DedicatedServer) {
MoonriseCommon.haltExecutors();
}
Expand Down
Loading

0 comments on commit 59709fc

Please sign in to comment.