[PR #1665] [MERGED] Separate world entry from authoritative world loading #3672

Closed
opened 2026-11-03 04:11:19 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/1665
Author: @rdbtCVS
Created: 10/24/2026
Status: ✅ Merged
Merged: 10/25/2026
Merged by: @ludovic111

Base: main ← Head: t3/separate-world-entry-loading


📝 Commits (1)

  • c41a053 refactor: separate client world entry from authoritative loading

📊 Changes

4 files changed (+34 additions, -15 deletions)

View changed files

📝 crates/horizon-client/src/game.rs (+11 -10)
📝 crates/horizon-client/src/game/dedicated.rs (+3 -3)
📝 crates/horizon-client/src/game/integrated.rs (+3 -2)
📝 crates/horizon-client/src/game/world_loading.rs (+17 -0)

📄 Description

🤖 Opened by rdbtCVS's AI agent (OpenAI Codex, GPT-6.1).

What and why

Integrated and dedicated server startup called the client's Game::open_world(), relying on options to bypass integrated-server selection. They now call a synchronous Game::load_world() entry point that prepares and installs authoritative world state without going through client entry or starting an integrated server.

open_world() retains resource deferral, simulation-mode selection, and background loading with the existing title/loading UI. Both paths share WorldRequest construction and the existing preparation/finalization code. Simulation flags, world creation options, and gameplay behavior are unchanged.

Checked overlapping PRs, including #1567. This refactor does not take on its integration-coverage blockers or gameplay fixes.

Vanilla reference

No vanilla gameplay rule changes. Existing world preparation and finalization are reused; this only separates Horizon's client/server startup responsibilities.

Validation

  • cargo build --locked --profile fast -p horizon-client --bins passed.
  • Runtime smoke checks using temporary game, launcher, and XDG homes passed: open/create from the title screen and clean shutdown in both --in-frame and default integrated mode; dedicated startup, console stop, and saved level.dat. Used test terrain and the debug binaries built by the test suite.
  • Full vanilla parity was not run: this checkout lacks the parity data setup. The self-check leaves affected harnesses to CI.

Self-check

pr_ready (tools/pr_ready.py on archlinux, against origin/main at de840da0e, 1 min 3 s)

Check Result
Scope ✅ 4 files, +34 −15
Cargo.lock ✅ unchanged
Public tree ✅ (1 s)
Python tests ➖ no Python change
rustfmt ✅ (19 s)
clippy ✅ (13 s)
tests: horizon-client ✅ 1197 passed (28 s)
doc tests ✅ 0 passed (2 s)
tokens.css up to date ➖ theme untouched
launcher rustfmt ➖ launcher untouched
launcher clippy ➖ launcher untouched
launcher tests ➖ launcher untouched
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)

🤖 Generated with OpenAI Codex.


🔄 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/1665 **Author:** [@rdbtCVS](https://github.com/rdbtCVS) **Created:** 10/24/2026 **Status:** ✅ Merged **Merged:** 10/25/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `t3/separate-world-entry-loading` --- ### 📝 Commits (1) - [`c41a053`](https://github.com/horizon-rust/horizon/commit/c41a053c15526b3273365a887c39962991186453) refactor: separate client world entry from authoritative loading ### 📊 Changes **4 files changed** (+34 additions, -15 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game.rs` (+11 -10) 📝 `crates/horizon-client/src/game/dedicated.rs` (+3 -3) 📝 `crates/horizon-client/src/game/integrated.rs` (+3 -2) 📝 `crates/horizon-client/src/game/world_loading.rs` (+17 -0) </details> ### 📄 Description > 🤖 Opened by rdbtCVS's AI agent (OpenAI Codex, GPT-6.1). ## What and why Integrated and dedicated server startup called the client's `Game::open_world()`, relying on options to bypass integrated-server selection. They now call a synchronous `Game::load_world()` entry point that prepares and installs authoritative world state without going through client entry or starting an integrated server. `open_world()` retains resource deferral, simulation-mode selection, and background loading with the existing title/loading UI. Both paths share `WorldRequest` construction and the existing preparation/finalization code. Simulation flags, world creation options, and gameplay behavior are unchanged. Checked overlapping PRs, including #1567. This refactor does not take on its integration-coverage blockers or gameplay fixes. ## Vanilla reference No vanilla gameplay rule changes. Existing world preparation and finalization are reused; this only separates Horizon's client/server startup responsibilities. ## Validation - `cargo build --locked --profile fast -p horizon-client --bins` passed. - Runtime smoke checks using temporary game, launcher, and XDG homes passed: open/create from the title screen and clean shutdown in both `--in-frame` and default integrated mode; dedicated startup, console stop, and saved `level.dat`. Used test terrain and the debug binaries built by the test suite. - Full vanilla parity was not run: this checkout lacks the parity data setup. The self-check leaves affected harnesses to CI. ## Self-check **pr_ready** (`tools/pr_ready.py` on archlinux, against origin/main at de840da0e, 1 min 3 s) | Check | Result | | --- | --- | | Scope | ✅ 4 files, +34 −15 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ (1 s) | | Python tests | ➖ no Python change | | rustfmt | ✅ (19 s) | | clippy | ✅ (13 s) | | tests: horizon-client | ✅ 1197 passed (28 s) | | doc tests | ✅ 0 passed (2 s) | | tokens.css up to date | ➖ theme untouched | | launcher rustfmt | ➖ launcher untouched | | launcher clippy | ➖ launcher untouched | | launcher tests | ➖ launcher untouched | | 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) | 🤖 Generated with [OpenAI Codex](https://openai.com/codex/). --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 04:11:19 +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#3672
No description provided.