Place chests against a wall.

Then walk to the other side of the wall, and you'll notice that no block entities are culled.

You need to place an additional wall, then SOME of the chests get culled.

You have to get very close to the second wall to cull all 9 chests.


I looked into the code, and there might be two issues causing these problems.
https://github.com/LogisticsCraft/OcclusionCulling/blob/7a346eabc5edcfdef31df3c21202c3c1473fb506/src/main/java/com/logisticscraft/occlusionculling/OcclusionCullingInstance.java#L58
Using floor here instead of ceil might cause all AABBs to extend one block further than intended.
https://github.com/LogisticsCraft/OcclusionCulling/blob/7a346eabc5edcfdef31df3c21202c3c1473fb506/src/main/java/com/logisticscraft/occlusionculling/OcclusionCullingInstance.java#L397
The allowWallClipping check here likely prevents culling of block entities adjacent to a wall.
Place chests against a wall.

Then walk to the other side of the wall, and you'll notice that no block entities are culled.

You need to place an additional wall, then SOME of the chests get culled.

You have to get very close to the second wall to cull all 9 chests.


I looked into the code, and there might be two issues causing these problems.
https://github.com/LogisticsCraft/OcclusionCulling/blob/7a346eabc5edcfdef31df3c21202c3c1473fb506/src/main/java/com/logisticscraft/occlusionculling/OcclusionCullingInstance.java#L58
Using
floorhere instead ofceilmight cause all AABBs to extend one block further than intended.https://github.com/LogisticsCraft/OcclusionCulling/blob/7a346eabc5edcfdef31df3c21202c3c1473fb506/src/main/java/com/logisticscraft/occlusionculling/OcclusionCullingInstance.java#L397
The
allowWallClippingcheck here likely prevents culling of block entities adjacent to a wall.