diff options
author | Spottedleaf <[email protected]> | 2024-07-03 19:22:00 -0700 |
---|---|---|
committer | Spottedleaf <[email protected]> | 2024-07-03 19:22:43 -0700 |
commit | 8c8b227547fa78b8f3295e4ac8ee066777e04e98 (patch) | |
tree | 75de944d628f7c26af3f5752549a745c24d6f810 /patches/server/0994-Optimize-isInWorldBounds-and-getBlockState-for-inlin.patch | |
parent | 7eec21e80da15cb4b6fcb445910006e115729682 (diff) | |
download | Paper-8c8b227547fa78b8f3295e4ac8ee066777e04e98.tar.gz Paper-8c8b227547fa78b8f3295e4ac8ee066777e04e98.zip |
Execute chunk tasks mid-tick
If the server tick length is high, then the amount of time
available to process chunk tasks inbetween ticks is low. As a
result, chunk loading and generation may appear to slow down.
To ensure that chunk tasks are always processed, we add logic to
execute chunk tasks during tile entity tick, entity tick, chunk
random ticking, and scheduled block/fluid ticking. The mid-tick task
execution is timed so that it is not prioritised over the server
tick.
Diffstat (limited to 'patches/server/0994-Optimize-isInWorldBounds-and-getBlockState-for-inlin.patch')
-rw-r--r-- | patches/server/0994-Optimize-isInWorldBounds-and-getBlockState-for-inlin.patch | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/patches/server/0994-Optimize-isInWorldBounds-and-getBlockState-for-inlin.patch b/patches/server/0994-Optimize-isInWorldBounds-and-getBlockState-for-inlin.patch index fc25a541d6..5d0a72906e 100644 --- a/patches/server/0994-Optimize-isInWorldBounds-and-getBlockState-for-inlin.patch +++ b/patches/server/0994-Optimize-isInWorldBounds-and-getBlockState-for-inlin.patch @@ -29,10 +29,10 @@ index 02367ef1371dde94ff6c4cd40bd32e800d6ccaaf..7b0fc7135bc107103dcaed6dc0707b18 this.x = x; this.y = y; diff --git a/src/main/java/net/minecraft/world/level/Level.java b/src/main/java/net/minecraft/world/level/Level.java -index 557273061fa03ebaa4b9de01ad12ed4ac859c292..316a72f5019d4ad65237b41ccb4ef3be729246ad 100644 +index 613752e2df61fdd8010f8ad0cf25257580bfe32e..fe14d02b7c3ed2b69717622f392bf077171343fd 100644 --- a/src/main/java/net/minecraft/world/level/Level.java +++ b/src/main/java/net/minecraft/world/level/Level.java -@@ -394,7 +394,7 @@ public abstract class Level implements LevelAccessor, AutoCloseable, ca.spottedl +@@ -399,7 +399,7 @@ public abstract class Level implements LevelAccessor, AutoCloseable, ca.spottedl // Paper end public boolean isInWorldBounds(BlockPos pos) { |