[PR #878] [MERGED] Startup: make the menu interactive while world resources load (#712) #2880

Closed
opened 2026-11-02 15:59:48 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/878
Author: @rdbtCVS
Created: 10/18/2026
Status: ✅ Merged
Merged: 10/18/2026
Merged by: @ludovic111

Base: main ← Head: startup/combined-progressive-loading-20261018


📝 Commits (10+)

  • 238278a Startup: keep the title's atlas and panorama in one UI bundle (#712)
  • e25672e Startup: split block assets into block data and render assets (#712)
  • 05ecd87 Startup: show the title before the world bundle finishes loading (#712)
  • 42d6546 Startup stage 3a: split shared resources into core and rest (#712)
  • d9686fa Startup stage 3b: publish world core before the simulation tail (#712)
  • a3cf97f Build the core renderer before starting audio
  • 4e854f8 Format launcher assertions for the shared telemetry checks
  • a5edc14 Startup stage 3c: keep world entry responsive while joining resources (#712)
  • 08532d6 Report the active tail phase while world entry waits
  • 33c6578 Log whether the tail is ready when the live backdrop fades in

📊 Changes

150 files changed (+2792 additions, -1156 deletions)

View changed files

📝 crates/horizon-client/examples/arrow_probe.rs (+3 -2)
📝 crates/horizon-client/examples/auto_jump_probe.rs (+3 -2)
📝 crates/horizon-client/examples/block_particles_fixture.rs (+2 -0)
📝 crates/horizon-client/examples/breaking_fixture.rs (+3 -1)
📝 crates/horizon-client/examples/chunk_bench.rs (+3 -0)
📝 crates/horizon-client/examples/model_library_bench.rs (+3 -2)
📝 crates/horizon-client/examples/resource_memory.rs (+5 -3)
📝 crates/horizon-client/examples/scene_collision_probe.rs (+3 -2)
📝 crates/horizon-client/examples/scene_motion_probe.rs (+3 -2)
📝 crates/horizon-client/examples/section_mesh_fixture.rs (+7 -3)
📝 crates/horizon-client/examples/streaming_bench.rs (+3 -0)
📝 crates/horizon-client/src/assets.rs (+18 -25)
📝 crates/horizon-client/src/entities.rs (+2 -1)
📝 crates/horizon-client/src/fog.rs (+1 -0)
📝 crates/horizon-client/src/game.rs (+890 -353)
📝 crates/horizon-client/src/game/advancements.rs (+15 -15)
📝 crates/horizon-client/src/game/advancements_screen.rs (+9 -9)
📝 crates/horizon-client/src/game/agent.rs (+31 -16)
📝 crates/horizon-client/src/game/allays.rs (+5 -1)
📝 crates/horizon-client/src/game/armor_stands.rs (+15 -10)

...and 80 more files

📄 Description

What and why

The menu used to wait for the full world resource bundle before accepting input. This PR makes the title interactive as soon as its atlas and panorama are ready, while world resources continue loading on a worker. Play and Connect show progress while waiting for the remaining resources; Escape cancels queued entry.

Related to #712.

  • Keep the title atlas and panorama together in a UI bundle.
  • Split block data from render assets, and shared world resources into core and rest.
  • Publish menu artwork first, then core resources; build the core renderer before audio and gate the live backdrop on renderer readiness.
  • Keep world browsing/creation, server entry and options interactive during loading, preserving menu state and queued actions through the core handoff.
  • Poll resource completion without blocking the event loop, report the active loading phase, and propagate failures.
  • Serialize pack reload generations and publish language/UI metadata using current menu settings.

Synchronous harness and dedicated startup still return fully loaded resources. Menu audio and controller navigation start at the core handoff.

The performance report is in docs/performance/startup-stage-3.md. They include the observed memory increase and the limits of the startup measurements.

Vanilla reference

Horizon-only startup scheduling. Reuses the existing Title/OptionsUi widgets and their world-management, field-editing and options behavior; no gameplay rules change.

Self-check

Merge conflicts with main at 6c078b285 were resolved in de6f15e6. The resolution preserves the current surface-height lookup and consumable behavior, adapting those paths and the new consumable module to phased resource access.

cargo check --locked -p horizon-client --all-targets and git diff --check passed. The repository self-check below passed after the merge. Parity harnesses are deferred to CI.

pr_ready (tools/pr_ready.py --quick on archlinux, against origin/main at 6c078b285, 7 min 7 s)

Check Result
Scope ⚠️ 150 files, +2792 −1156; 3896 lines of code: over 500, split it if it can ship in parts
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ➖ no Python change
rustfmt ✅ (4 s)
clippy ✅ (34 s)
tests: horizon-client, horizon-telemetry ✅ 1004 passed (6 min 11 s)
tokens.css up to date ➖ theme untouched
launcher rustfmt ✅ (1 s)
launcher clippy ✅ (9 s)
launcher tests ✅ 59 passed (7 s)
Parity ➖ not run (--quick): CI's parity job picks the affected harnesses
Label player-facing: feature if players get something new, no label for a fix (release-now if urgent)

A prior windowed smoke used an isolated Xvfb display with prepared private resources and audio disabled: core loading was held at a FIFO while opening options, entering a Direct Connect address, queuing Connect, cancelling with Escape, and releasing the loader. The core/rest handoff preserved the options screen and address. That smoke and the performance/memory report predate this merge resolution.

Parity and the controlled memory comparison described in the performance report remain outstanding.


🔄 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/878 **Author:** [@rdbtCVS](https://github.com/rdbtCVS) **Created:** 10/18/2026 **Status:** ✅ Merged **Merged:** 10/18/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `startup/combined-progressive-loading-20261018` --- ### 📝 Commits (10+) - [`238278a`](https://github.com/horizon-rust/horizon/commit/238278aa41e208364b394750a3c41c855d07e530) Startup: keep the title's atlas and panorama in one UI bundle (#712) - [`e25672e`](https://github.com/horizon-rust/horizon/commit/e25672ed4f9df646317be31e6dda22dfea742f57) Startup: split block assets into block data and render assets (#712) - [`05ecd87`](https://github.com/horizon-rust/horizon/commit/05ecd873d4949a504c5ad3f1ad9545dd7b3f02e8) Startup: show the title before the world bundle finishes loading (#712) - [`42d6546`](https://github.com/horizon-rust/horizon/commit/42d65465a4e18b0f99a6814b4ce33b17d75f34da) Startup stage 3a: split shared resources into core and rest (#712) - [`d9686fa`](https://github.com/horizon-rust/horizon/commit/d9686faf3596eb160b188fc0322e6d5a50b629ac) Startup stage 3b: publish world core before the simulation tail (#712) - [`a3cf97f`](https://github.com/horizon-rust/horizon/commit/a3cf97f2fafd31c69bf16cdbb5f5fa19ccac5324) Build the core renderer before starting audio - [`4e854f8`](https://github.com/horizon-rust/horizon/commit/4e854f8ee380457c03ae67511f05cd97b952bc9a) Format launcher assertions for the shared telemetry checks - [`a5edc14`](https://github.com/horizon-rust/horizon/commit/a5edc14b973a266c1b9b5b2ef5760e54ecf8d980) Startup stage 3c: keep world entry responsive while joining resources (#712) - [`08532d6`](https://github.com/horizon-rust/horizon/commit/08532d6b1fee64057d14f9f5d121f3c70c7a0022) Report the active tail phase while world entry waits - [`33c6578`](https://github.com/horizon-rust/horizon/commit/33c6578f5a6d44a1f15043093779e8d6adf099bc) Log whether the tail is ready when the live backdrop fades in ### 📊 Changes **150 files changed** (+2792 additions, -1156 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/examples/arrow_probe.rs` (+3 -2) 📝 `crates/horizon-client/examples/auto_jump_probe.rs` (+3 -2) 📝 `crates/horizon-client/examples/block_particles_fixture.rs` (+2 -0) 📝 `crates/horizon-client/examples/breaking_fixture.rs` (+3 -1) 📝 `crates/horizon-client/examples/chunk_bench.rs` (+3 -0) 📝 `crates/horizon-client/examples/model_library_bench.rs` (+3 -2) 📝 `crates/horizon-client/examples/resource_memory.rs` (+5 -3) 📝 `crates/horizon-client/examples/scene_collision_probe.rs` (+3 -2) 📝 `crates/horizon-client/examples/scene_motion_probe.rs` (+3 -2) 📝 `crates/horizon-client/examples/section_mesh_fixture.rs` (+7 -3) 📝 `crates/horizon-client/examples/streaming_bench.rs` (+3 -0) 📝 `crates/horizon-client/src/assets.rs` (+18 -25) 📝 `crates/horizon-client/src/entities.rs` (+2 -1) 📝 `crates/horizon-client/src/fog.rs` (+1 -0) 📝 `crates/horizon-client/src/game.rs` (+890 -353) 📝 `crates/horizon-client/src/game/advancements.rs` (+15 -15) 📝 `crates/horizon-client/src/game/advancements_screen.rs` (+9 -9) 📝 `crates/horizon-client/src/game/agent.rs` (+31 -16) 📝 `crates/horizon-client/src/game/allays.rs` (+5 -1) 📝 `crates/horizon-client/src/game/armor_stands.rs` (+15 -10) _...and 80 more files_ </details> ### 📄 Description ## What and why The menu used to wait for the full world resource bundle before accepting input. This PR makes the title interactive as soon as its atlas and panorama are ready, while world resources continue loading on a worker. Play and Connect show progress while waiting for the remaining resources; Escape cancels queued entry. Related to #712. - Keep the title atlas and panorama together in a UI bundle. - Split block data from render assets, and shared world resources into core and rest. - Publish menu artwork first, then core resources; build the core renderer before audio and gate the live backdrop on renderer readiness. - Keep world browsing/creation, server entry and options interactive during loading, preserving menu state and queued actions through the core handoff. - Poll resource completion without blocking the event loop, report the active loading phase, and propagate failures. - Serialize pack reload generations and publish language/UI metadata using current menu settings. Synchronous harness and dedicated startup still return fully loaded resources. Menu audio and controller navigation start at the core handoff. The performance report is in `docs/performance/startup-stage-3.md`. They include the observed memory increase and the limits of the startup measurements. ## Vanilla reference Horizon-only startup scheduling. Reuses the existing `Title`/`OptionsUi` widgets and their world-management, field-editing and options behavior; no gameplay rules change. ## Self-check Merge conflicts with `main` at `6c078b285` were resolved in `de6f15e6`. The resolution preserves the current surface-height lookup and consumable behavior, adapting those paths and the new consumable module to phased resource access. `cargo check --locked -p horizon-client --all-targets` and `git diff --check` passed. The repository self-check below passed after the merge. Parity harnesses are deferred to CI. **pr_ready** (`tools/pr_ready.py --quick` on archlinux, against origin/main at 6c078b285, 7 min 7 s) | Check | Result | | --- | --- | | Scope | ⚠️ 150 files, +2792 −1156; 3896 lines of code: over 500, split it if it can ship in parts | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ➖ no Python change | | rustfmt | ✅ (4 s) | | clippy | ✅ (34 s) | | tests: horizon-client, horizon-telemetry | ✅ 1004 passed (6 min 11 s) | | tokens.css up to date | ➖ theme untouched | | launcher rustfmt | ✅ (1 s) | | launcher clippy | ✅ (9 s) | | launcher tests | ✅ 59 passed (7 s) | | Parity | ➖ not run (--quick): CI's parity job picks the affected harnesses | | Label | player-facing: `feature` if players get something new, no label for a fix (`release-now` if urgent) | A prior windowed smoke used an isolated Xvfb display with prepared private resources and audio disabled: core loading was held at a FIFO while opening options, entering a Direct Connect address, queuing Connect, cancelling with Escape, and releasing the loader. The core/rest handoff preserved the options screen and address. That smoke and the performance/memory report predate this merge resolution. Parity and the controlled memory comparison described in the performance report remain outstanding. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-02 15:59:48 +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#2880
No description provided.