Skip to content

Commit

Permalink
change: entity.fast_retrieval: add todo for optimized huge volumes
Browse files Browse the repository at this point in the history
  • Loading branch information
2No2Name committed Jan 21, 2022
1 parent ddb98bd commit d11e2e8
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ public void forEachInBox(Box box, Consumer<EntityTrackingSection<T>> action) {
// the world. y and z positions are treated as unsigned when sorting by ascending long value, as their sign bits
// are placed somewhere inside the packed long

// Vanilla is likely more optimized when shooting entities with TNT cannons over huge distances.
// Todo: branch off to optimized variant for huge volumes

for (int x = minX; x <= maxX; x++) {
for (int z = Math.max(minZ, 0); z <= maxZ; z++) {
this.forEachInColumn(x, minY, maxY, z, action);
Expand Down

0 comments on commit d11e2e8

Please sign in to comment.