[GH-ISSUE #6742] World open: finished chunk meshes wait for the 2 ms upload slice and hold back the full view #2205

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

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

Originally assigned to: @MSedgeMC on GitHub.

🤖 Filed by Vaspyyy's AI agent (Claude Code), not by Vaspyyy personally.

What happens

While a world opens, finished chunk meshes queue up waiting for upload and hold back world.view_full.

Without the player's Chunk Updates / Upload Budget, a frame uploads meshes for at most AUTO_UPLOAD_TIME (2 ms, game.rs). A per-frame counter track added to HORIZON_STARTUP_TRACE (resident columns, meshing, pending_uploads, remote backlog) shows the pile-up on a warm launch into --world T --seed 1234 at render distance 12:

  ms   meshing  resident  uploads
 1618      720       412      717
 1736     1316       585     1325
 1781      140       586     1292   <- every column is in, ~1300 meshes still wait
 1833       44       587       65
 1849        0       587        0   world.view_full

Proposed fix

While the view's terrain is still arriving (ViewArrival::arriving, already computed next to the upload loop), frames upload for 6 ms instead of 2. The rest of the time, edits and normal play, stays at 2 ms.

Measured with tools/startup_trace.py --world T --seed 1234 --runs 2 --warm, alternating builds, 6 runs each. Ryzen 7 5800X, RTX 3070, NVMe. Medians:

2 ms 6 ms while arriving
world.first_frame 1037 ms 1036 ms
world.view_full 1757 ms 1682 ms (−75; 2 of 6 runs at ~1465)
Originally created by @Vaspyyy on GitHub (Nov 2, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/6742 Originally assigned to: @MSedgeMC on GitHub. > 🤖 Filed by Vaspyyy's AI agent (Claude Code), not by Vaspyyy personally. ## What happens While a world opens, finished chunk meshes queue up waiting for upload and hold back `world.view_full`. Without the player's Chunk Updates / Upload Budget, a frame uploads meshes for at most `AUTO_UPLOAD_TIME` (2 ms, `game.rs`). A per-frame counter track added to `HORIZON_STARTUP_TRACE` (resident columns, meshing, `pending_uploads`, remote backlog) shows the pile-up on a warm launch into `--world T --seed 1234` at render distance 12: ``` ms meshing resident uploads 1618 720 412 717 1736 1316 585 1325 1781 140 586 1292 <- every column is in, ~1300 meshes still wait 1833 44 587 65 1849 0 587 0 world.view_full ``` ## Proposed fix While the view's terrain is still arriving (`ViewArrival::arriving`, already computed next to the upload loop), frames upload for 6 ms instead of 2. The rest of the time, edits and normal play, stays at 2 ms. Measured with `tools/startup_trace.py --world T --seed 1234 --runs 2 --warm`, alternating builds, 6 runs each. Ryzen 7 5800X, RTX 3070, NVMe. Medians: | | 2 ms | 6 ms while arriving | |---|---|---| | world.first_frame | 1037 ms | 1036 ms | | world.view_full | 1757 ms | 1682 ms (−75; 2 of 6 runs at ~1465) |
Author
Owner

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

/claim

<!-- gh-comment-id:6568496347 --> @MSedgeMC commented on GitHub (Nov 2, 2026): /claim
Author
Owner

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

🤖 Agent: /claim

<!-- gh-comment-id:6568611044 --> @Vaspyyy commented on GitHub (Nov 2, 2026): 🤖 Agent: /claim
Author
Owner

@github-actions[bot] commented on GitHub (Nov 2, 2026):

🤖 Claims: refused, @MSedgeMC already claimed this issue: pick another, or ask them here. (asked by @Vaspyyy)

<!-- gh-comment-id:6568613681 --> @github-actions[bot] commented on GitHub (Nov 2, 2026): 🤖 Claims: refused, @MSedgeMC already claimed this issue: pick another, or ask them here. (asked by @Vaspyyy)
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#2205
No description provided.