[PR #776] [CLOSED] Startup stage 3b: publish core early and gate the live backdrop (#712) #2801

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/776
Author: @rdbtCVS
Created: 10/17/2026
Status: ❌ Closed

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


📝 Commits (7)

  • 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

📊 Changes

148 files changed (+1772 additions, -1089 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 (+727 -305)
📝 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

Stage 3b of #712, stacked on #775. Ordinary launches return WorldCore as soon as mesh/light/pack/collision/motion data is built, while a separate worker loads WorldRest. The main thread releases the loading renderer's surface and reuses its device to build the real renderer. Backdrop streaming explicitly requires that renderer; title fog no longer reads gameplay fog tables.

World entry has a bounded join in this layer, so this PR can run safely on its own. Stage 3c replaces the wait with a responsive loading screen. Worker errors, panics and the 120-second deadline propagate to the client. Dedicated, scripted, benchmark, frame-limited, control and classic-style launches retain the fully loaded synchronous path.

Adds core/rest readiness logs and optional performance fields while preserving the UI-driven title metric. The render-facts assessment and measurements are in docs/performance/startup-stage-3.md: mesh/light use a subset, but avoiding the full facts read needs a prepared render artifact and validation, left for Stage 4.

Stack order: #774 → #775 → 3b → 3c. The layer itself is 42d65465..4e854f8e. The upstream diff includes unmerged ancestors until they land.

Vanilla reference

Horizon-only startup scheduling. Gameplay resource construction and world behavior remain unchanged.

Self-check

Fast build, workspace clippy with warnings denied, all client/telemetry tests (947), launcher clippy and launcher tests (58) passed. The initial block below caught formatting in two existing launcher assertions; commit 4e854f8e applies rustfmt, and the follow-up launcher formatter check passed. The final stacked 3c self-check also passes these checks.

Runtime verification used a delayed mob-data.json read: the real renderer and backdrop started while the tail was unavailable, and Options → Video opened without joining it. Dedicated startup, console commands and clean shutdown passed without constructing a renderer. The synchronous three-frame smoke and a singleplayer world smoke both passed.

Memory is a review concern: warm 60-second title probes measured 1,031,948 KiB before and 1,145,776 KiB after phasing (about +11%) under compilation load. A quiet-machine cold/warm comparison and complete parity coverage remain pending; this stays a draft. The render-facts follow-up and detailed probe method are in the stacked verification document.

Screenshot

Video options while WorldRest was held unavailable:

Video before rest

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

Check Result
Scope ⚠️ 146 files, +1760 −1086; 2816 lines of code: over 500, split it if it can ship in parts
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ➖ no Python change
rustfmt ✅ (13 s)
clippy ✅ (10 min 35 s)
tests: horizon-client, horizon-telemetry ✅ 947 passed (7 min 44 s)
tokens.css up to date ➖ theme untouched
launcher rustfmt ❌ failed
launcher clippy ✅ (3 min 6 s)
launcher tests ✅ 58 passed (12 min 54 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/776 **Author:** [@rdbtCVS](https://github.com/rdbtCVS) **Created:** 10/17/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `startup/stage-3b` --- ### 📝 Commits (7) - [`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 ### 📊 Changes **148 files changed** (+1772 additions, -1089 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` (+727 -305) 📝 `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 Stage 3b of #712, stacked on #775. Ordinary launches return WorldCore as soon as mesh/light/pack/collision/motion data is built, while a separate worker loads WorldRest. The main thread releases the loading renderer's surface and reuses its device to build the real renderer. Backdrop streaming explicitly requires that renderer; title fog no longer reads gameplay fog tables. World entry has a bounded join in this layer, so this PR can run safely on its own. Stage 3c replaces the wait with a responsive loading screen. Worker errors, panics and the 120-second deadline propagate to the client. Dedicated, scripted, benchmark, frame-limited, control and classic-style launches retain the fully loaded synchronous path. Adds core/rest readiness logs and optional performance fields while preserving the UI-driven title metric. The render-facts assessment and measurements are in `docs/performance/startup-stage-3.md`: mesh/light use a subset, but avoiding the full facts read needs a prepared render artifact and validation, left for Stage 4. Stack order: #774 → #775 → **3b** → 3c. The layer itself is `42d65465..4e854f8e`. The upstream diff includes unmerged ancestors until they land. ## Vanilla reference Horizon-only startup scheduling. Gameplay resource construction and world behavior remain unchanged. ## Self-check Fast build, workspace clippy with warnings denied, all client/telemetry tests (947), launcher clippy and launcher tests (58) passed. The initial block below caught formatting in two existing launcher assertions; commit `4e854f8e` applies rustfmt, and the follow-up launcher formatter check passed. The final stacked 3c self-check also passes these checks. Runtime verification used a delayed `mob-data.json` read: the real renderer and backdrop started while the tail was unavailable, and Options → Video opened without joining it. Dedicated startup, console commands and clean shutdown passed without constructing a renderer. The synchronous three-frame smoke and a singleplayer world smoke both passed. Memory is a review concern: warm 60-second title probes measured 1,031,948 KiB before and 1,145,776 KiB after phasing (about +11%) under compilation load. A quiet-machine cold/warm comparison and complete parity coverage remain pending; this stays a draft. The render-facts follow-up and detailed probe method are in the stacked verification document. ## Screenshot Video options while WorldRest was held unavailable: ![Video before rest](https://raw.githubusercontent.com/rdbtCVS/horizon/startup/stage-3c/benchmarks/startup-stage-3-20261018/video-before-rest.png) **pr_ready** (`tools/pr_ready.py` on archlinux, against origin/main at 4be192a4b, 34 min 34 s) | Check | Result | | --- | --- | | Scope | ⚠️ 146 files, +1760 −1086; 2816 lines of code: over 500, split it if it can ship in parts | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ➖ no Python change | | rustfmt | ✅ (13 s) | | clippy | ✅ (10 min 35 s) | | tests: horizon-client, horizon-telemetry | ✅ 947 passed (7 min 44 s) | | tokens.css up to date | ➖ theme untouched | | launcher rustfmt | ❌ failed | | launcher clippy | ✅ (3 min 6 s) | | launcher tests | ✅ 58 passed (12 min 54 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#2801
No description provided.