[PR #785] [CLOSED] Startup: make the menu interactive while world resources load (#712) #2807

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/785
Author: @rdbtCVS
Created: 10/17/2026
Status: ❌ Closed

Base: main ← Head: startup/stage-3d


📝 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

152 files changed (+2786 additions, -1139 deletions)

View changed files

➕ benchmarks/startup-stage-3-20261018/loading-before-rest.png (+0 -0)
➕ benchmarks/startup-stage-3-20261018/video-before-rest.png (+0 -0)
➕ benchmarks/startup-stage-3-20261018/world-after-rest.png (+0 -0)
📝 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 (+889 -351)
📝 crates/horizon-client/src/game/advancements.rs (+15 -15)
📝 crates/horizon-client/src/game/advancements_screen.rs (+9 -9)

...and 80 more files

📄 Description

What and why

The menu used to wait for the full world resource bundle before accepting input. This combined 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.

It consolidates stages 2a, 2b, 2c, 3a, 3b, 3c and 3d from #747, #757, #774, #775, #776, #778 and #785. The implementation and required UI-bundle ancestor are included here; none of those PRs needs to merge separately. 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 and screenshots from #778 are preserved 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

Scoped client validation:

  • cargo fmt --all -- --check — passed.
  • python3 tools/check_public_tree.py and git diff --check — passed.
  • cargo clippy --locked -p horizon-client --lib --bin horizon-client -- -D warnings — passed.
  • cargo test --locked -p horizon-client --lib --bin horizon-client -- --test-threads=1 — 899 passed, 13 ignored.
  • cargo build --locked -p horizon-client --bin horizon-client — passed.

A parallel run also passed all 899 tests. A repeat parallel run failed the unchanged classic_video_gui_scale_cycles_on_press_without_dragging test (GUI scale 2 versus expected 0); the complete serial run passed. Full-workspace pr_ready.py and private parity harnesses were not run locally.

Windowed smoke on an isolated Xvfb display with prepared private resources and audio disabled: held the core loader at a FIFO, opened options, entered a Direct Connect address, queued Connect, cancelled with Escape, then released the loader. Verified core/rest completion, preservation of the Audio options screen and address through handoff, and normal Quit. The blocked-run timestamps are not startup benchmarks.

Consolidation validation

Stage 2a is included as rebased commit 238278aa; its range-diff against #747 shows adaptations to intervening chat and minecart changes. Stages 2b and 2c were checked with git range-diff against their rebased commits in this branch; their patches match. Stage 3a and 3b heads and the stage 3c implementation are ancestors of the stage 3d head. The two later stage 3c verification/documentation commits were cherry-picked on top, preserving their report and screenshots without changing runtime code.

For this consolidation, git diff --check and python3 tools/check_public_tree.py passed. The runtime tests and smoke results above are the existing stage 3d validation; they were not rerun for the documentation-only consolidation commits. GitHub currently reports conflicts with main; resolving those and completing parity/memory validation remain necessary before merge.


🔄 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/785 **Author:** [@rdbtCVS](https://github.com/rdbtCVS) **Created:** 10/17/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `startup/stage-3d` --- ### 📝 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 **152 files changed** (+2786 additions, -1139 deletions) <details> <summary>View changed files</summary> ➕ `benchmarks/startup-stage-3-20261018/loading-before-rest.png` (+0 -0) ➕ `benchmarks/startup-stage-3-20261018/video-before-rest.png` (+0 -0) ➕ `benchmarks/startup-stage-3-20261018/world-after-rest.png` (+0 -0) 📝 `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` (+889 -351) 📝 `crates/horizon-client/src/game/advancements.rs` (+15 -15) 📝 `crates/horizon-client/src/game/advancements_screen.rs` (+9 -9) _...and 80 more files_ </details> ### 📄 Description ## What and why The menu used to wait for the full world resource bundle before accepting input. This combined 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. It consolidates stages 2a, 2b, 2c, 3a, 3b, 3c and 3d from #747, #757, #774, #775, #776, #778 and #785. The implementation and required UI-bundle ancestor are included here; none of those PRs needs to merge separately. 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 and screenshots from #778 are preserved 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 Scoped client validation: - `cargo fmt --all -- --check` — passed. - `python3 tools/check_public_tree.py` and `git diff --check` — passed. - `cargo clippy --locked -p horizon-client --lib --bin horizon-client -- -D warnings` — passed. - `cargo test --locked -p horizon-client --lib --bin horizon-client -- --test-threads=1` — 899 passed, 13 ignored. - `cargo build --locked -p horizon-client --bin horizon-client` — passed. A parallel run also passed all 899 tests. A repeat parallel run failed the unchanged `classic_video_gui_scale_cycles_on_press_without_dragging` test (GUI scale 2 versus expected 0); the complete serial run passed. Full-workspace `pr_ready.py` and private parity harnesses were not run locally. Windowed smoke on an isolated Xvfb display with prepared private resources and audio disabled: held the core loader at a FIFO, opened options, entered a Direct Connect address, queued Connect, cancelled with Escape, then released the loader. Verified core/rest completion, preservation of the Audio options screen and address through handoff, and normal Quit. The blocked-run timestamps are not startup benchmarks. ## Consolidation validation Stage 2a is included as rebased commit `238278aa`; its range-diff against #747 shows adaptations to intervening chat and minecart changes. Stages 2b and 2c were checked with `git range-diff` against their rebased commits in this branch; their patches match. Stage 3a and 3b heads and the stage 3c implementation are ancestors of the stage 3d head. The two later stage 3c verification/documentation commits were cherry-picked on top, preserving their report and screenshots without changing runtime code. For this consolidation, `git diff --check` and `python3 tools/check_public_tree.py` passed. The runtime tests and smoke results above are the existing stage 3d validation; they were not rerun for the documentation-only consolidation commits. GitHub currently reports conflicts with `main`; resolving those and completing parity/memory validation remain necessary before merge. --- <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:13 +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#2807
No description provided.