[GH-ISSUE #717] [performance] A large field of block entities is CPU-bound: 46 FPS, 21.8 ms CPU on M4 Pro #215

Closed
opened 2026-11-02 15:37:21 +07:00 by bsakaguchi · 3 comments
Owner

Originally created by @ludovic111 on GitHub (Oct 17, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/717

🤖 Filed by Ludovic's AI agent (Claude), not by Ludovic himself.

Reported on Discord by furyfire in #general (message).

What happens: looking at a large field of block entities (a big flat area of chests or barrels, seen from above) drops to 46 FPS. The F3 frame chart shows frame 21.9 ms (max 27.8), CPU 21.8 ms, GPU 0.0 ms: the frame is CPU-bound. Same session, a normal landscape at render distance 64: 61 FPS, CPU 11.5 ms.

Setup: Apple M4 Pro (Metal), 1728×1117 window, Fancy clouds, improved transparency, present mode Immediate, integrated server, release v2026.10.17.x.

Likely cost: the per-block-entity work each frame (chest/barrel models, block entity render list). It needs a profile at this scene: build a field of N chests in a test world and use --benchmark or the F3+1 profiler.

Vanilla: keeps block entity rendering cheap with culling and a per-chunk list of renderable block entities; Horizon should beat it here (perf wave, briefs/perf-wave.md).

Originally created by @ludovic111 on GitHub (Oct 17, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/717 > 🤖 Filed by Ludovic's AI agent (Claude), not by Ludovic himself. Reported on Discord by **furyfire** in #general ([message](https://discord.com/channels/1559227979002028052/1559227979559731353/1561049584602714314)). **What happens:** looking at a large field of block entities (a big flat area of chests or barrels, seen from above) drops to **46 FPS**. The F3 frame chart shows **frame 21.9 ms (max 27.8), CPU 21.8 ms, GPU 0.0 ms**: the frame is CPU-bound. Same session, a normal landscape at render distance 64: 61 FPS, CPU 11.5 ms. **Setup:** Apple M4 Pro (Metal), 1728×1117 window, Fancy clouds, improved transparency, present mode Immediate, integrated server, release v2026.10.17.x. **Likely cost:** the per-block-entity work each frame (chest/barrel models, block entity render list). It needs a profile at this scene: build a field of N chests in a test world and use `--benchmark` or the F3+1 profiler. **Vanilla:** keeps block entity rendering cheap with culling and a per-chunk list of renderable block entities; Horizon should beat it here (perf wave, briefs/perf-wave.md).
bsakaguchi 2026-11-02 15:37:21 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@ludovic111 commented on GitHub (Oct 17, 2026):

Claimed by Cosmic on Discord (GitHub: Online5277), to avoid duplicate work. The claim lapses after 14 days without activity (a comment, a pull request or a commit mentioning #717).

<!-- gh-comment-id:6237527315 --> @ludovic111 commented on GitHub (Oct 17, 2026): Claimed by `Cosmic` on Discord (GitHub: `Online5277`), to avoid duplicate work. The claim lapses after 14 days without activity (a comment, a pull request or a commit mentioning #717). <!-- kira:work -->
Author
Owner

@rdbtCVS commented on GitHub (Oct 26, 2026):

🤖 Agent: rdbtCVS’s AI agent (OpenAI Codex), triage follow-up. Merged #728 caches closed-chest geometry and explicitly addresses this report, but it does not establish that the original large-field 46-FPS scene is resolved. Recommend keeping this open until the same view/settings are remeasured; narrow it to any remaining cost.

<!-- gh-comment-id:6418376566 --> @rdbtCVS commented on GitHub (Oct 26, 2026): 🤖 Agent: rdbtCVS’s AI agent (OpenAI Codex), triage follow-up. Merged #728 caches closed-chest geometry and explicitly addresses this report, but it does not establish that the original large-field 46-FPS scene is resolved. Recommend keeping this open until the same view/settings are remeasured; narrow it to any remaining cost.
Author
Owner

@rdbtCVS commented on GitHub (Oct 31, 2026):

this issue is two weeks old, there has been many performance improvements, if this is still an issue open a new issue with updated profiling tests.

<!-- gh-comment-id:6537200049 --> @rdbtCVS commented on GitHub (Oct 31, 2026): this issue is two weeks old, there has been many performance improvements, if this is still an issue open a new issue with updated profiling tests.
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#215
No description provided.