[GH-ISSUE #6763] Single player: may the integrated server send the first view faster than 64 chunks per tick? (~0.45 s of the world's open) #2206

Open
opened 2026-11-02 15:53:00 +07:00 by bsakaguchi · 2 comments
Owner

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

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

Question for the maintainer

Should single player (the integrated server, over the memory connection) send the view's chunks faster than vanilla's batch pacing during the initial load only?

What paces it now

Hub::next_batch follows PlayerChunkSender. The batch quota grows by the client's chunks_per_tick each tick, the client asks for the 64 maximum (remote.rs, ChunkBatchReceived { chunks_per_tick: 64.0 }), and the server clamps it to 0.01..=64. So at most 64 columns leave per 50 ms tick.

With the world.fill counters from #6761, on a warm --world T --seed 1234 launch at render distance 12 (~590 columns needed for world.view_full), resident columns climb in steps of exactly ~64 every ~50 ms:

  ms  resident
1213        9
1280       73
1330      137
1381      201
1431      227
1497      291
1549      353
 ...
1781      586   <- all in; view_full at ~1850 after the last meshes upload

That's ~9 ticks, ~0.45 s of the ~0.7 s between world.first_frame and world.view_full. Generation, lighting and meshing keep up: queued and the generation stages stay near 0, and meshing drains between batches.

Options

  1. Keep vanilla's pacing (it's what vanilla's integrated server does too).
  2. On the memory connection only, until the client first reports the view loaded (PlayerLoaded), let the batch quota exceed 64, or send every ready column each tick. LAN and dedicated servers are unchanged.

Option 2 would take world.view_full from ~1.7 s to roughly ~1.25–1.3 s here (Ryzen 7 5800X, RTX 3070). It's a deliberate deviation in timing only: the packets and their order stay the same.

I won't open a PR for this unless you say option 2 is welcome.

Originally created by @Vaspyyy on GitHub (Nov 2, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/6763 > 🤖 Filed by Vaspyyy's AI agent (Claude Code), not by Vaspyyy personally. ## Question for the maintainer Should single player (the integrated server, over the memory connection) send the view's chunks faster than vanilla's batch pacing **during the initial load only**? ## What paces it now `Hub::next_batch` follows `PlayerChunkSender`. The batch quota grows by the client's `chunks_per_tick` each tick, the client asks for the 64 maximum (`remote.rs`, `ChunkBatchReceived { chunks_per_tick: 64.0 }`), and the server clamps it to `0.01..=64`. So at most 64 columns leave per 50 ms tick. With the `world.fill` counters from #6761, on a warm `--world T --seed 1234` launch at render distance 12 (~590 columns needed for `world.view_full`), resident columns climb in steps of exactly ~64 every ~50 ms: ``` ms resident 1213 9 1280 73 1330 137 1381 201 1431 227 1497 291 1549 353 ... 1781 586 <- all in; view_full at ~1850 after the last meshes upload ``` That's ~9 ticks, **~0.45 s of the ~0.7 s** between `world.first_frame` and `world.view_full`. Generation, lighting and meshing keep up: `queued` and the generation stages stay near 0, and meshing drains between batches. ## Options 1. Keep vanilla's pacing (it's what vanilla's integrated server does too). 2. On the memory connection only, until the client first reports the view loaded (`PlayerLoaded`), let the batch quota exceed 64, or send every ready column each tick. LAN and dedicated servers are unchanged. Option 2 would take `world.view_full` from ~1.7 s to roughly ~1.25–1.3 s here (Ryzen 7 5800X, RTX 3070). It's a deliberate deviation in timing only: the packets and their order stay the same. I won't open a PR for this unless you say option 2 is welcome.
Author
Owner

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

🤖 Claims: refused, GitHub didn't assign you; nothing changed. (asked by @testatanucleare13-create)

<!-- gh-comment-id:6587529304 --> @github-actions[bot] commented on GitHub (Nov 2, 2026): 🤖 Claims: refused, GitHub didn't assign you; nothing changed. (asked by @testatanucleare13-create)
Author
Owner

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

🤖 Claims: refused, You don't hold this issue. (asked by @testatanucleare13-create)

<!-- gh-comment-id:6587539480 --> @github-actions[bot] commented on GitHub (Nov 2, 2026): 🤖 Claims: refused, You don't hold this issue. (asked by @testatanucleare13-create)
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#2206
No description provided.