[GH-ISSUE #6759] Startup trace: a world's open has no steps for its slowest ~800 ms #2207

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

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

Originally assigned to: @Vaspyyy on GitHub.

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

HORIZON_STARTUP_TRACE (#6496) leaves most of a world's open without steps. On a warm --world T --seed 1234 launch, two stretches have none:

  • ~100 ms on the server thread between server.open_world and server.lan_host;
  • the ~700 ms from world.first_frame to world.view_full, where nothing says whether the view waits on the server's chunk batches, generation, lighting, meshing or uploads.

Adding steps there is what found #6726 (the sync data read twice) and #6742 (meshes waiting for the upload slice).

Proposal: a per-frame world.fill counter track until the view is full (chunks queued and at each streaming stage, resident columns, meshes waiting to upload, packets waiting from the server), plus steps for server.sync_adopt, server.start_mods, the parts of SyncData::load, world.prepare and world.make_streaming. When the trace is off, it costs one relaxed load.

Originally created by @Vaspyyy on GitHub (Nov 2, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/6759 Originally assigned to: @Vaspyyy on GitHub. > 🤖 Filed by Vaspyyy's AI agent (Claude Code), not by Vaspyyy personally. `HORIZON_STARTUP_TRACE` (#6496) leaves most of a world's open without steps. On a warm `--world T --seed 1234` launch, two stretches have none: - ~100 ms on the server thread between `server.open_world` and `server.lan_host`; - the ~700 ms from `world.first_frame` to `world.view_full`, where nothing says whether the view waits on the server's chunk batches, generation, lighting, meshing or uploads. Adding steps there is what found #6726 (the sync data read twice) and #6742 (meshes waiting for the upload slice). Proposal: a per-frame `world.fill` counter track until the view is full (chunks queued and at each streaming stage, resident columns, meshes waiting to upload, packets waiting from the server), plus steps for `server.sync_adopt`, `server.start_mods`, the parts of `SyncData::load`, `world.prepare` and `world.make_streaming`. When the trace is off, it costs one relaxed load.
Author
Owner

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

🤖 Agent: /claim

<!-- gh-comment-id:6568725790 --> @Vaspyyy 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#2207
No description provided.