Port patches from folia dev/optimisations
This commit is contained in:
parent
d259503c92
commit
6af97e11b6
49 changed files with 5398 additions and 2254 deletions
|
@ -16,10 +16,10 @@ sections with a ZeroBitStorage data to to take ~20% of the process,
|
|||
now it takes <1%.
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/world/level/chunk/LevelChunkSection.java b/src/main/java/net/minecraft/world/level/chunk/LevelChunkSection.java
|
||||
index f150a16fbf888455301d8b9043f0b45fb1fa1d84..fd4c4122e3811c8f5d8c02f8faaf3579bcb8ad79 100644
|
||||
index 4158a699d775e1a69974b1a638714ffcadafaa46..93f0f55d986c2ae838f1cae10dc80ab31a7eaec4 100644
|
||||
--- a/src/main/java/net/minecraft/world/level/chunk/LevelChunkSection.java
|
||||
+++ b/src/main/java/net/minecraft/world/level/chunk/LevelChunkSection.java
|
||||
@@ -229,6 +229,7 @@ public class LevelChunkSection {
|
||||
@@ -141,6 +141,7 @@ public class LevelChunkSection {
|
||||
this.nonEmptyBlockCount = 0;
|
||||
this.tickingBlockCount = 0;
|
||||
this.tickingFluidCount = 0;
|
||||
|
@ -27,11 +27,11 @@ index f150a16fbf888455301d8b9043f0b45fb1fa1d84..fd4c4122e3811c8f5d8c02f8faaf3579
|
|||
this.states.forEachLocation((BlockState iblockdata, int i) -> {
|
||||
FluidState fluid = iblockdata.getFluidState();
|
||||
|
||||
@@ -248,6 +249,7 @@ public class LevelChunkSection {
|
||||
}
|
||||
@@ -166,6 +167,7 @@ public class LevelChunkSection {
|
||||
// Paper end - optimise collisions
|
||||
|
||||
});
|
||||
+ } // Paper - do not run forEachLocation on clearly empty sections
|
||||
// Paper end
|
||||
this.initBlockCollisionData(); // Paper
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue