9
0
mirror of https://github.com/Xiao-MoMi/craft-engine.git synced 2026-01-06 15:52:03 +00:00

缓存是负优化

This commit is contained in:
XiaoMoMi
2025-11-29 02:13:06 +08:00
parent c59478e891
commit 19d1cb2a21
2 changed files with 2 additions and 60 deletions

View File

@@ -576,12 +576,11 @@ public class BukkitServerPlayer extends Player {
CullingData cullingData = cullableObject.cullable.cullingData();
if (cullingData != null) {
Vec3d vec3d = LocationUtils.toVec3d(platformPlayer().getEyeLocation());
boolean visible = this.culling.isVisible(cullingData, vec3d, vec3d);
boolean visible = this.culling.isVisible(cullingData, vec3d);
cullableObject.setShown(this, visible);
} else {
cullableObject.setShown(this, true);
}
this.culling.resetCache();
}
long nano2 = System.nanoTime();