[PR #778] [CLOSED] Startup stage 3c: show loading progress while joining world resources (#712) #2803

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

📋 Pull Request Information

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

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


📝 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

151 files changed (+1928 additions, -1090 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 (+855 -305)
📝 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

Stage 3c of #712, stacked on #776. If Play, Create or Connect is requested before WorldRest finishes, the client stores the action and shows the existing LevelLoadingScreen progress while continuing to process redraw, resize and close events. After the worker finishes, the action resumes with fully loaded resources; integrated servers receive the shared resource handle only after the join.

The tail is polled without blocking the event loop. Worker errors, panics and a 120-second deadline end loading with an error. Dedicated and synchronous harness paths retain their fully loaded entry behavior. Tests cover a worker deliberately held on a channel, the timeout, worker failure and worker panic.

Stack order: #774 → #775 → #776 → 3c. The layer itself starts after 4e854f8e. The upstream diff includes its unmerged ancestors until they land.

Vanilla reference

Horizon-only startup scheduling, reusing the existing level-loading screen. No gameplay rules change.

Self-check

Fast build and the final self-check's Rust checks passed: workspace clippy with warnings denied, 949 client/telemetry tests, launcher formatting/clippy and 58 launcher tests. The final code was checked before the screenshots and measurement notes were added; the public-tree check was run again after those artifacts.

Focused runtime probes passed with audio disabled:

  • Hold the first tail read on a FIFO, launch directly into singleplayer, resize the still-redrawing loading screen, then release it. Entry completed with a player, 85 chunks, 529 meshed sections and no error; clean exit.
  • Integrated-server entry waited for the tail, joined and rendered a world. A separate client also joined a local dedicated server after its tail completed; client and server exited cleanly.
  • Dedicated startup reached Done, accepted list and stop, saved and exited without constructing a renderer.
  • The live backdrop logged title backdrop ready; world rest ready: false. Video options opened during the same delayed-tail condition.
  • Three-frame offscreen smoke output retained its structure and values apart from elapsed time. Synchronous peak RSS was 762,536 → 774,080 KiB (+1.5%). Warm 60-second progressive-title probes were 1,031,948 → 1,145,776 KiB (+11%); these were contended runs and need a quiet-machine comparison before merging.

The full origin/main parity selection covers 313 harnesses including Stage 2 ancestors. Its local run was bounded at 30 minutes, recording passes for active_effects, active_effect_tick and anchor; the remaining parity coverage is pending. This stack remains draft for that coverage and the progressive RSS follow-up.

Screenshots

While the tail was held unavailable, after resizing the window:

Loading before rest

After releasing the tail and entering the world:

World after rest

pr_ready (tools/pr_ready.py on archlinux, against origin/main at 4be192a4b, 18 min 46 s)

Check Result
Scope ⚠️ 148 files, +1912 −1090; 2972 lines of code: over 500, split it if it can ship in parts; mixes game, launcher
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ➖ no Python change
rustfmt ✅ (9 s)
clippy ✅ (9 min 0 s)
tests: horizon-client, horizon-telemetry ✅ 949 passed (8 min 52 s)
tokens.css up to date ➖ theme untouched
launcher rustfmt ✅
launcher clippy ✅ (25 s)
launcher tests ✅ 58 passed (19 s)
Parity ➖ not run (no vanilla data here): 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)

🔄 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/778 **Author:** [@rdbtCVS](https://github.com/rdbtCVS) **Created:** 10/17/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `startup/stage-3c` --- ### 📝 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 **151 files changed** (+1928 additions, -1090 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` (+855 -305) 📝 `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 Stage 3c of #712, stacked on #776. If Play, Create or Connect is requested before WorldRest finishes, the client stores the action and shows the existing LevelLoadingScreen progress while continuing to process redraw, resize and close events. After the worker finishes, the action resumes with fully loaded resources; integrated servers receive the shared resource handle only after the join. The tail is polled without blocking the event loop. Worker errors, panics and a 120-second deadline end loading with an error. Dedicated and synchronous harness paths retain their fully loaded entry behavior. Tests cover a worker deliberately held on a channel, the timeout, worker failure and worker panic. Stack order: #774 → #775 → #776 → **3c**. The layer itself starts after `4e854f8e`. The upstream diff includes its unmerged ancestors until they land. ## Vanilla reference Horizon-only startup scheduling, reusing the existing level-loading screen. No gameplay rules change. ## Self-check Fast build and the final self-check's Rust checks passed: workspace clippy with warnings denied, 949 client/telemetry tests, launcher formatting/clippy and 58 launcher tests. The final code was checked before the screenshots and measurement notes were added; the public-tree check was run again after those artifacts. Focused runtime probes passed with audio disabled: - Hold the first tail read on a FIFO, launch directly into singleplayer, resize the still-redrawing loading screen, then release it. Entry completed with a player, 85 chunks, 529 meshed sections and no error; clean exit. - Integrated-server entry waited for the tail, joined and rendered a world. A separate client also joined a local dedicated server after its tail completed; client and server exited cleanly. - Dedicated startup reached `Done`, accepted `list` and `stop`, saved and exited without constructing a renderer. - The live backdrop logged `title backdrop ready; world rest ready: false`. Video options opened during the same delayed-tail condition. - Three-frame offscreen smoke output retained its structure and values apart from elapsed time. Synchronous peak RSS was 762,536 → 774,080 KiB (+1.5%). Warm 60-second progressive-title probes were 1,031,948 → 1,145,776 KiB (+11%); these were contended runs and need a quiet-machine comparison before merging. The full `origin/main` parity selection covers 313 harnesses including Stage 2 ancestors. Its local run was bounded at 30 minutes, recording passes for `active_effects`, `active_effect_tick` and `anchor`; the remaining parity coverage is pending. This stack remains draft for that coverage and the progressive RSS follow-up. ## Screenshots While the tail was held unavailable, after resizing the window: ![Loading before rest](https://raw.githubusercontent.com/rdbtCVS/horizon/startup/stage-3c/benchmarks/startup-stage-3-20261018/loading-before-rest.png) After releasing the tail and entering the world: ![World after rest](https://raw.githubusercontent.com/rdbtCVS/horizon/startup/stage-3c/benchmarks/startup-stage-3-20261018/world-after-rest.png) **pr_ready** (`tools/pr_ready.py` on archlinux, against origin/main at 4be192a4b, 18 min 46 s) | Check | Result | | --- | --- | | Scope | ⚠️ 148 files, +1912 −1090; 2972 lines of code: over 500, split it if it can ship in parts; mixes game, launcher | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ➖ no Python change | | rustfmt | ✅ (9 s) | | clippy | ✅ (9 min 0 s) | | tests: horizon-client, horizon-telemetry | ✅ 949 passed (8 min 52 s) | | tokens.css up to date | ➖ theme untouched | | launcher rustfmt | ✅ | | launcher clippy | ✅ (25 s) | | launcher tests | ✅ 58 passed (19 s) | | Parity | ➖ not run (no vanilla data here): 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) | --- <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:10 +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#2803
No description provided.