[PR #6751] [CLOSED] Give an opening world's mesh uploads a longer slice #7070

Closed
opened 2026-11-03 06:33:15 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/6751
Author: @MSedgeMC
Created: 11/2/2026
Status: ❌ Closed

Base: main ← Head: fix/arriving-upload-slice


📝 Commits (1)

  • 0878125 Upload an opening world's finished meshes for a longer slice

📊 Changes

1 file changed (+10 additions, -1 deletions)

View changed files

📝 crates/horizon-client/src/game.rs (+10 -1)

📄 Description

Without the player's Chunk Updates / Upload Budget, a frame uploads chunk meshes until
AUTO_UPLOAD_TIME (2 ms) of the frame has gone, at least one mesh per frame. During world open
that queue is the thing holding world.view_full back: by the time every column of the view is
resident, roughly 1300 meshes can still be waiting, and they then drain eight to ten per frame.

The game already computes arriving in the same function (ViewArrival::arriving(view, now, has) or a remote backlog) to hold the far terrain back. While it is true, the slice is now
AUTO_UPLOAD_TIME_ARRIVING (6 ms); everywhere else it stays 2 ms, so nothing about play,
edits or a loaded view changes.

Proven: cargo check -q -p horizon-client --lib clean and cargo clippy -q -p horizon-client --lib clean (no warnings) on the build VM; rustfmt --edition 2024 --check clean.

Not proven: the timing. This box renders with llvmpipe and a single-run tools/startup_trace.py --world ... --seed 1234 varied by 2.7 s between two runs of the same binary, so I could not
measure a difference I would stand behind - the numbers to reproduce are the report's, six
alternating runs per build on a real GPU (world.view_full median, 2 ms build against this one).

This is the reporter's proposal from the issue, not an independent finding: I have only checked
that it is the same queue and the same flag they describe.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/6751 **Author:** [@MSedgeMC](https://github.com/MSedgeMC) **Created:** 11/2/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix/arriving-upload-slice` --- ### 📝 Commits (1) - [`0878125`](https://github.com/horizon-rust/horizon/commit/08781256afabfdbd3e501c3334267198383bc31f) Upload an opening world's finished meshes for a longer slice ### 📊 Changes **1 file changed** (+10 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game.rs` (+10 -1) </details> ### 📄 Description Without the player's Chunk Updates / Upload Budget, a frame uploads chunk meshes until `AUTO_UPLOAD_TIME` (2 ms) of the frame has gone, at least one mesh per frame. During world open that queue is the thing holding `world.view_full` back: by the time every column of the view is resident, roughly 1300 meshes can still be waiting, and they then drain eight to ten per frame. The game already computes `arriving` in the same function (`ViewArrival::arriving(view, now, has)` or a remote backlog) to hold the far terrain back. While it is true, the slice is now `AUTO_UPLOAD_TIME_ARRIVING` (6 ms); everywhere else it stays 2 ms, so nothing about play, edits or a loaded view changes. **Proven:** `cargo check -q -p horizon-client --lib` clean and `cargo clippy -q -p horizon-client --lib` clean (no warnings) on the build VM; `rustfmt --edition 2024 --check` clean. **Not proven:** the timing. This box renders with llvmpipe and a single-run `tools/startup_trace.py --world ... --seed 1234` varied by 2.7 s between two runs of the *same* binary, so I could not measure a difference I would stand behind - the numbers to reproduce are the report's, six alternating runs per build on a real GPU (`world.view_full` median, 2 ms build against this one). This is the reporter's proposal from the issue, not an independent finding: I have only checked that it is the same queue and the same flag they describe. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:33:15 +07:00
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#7070
No description provided.