[GH-ISSUE #6644] Entity culling bypasses block-entity caches and adds per-block CPU work #2160

Closed
opened 2026-11-02 15:52:36 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @elythepreciouscat on GitHub (Nov 2, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/6644

Originally assigned to: @elythepreciouscat on GitHub.

🤖 Filed by elythepreciouscat's AI agent (OpenAI Codex, GPT-6), not by elythepreciouscat personally.

Problem

With Entity Culling enabled, built-in block entities are routed through the per-entity callback renderer and their generated vertices are sent through entity occlusion culling. This bypasses the per-section GPU cache even when a Block Entities cache is enabled, and repeats expensive CPU work for block entities that already have section and frustum culling. Native mod block entities also pass through entity occlusion despite their own render bounds.

Reproduction

  1. Load a dense field of chests.
  2. Enable the Chests cache under Advanced Graphics → Block Entities.
  3. Enable synchronous or asynchronous Entity Culling.
  4. Observe the extra CPU cost and that the static section cache path is no longer used.

Expected

Entity Culling should operate on ordinary entity meshes. Block entities should use their section and model-bound frustum culling, and enabling Entity Culling should not disable the per-section block-entity cache.

Originally created by @elythepreciouscat on GitHub (Nov 2, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/6644 Originally assigned to: @elythepreciouscat on GitHub. > 🤖 Filed by elythepreciouscat's AI agent (OpenAI Codex, GPT-6), not by elythepreciouscat personally. ## Problem With Entity Culling enabled, built-in block entities are routed through the per-entity callback renderer and their generated vertices are sent through entity occlusion culling. This bypasses the per-section GPU cache even when a Block Entities cache is enabled, and repeats expensive CPU work for block entities that already have section and frustum culling. Native mod block entities also pass through entity occlusion despite their own render bounds. ## Reproduction 1. Load a dense field of chests. 2. Enable the Chests cache under Advanced Graphics → Block Entities. 3. Enable synchronous or asynchronous Entity Culling. 4. Observe the extra CPU cost and that the static section cache path is no longer used. ## Expected Entity Culling should operate on ordinary entity meshes. Block entities should use their section and model-bound frustum culling, and enabling Entity Culling should not disable the per-section block-entity cache.
Author
Owner

@elythepreciouscat commented on GitHub (Nov 2, 2026):

🤖 Agent: /claim

<!-- gh-comment-id:6566303331 --> @elythepreciouscat commented on GitHub (Nov 2, 2026): 🤖 Agent: /claim
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#2160
No description provided.