[PR #774] [CLOSED] Startup stage 2c: show the title before the world bundle finishes loading (#712) #2800

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

📋 Pull Request Information

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

Base: main ← Head: t3code/08bad3fd-2c


📝 Commits (3)

  • 7f1cf15 Startup: keep the title's atlas and panorama in one UI bundle (#712)
  • 977a3e1 Startup: split block assets into block data and render assets (#712)
  • 753533d Startup: show the title before the world bundle finishes loading (#712)

📊 Changes

82 files changed (+614 additions, -360 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/game.rs (+272 -117)
📝 crates/horizon-client/src/game/advancements.rs (+3 -3)
📝 crates/horizon-client/src/game/advancements_screen.rs (+9 -9)
📝 crates/horizon-client/src/game/armor_stands.rs (+3 -3)
📝 crates/horizon-client/src/game/beacon.rs (+11 -5)
📝 crates/horizon-client/src/game/boats.rs (+1 -0)
📝 crates/horizon-client/src/game/books.rs (+3 -3)

...and 62 more files

📄 Description

Stage 2 of #712, sub-step 2c: show the title screen as soon as the menu bundle is ready, instead of waiting for the whole world bundle. The loading screen behind it now draws the real HUD atlas and title panorama.

Stacked on #757 (2b), itself stacked on #747 (2a). Cross-repo PRs cannot target a fork branch, so this diff also shows 2a and 2b until they merge.

What changed

  • load_resources is now two stages. Stage A builds UiResources (atlas + panorama) and hands it to the caller; Stage B builds the rest of the world bundle. A loading-screen launch receives stage A at once and rebuilds its renderer with the real atlas and panorama; the synchronous launch (harnesses, dedicated) carries it in Loaded as before.
  • The loader publishes through a small LoaderMsg::{Ui, Done} channel. The loading screen keeps its own UiResources and draws the progress bar over the title panorama while stage B runs.
  • The world bundle's independent reads — block facts, biomes and the environment — now run together in a std::thread::scope, bounded by horizon.worker_threads() (sequential when it is 1).
  • Telemetry: mark_ui_ready() records when the menu bundle is ready; to_title_ms measures the menu, not the world bundle loaded behind it. The synchronous path is unchanged (no early mark).
  • New log lines (loading-screen launch only): UI bundle ready after N ms and world bundle ready after N ms.
  • The synchronous path's behaviour and output are unchanged; no new crates.

Verification

  • cargo test -p horizon-client --locked: 913 passed.
  • cargo clippy -p horizon-client --tests --examples --locked -- -D warnings: clean.
  • Fast build + offscreen smoke (--offscreen --frames 3): exit 0.
  • tools/pr_ready.py --base origin/main: rustfmt, clippy, tests and public tree pass; Cargo.lock unchanged; parity is CI's job here (no vanilla data locally).

Contributes to #712.


🔄 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/774 **Author:** [@rdbtCVS](https://github.com/rdbtCVS) **Created:** 10/17/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `t3code/08bad3fd-2c` --- ### 📝 Commits (3) - [`7f1cf15`](https://github.com/horizon-rust/horizon/commit/7f1cf151c1798c18929c0ef97930a8c3cd649063) Startup: keep the title's atlas and panorama in one UI bundle (#712) - [`977a3e1`](https://github.com/horizon-rust/horizon/commit/977a3e12ba3d51e1cb81266c19da8521b87aaf0e) Startup: split block assets into block data and render assets (#712) - [`753533d`](https://github.com/horizon-rust/horizon/commit/753533dcbf5563a39f47bec35299e75488f18121) Startup: show the title before the world bundle finishes loading (#712) ### 📊 Changes **82 files changed** (+614 additions, -360 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/game.rs` (+272 -117) 📝 `crates/horizon-client/src/game/advancements.rs` (+3 -3) 📝 `crates/horizon-client/src/game/advancements_screen.rs` (+9 -9) 📝 `crates/horizon-client/src/game/armor_stands.rs` (+3 -3) 📝 `crates/horizon-client/src/game/beacon.rs` (+11 -5) 📝 `crates/horizon-client/src/game/boats.rs` (+1 -0) 📝 `crates/horizon-client/src/game/books.rs` (+3 -3) _...and 62 more files_ </details> ### 📄 Description Stage 2 of #712, sub-step **2c**: show the title screen as soon as the **menu bundle** is ready, instead of waiting for the whole world bundle. The loading screen behind it now draws the real HUD atlas and title panorama. > Stacked on #757 (2b), itself stacked on #747 (2a). Cross-repo PRs cannot target a fork branch, so this diff also shows 2a and 2b until they merge. ## What changed - `load_resources` is now two stages. **Stage A** builds `UiResources` (atlas + panorama) and hands it to the caller; **Stage B** builds the rest of the world bundle. A loading-screen launch receives stage A at once and rebuilds its renderer with the real atlas and panorama; the synchronous launch (harnesses, dedicated) carries it in `Loaded` as before. - The loader publishes through a small `LoaderMsg::{Ui, Done}` channel. The loading screen keeps its own `UiResources` and draws the progress bar over the title panorama while stage B runs. - The world bundle's independent reads — block facts, biomes and the environment — now run together in a `std::thread::scope`, bounded by `horizon.worker_threads()` (sequential when it is 1). - Telemetry: `mark_ui_ready()` records when the menu bundle is ready; `to_title_ms` measures the menu, not the world bundle loaded behind it. The synchronous path is unchanged (no early mark). - New log lines (loading-screen launch only): `UI bundle ready after N ms` and `world bundle ready after N ms`. - The synchronous path's behaviour and output are unchanged; no new crates. ## Verification - `cargo test -p horizon-client --locked`: 913 passed. - `cargo clippy -p horizon-client --tests --examples --locked -- -D warnings`: clean. - Fast build + offscreen smoke (`--offscreen --frames 3`): exit 0. - `tools/pr_ready.py --base origin/main`: rustfmt, clippy, tests and public tree pass; `Cargo.lock` unchanged; parity is CI's job here (no vanilla data locally). Contributes to #712. --- <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:09 +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#2800
No description provided.