[PR #775] [CLOSED] Startup stage 3a: split shared world resources into core and rest (#712) #2802

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

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


📝 Commits (4)

  • 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)

📊 Changes

142 files changed (+1508 additions, -1061 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 (+535 -280)
📝 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)
📝 crates/horizon-client/src/game/backdrop.rs (+6 -6)

...and 80 more files

📄 Description

What and why

Stage 3a of #712, stacked on #774 (Stage 2c). Converts the shared world resources into WorldCore and OnceLock<WorldRest> and migrates game call sites to accessors. The loader still fills both phases before returning, so startup and world behavior are unchanged.

The accessor migration spans the existing game modules in one mechanical pass. Pack resources retain their existing per-game ownership so resource pack reloads continue to work.

Stack order: #747 → #757 → #774 → 3a → 3b → 3c. This fork cannot target an unmerged fork branch in the upstream repository; the upstream diff includes its unmerged ancestors until they land. The layer itself is 05ecd873..42d65465.

Vanilla reference

Horizon-only resource ownership refactor; no gameplay rules change.

Self-check

cargo check -p horizon-client, the fast build, and both full client test invocations passed (913 tests; 13 ignored). The three-frame offscreen smoke passed with no error, player or chunks; peak RSS before phasing was 762,536 KiB.

The initial self-check below encountered a shared-target metadata collision: 3a's check read 3b's newer telemetry schema. A subsequent isolated cargo clippy --workspace --all-targets --locked -- -D warnings passed in a fresh target directory. The full parity selection includes 313 harnesses from the unmerged stack; it was bounded at 30 minutes, with active_effects, active_effect_tick and anchor recorded as passing. Remaining parity coverage is pending, so this stays a draft.

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

Check Result
Scope ⚠️ 142 files, +1508 −1061; 2556 lines of code: over 500, split it if it can ship in parts
Cargo.lock ✅ unchanged
Public tree ✅ (1 s)
Python tests ➖ no Python change
rustfmt ✅ (7 s)
clippy ❌ failed (2 min 39 s)
tests: horizon-client ✅ 913 passed (13 min 35 s)
tokens.css up to date ➖ theme untouched
launcher rustfmt ➖ launcher untouched
launcher clippy ➖ launcher untouched
launcher tests ➖ launcher untouched
Parity ❌ 313 affected, (30 min 16 s)
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/775 **Author:** [@rdbtCVS](https://github.com/rdbtCVS) **Created:** 10/17/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `startup/stage-3a` --- ### 📝 Commits (4) - [`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) ### 📊 Changes **142 files changed** (+1508 additions, -1061 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` (+535 -280) 📝 `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) 📝 `crates/horizon-client/src/game/backdrop.rs` (+6 -6) _...and 80 more files_ </details> ### 📄 Description ## What and why Stage 3a of #712, stacked on #774 (Stage 2c). Converts the shared world resources into `WorldCore` and `OnceLock<WorldRest>` and migrates game call sites to accessors. The loader still fills both phases before returning, so startup and world behavior are unchanged. The accessor migration spans the existing game modules in one mechanical pass. Pack resources retain their existing per-game ownership so resource pack reloads continue to work. Stack order: #747 → #757 → #774 → **3a** → 3b → 3c. This fork cannot target an unmerged fork branch in the upstream repository; the upstream diff includes its unmerged ancestors until they land. The layer itself is `05ecd873..42d65465`. ## Vanilla reference Horizon-only resource ownership refactor; no gameplay rules change. ## Self-check `cargo check -p horizon-client`, the fast build, and both full client test invocations passed (913 tests; 13 ignored). The three-frame offscreen smoke passed with no error, player or chunks; peak RSS before phasing was 762,536 KiB. The initial self-check below encountered a shared-target metadata collision: 3a's check read 3b's newer telemetry schema. A subsequent **isolated** `cargo clippy --workspace --all-targets --locked -- -D warnings` passed in a fresh target directory. The full parity selection includes 313 harnesses from the unmerged stack; it was bounded at 30 minutes, with `active_effects`, `active_effect_tick` and `anchor` recorded as passing. Remaining parity coverage is pending, so this stays a draft. **pr_ready** (`tools/pr_ready.py` on archlinux, against origin/main at 4be192a4b, 46 min 39 s) | Check | Result | | --- | --- | | Scope | ⚠️ 142 files, +1508 −1061; 2556 lines of code: over 500, split it if it can ship in parts | | Cargo.lock | ✅ unchanged | | Public tree | ✅ (1 s) | | Python tests | ➖ no Python change | | rustfmt | ✅ (7 s) | | clippy | ❌ failed (2 min 39 s) | | tests: horizon-client | ✅ 913 passed (13 min 35 s) | | tokens.css up to date | ➖ theme untouched | | launcher rustfmt | ➖ launcher untouched | | launcher clippy | ➖ launcher untouched | | launcher tests | ➖ launcher untouched | | Parity | ❌ 313 affected, (30 min 16 s) | | 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#2802
No description provided.