aboutsummaryrefslogtreecommitdiffhomepage
path: root/patches/server/0995-Improve-Maps-in-item-frames-performance-and-bug-fixe.patch
diff options
context:
space:
mode:
authorSpottedleaf <[email protected]>2024-07-03 19:22:00 -0700
committerSpottedleaf <[email protected]>2024-07-03 19:22:43 -0700
commit8c8b227547fa78b8f3295e4ac8ee066777e04e98 (patch)
tree75de944d628f7c26af3f5752549a745c24d6f810 /patches/server/0995-Improve-Maps-in-item-frames-performance-and-bug-fixe.patch
parent7eec21e80da15cb4b6fcb445910006e115729682 (diff)
downloadPaper-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/0995-Improve-Maps-in-item-frames-performance-and-bug-fixe.patch')
-rw-r--r--patches/server/0995-Improve-Maps-in-item-frames-performance-and-bug-fixe.patch4
1 files changed, 2 insertions, 2 deletions
diff --git a/patches/server/0995-Improve-Maps-in-item-frames-performance-and-bug-fixe.patch b/patches/server/0995-Improve-Maps-in-item-frames-performance-and-bug-fixe.patch
index 16d5a8f245..198e443db0 100644
--- a/patches/server/0995-Improve-Maps-in-item-frames-performance-and-bug-fixe.patch
+++ b/patches/server/0995-Improve-Maps-in-item-frames-performance-and-bug-fixe.patch
@@ -13,10 +13,10 @@ custom renderers are in use, defaulting to the much simpler Vanilla system.
Additionally, numerous issues to player position tracking on maps has been fixed.
diff --git a/src/main/java/net/minecraft/server/level/ServerLevel.java b/src/main/java/net/minecraft/server/level/ServerLevel.java
-index 73c33582eac01cbc6bf3728a78f9e1ee76b2b043..b65927095e36451c53cdae770701a33470eaadbc 100644
+index db30381b3aeab83bcd0d1a341e4056d7c36a6f11..fc011c30628d77d55defe421db6ac194217e8def 100644
--- a/src/main/java/net/minecraft/server/level/ServerLevel.java
+++ b/src/main/java/net/minecraft/server/level/ServerLevel.java
-@@ -2465,6 +2465,7 @@ public class ServerLevel extends Level implements WorldGenLevel, ca.spottedleaf.
+@@ -2492,6 +2492,7 @@ public class ServerLevel extends Level implements WorldGenLevel, ca.spottedleaf.
{
if ( iter.next().player == entity )
{