[PR #3541] [CLOSED] Splitscreen: up to 16 players on one computer #5037

Closed
opened 2026-11-03 05:09:46 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/3541
Author: @martipops
Created: 10/29/2026
Status: ❌ Closed

Base: main ← Head: splitscreen-pr


📝 Commits (10+)

  • ba35047 Let /damage hurt players other than the acting one
  • 703f087 Splitscreen: up to 16 players on one computer (Horizon extra, off by default)
  • e8a9f6b Launcher: hand the other signed-in accounts to splitscreen players
  • 3f85351 Splitscreen Setup on Wayland: windows with no known place, one monitor
  • a705ab5 Splitscreen: the review's fixes
  • cd30a02 Merge remote-tracking branch 'upstream/main' into splitscreen-pr-v2
  • b140be2 Splitscreen: the compositor only once another player is in
  • 97090dc Fix solo splitscreen setup and controller handoff lifecycle
  • 4b74818 Merge upstream main into splitscreen PR
  • 6f12663 Expose splitscreen setup status in control snapshots

📊 Changes

52 files changed (+8656 additions, -142 deletions)

View changed files

📝 Cargo.lock (+3 -0)
📝 crates/horizon-client-render/src/audio.rs (+323 -31)
📝 crates/horizon-client-render/src/auth.rs (+52 -0)
📝 crates/horizon-client-render/src/extras.rs (+41 -3)
📝 crates/horizon-client-render/src/gfx.rs (+17 -7)
➕ crates/horizon-client-render/src/gfx/compositor.rs (+155 -0)
📝 crates/horizon-client-render/src/lib.rs (+3 -0)
📝 crates/horizon-client-render/src/options_ui.rs (+89 -2)
➕ crates/horizon-client-render/src/split_layout.rs (+731 -0)
➕ crates/horizon-client-render/src/split_profiles.rs (+606 -0)
➕ crates/horizon-client-render/src/split_profiles/store.rs (+90 -0)
➕ crates/horizon-client-render/src/split_ui.rs (+1623 -0)
📝 crates/horizon-client-render/src/widgets.rs (+19 -0)
📝 crates/horizon-client/Cargo.toml (+7 -0)
📝 crates/horizon-client/build.rs (+9 -0)
📝 crates/horizon-client/src/game.rs (+73 -16)
📝 crates/horizon-client/src/game/agent.rs (+33 -2)
📝 crates/horizon-client/src/game/commands/world_cmds.rs (+16 -14)
📝 crates/horizon-client/src/game/control.rs (+9 -0)
📝 crates/horizon-client/src/game/discord.rs (+4 -0)

...and 32 more files

📄 Description

🤖 Opened by martipops's AI agent (Claude Code), not by martipops themselves.

What and why

Closes #2054. Adds local splitscreen for up to 16 players in one Horizon process, off by default under Horizon Settings → Splitscreen.... Players can share a window, use separate windows, or fill different monitors. Sixteen is a chosen cap, not a limit of the design: every player is another Game in the same process, so going further is a constant (MAX_PLAYERS in split_layout.rs) plus more rows in its layout table.

Rebuilt on main (2026-10-29). This PR no longer carries #3496, which was closed; the branch is main plus the /damage fix, splitscreen, the launcher handing its other accounts to splitscreen players, a Wayland fix and an independent review's fixes, kept in sync with main by merges. Nothing in it comes from another launcher's or project's source.

Split out for separate review: two changes here also affect players outside splitscreen, so each has its own issue and small PR: the /damage fix (#3665, PR #3668) and the stick on servers (#3666, PR #3669). They stay in this branch until those merge, since the splitscreen tests rely on them.

Player behaviour

  • Join and leave: another controller presses a button in a world, accepts the join prompt with A, and picks a profile. LB/RB on the profile picker moves that player's view between positions in existing windows, a new window, or another monitor. Players leave through the pause menu.
  • Profiles: the picker lists Microsoft accounts first, then this game instance's offline profiles (folders under splitscreen/profiles). Microsoft accounts are the launcher's other signed-in accounts: at Play it renews each one's token when due (the existing check) and writes a session file per account with the existing write_session_file, listed in HORIZON_ACCOUNT_SESSIONS; a player who picks one signs in as that account, so online-mode servers let it in. An account the launcher can't renew, or that doesn't own the game, is left out and the game starts all the same. The list has pagination; profiles already playing (locally or on P1's server) cannot be picked twice, and become available when released. An offline profile's bin button forgets it after a confirmation; its options and saves are kept, and making the same name again restores it. Each profile has its own options file and server-side player data.
  • Authentication and servers: players join P1's integrated world or the server P1 is connected to. On an online-mode server each player needs its own valid Microsoft account/session, and the server's capacity and access rules still apply. A joining player sees refusals in its picker; P1 gets a notice if a player who had entered cannot stay. A server resource pack follows P1's answer.
  • Windows and layouts: halves for two, configurable three-player layouts, quarters for four, and balanced rows for larger groups, reaching a 4×4 grid at sixteen. Larger layouts transpose into columns in tall windows. Windows can fill a monitor; leaving fullscreen restores a draggable window. macOS uses a borderless monitor-sized window rather than creating a fullscreen Space.
  • Setup: P1 arranges everyone on a monitor map, using drag and drop or controller pickup/move/drop. Apply commits the arrangement; Revert discards it. Setup also provides Names On/Off and Identify. Other players' Splitscreen Settings opens their profile picker, where they can switch profiles or move their own view with the bumpers. The switch can turn splitscreen off once P1 is alone.
  • /damage on other players: /damage only handled the acting player and mobs, so any other player (a LAN guest, a dedicated server's player, a splitscreen player) got "Target is invulnerable". It now runs as that player through for_player, as /effect does. This bug is upstream too; the profile scenarios found it (#3665, fixed on its own in #3668).
  • Input: one shared keyboard and mouse drives the view clicked after releasing mouse capture. Handoff releases the previous player's held controls and pointer ownership. Only the player holding the keyboard and mouse sets the window's cursor visibility and icon, so a controller player leaving a menu no longer shows the cursor over another player's locked view. Each controller drives its assigned player. On a server the stick moves as vanilla's directional keys do; single player retains analog movement (#3666, on its own in #3669). A guest's Language and Resource Packs are greyed out, since both apply to the whole process.

Design and scope

Each player has its own Game, client state, camera, HUD and menus. A shared wgpu device renders the views offscreen; gfx/compositor.rs assembles them into windows. The process shares resource data, an audio mixer and a controller reader. World simulation and generation run on P1's integrated server or the external server; each client still stores and meshes its own chunks. Positional audio selects listeners and deduplicates sounds within the same dimension.

The implementation spans the compositor, split orchestration (game/split.rs and game/split/), layout and Setup UI, profiles, shared audio/input, and the launcher's hand-off of its other accounts (account_sessions in launcher/src/account.rs). It exceeds the repository's small-PR guideline because these pieces deliver one connected player flow. With splitscreen off, P1 keeps the normal window rendering path.

Vanilla reference

Horizon-only: vanilla Java Edition has no local splitscreen. The feature uses Horizon's existing integrated-server and multiplayer paths. It does not add new world simulation rules.

Screenshots

Two players on Hypixel
Two players on Hypixel

The join prompt when a controller presses a button
The join prompt when a controller presses a button

Three players, the Setup screen open on P1
Three players, the Setup screen open on P1

Two players in a single player world
Two players in a single player world

The join prompt after a controller connects
The join prompt after a controller connects

Two monitors
Two monitors

Validation

  • Played on macOS and Windows, including single player and Hypixel, and run through the live suite on Linux under native Wayland (below). The user confirmed Windows validation of the fullscreen fix and the subsequent player-isolation, input-handoff, guest-lifecycle and profile fixes.
  • Layout and Setup unit tests cover player arrangement, mouse/controller moves, and complete, non-overlapping coverage through sixteen views. Audio tests cover same-dimension sharing, cross-dimension isolation and deduplication.
  • macOS, on the rebuilt head (703f08799; windows, setup and gui_scales also on 3f853511d): formatting and Clippy (-D warnings) clean; 56 render-library and 7 game-side splitscreen unit tests and the input-capture Python test pass; eight live scenarios pass: join, leave, picker, pausemenu, launcher (accounts listed first, a new offline profile kept in the game folder), profile_availability, dedicated_profiles (a splitscreen player's inventory, position, health and XP carry over when the same name joins the dedicated server alone, and survive a server restart) and integrated_profiles (the same over LAN; P1's solo progress kept after a name change).
  • Linux, native Wayland (Fedora 44, GNOME, Intel graphics): the live suite ran on a real Wayland session, not Xwayland. Build, splitscreen unit tests, Clippy, 408 Python tests and the launcher's 314 tests pass. On 703f08799 every live scenario passed except windows (the Setup map stacked free windows, since Wayland never reports window positions); 3f853511d fixes that, and on it windows, setup, gui_scales, picker and leave pass on Wayland. Before the fix, windows passed under X11 (Xwayland) and failed only on Wayland. No controller was attached on that machine.
  • Windows: the user's smoke test of 703f08799 passed (a controller player joining with an offline profile, forgetting a profile, no cursor over P1's locked view). On 3f853511d, with the game started from the launcher, the user confirmed the account hand-off works: a splitscreen player can play as another of the launcher's signed-in Microsoft accounts.
  • Sixteen-player live validation passed on macOS: all sixteen clients entered the integrated world, rendered in a 4×4 grid, and P16 moved to its own window and left while P15 continued playing. The eight-player regression also passed. Fifty render-library tests selected by split_ passed. The user also confirmed the sixteen-player build runs well on Windows. Automated extra players use the harness; sixteen physical controllers and a controlled sixteen-player Windows performance benchmark have not been validated.
  • After correcting the input-capture fixture, all 408 Python tests pass locally, including both input-capture tests. A direct upstream comparison verified the old compile failure was caused by the split-screen fixture falling behind the production method.
  • The live suite uses real game windows and scratch data through horizon-ctl. Run python3 tools/splitscreen_e2e.py --list, --only sixteen, or selected groups. A desktop and prepared vanilla resources are required; these live scenarios are not run by CI.

Full self-check and CI status

The earlier python3 tools/pr_ready.py --base upstream/main run predates the rebuild on main (it still included #3496's launcher code); it is not a full check of the current head, and its launcher rows no longer apply:

Check Earlier result
Public tree and Cargo.lock consistency Passed
Formatting and Clippy, game and launcher Passed
Workspace tests 2,428 passed
Doc tests and content-root tests 2 and 5 passed respectively
Launcher tests 256 passed
Python tests 408 run, one error: test_world_input_capture had not been updated for the split-screen fields read by its extracted Rust method. Direct comparison confirmed upstream passes; this was a branch regression in the fixture, now corrected with ownership and view-offset coverage
Parity 87 passed; 269 failed before comparison because the worktree's symlinked .local produced fixture paths outside the checkout

The earlier CI verify failure at test_world_input_capture was caused by the stale fixture described above, not an upstream failure. The fixture is now corrected; checks for the updated head must still pass. The earlier launcher CI job passed. Parity was skipped; maintainer-triggered parity is still needed. The partial local parity run must not be read as a complete pass.

Known limits

  • The cap is sixteen local players, a constant rather than an architectural limit (raising it needs only the constant and more shared-window layouts), but nothing past sixteen has been run. Achievable performance depends on hardware, render distance, resolution and chunk loading. Physical-controller connectivity is a separate hardware/driver limit.
  • Only one keyboard/mouse pair is routed. A new controller is required for independent physical input for each additional player.
  • No DualSense rumble or adaptive triggers while splitscreen reads the controllers.
  • CPU scaling: player updates and renders run sequentially on the main thread, so CPU frame time grows with player count and can limit FPS even with GPU headroom (observed on the Ryzen 7 3700X / RTX 3090 test PC). Resolution and graphics settings can also make the GPU the limit. HORIZON_SPLIT_STATS=1 logs frame timing.
  • Threaded rendering is feasible but out of scope: a per-player render-worker prototype was built and parked. Measurements were mixed: it could help heavier eight-player workloads but also slowed individual renders and lost on lighter workloads. Pursuing it needs broader changes to shared frame construction and renderer code, beyond this feature. This PR keeps the sequential path.
  • Splitscreen's text is English and has not yet been moved onto translation keys.
  • Local world sharing uses the default integrated server; the in-frame single-player path does not accept local splitscreen joins.

🤖 Generated with Claude Code and 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/3541 **Author:** [@martipops](https://github.com/martipops) **Created:** 10/29/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `splitscreen-pr` --- ### 📝 Commits (10+) - [`ba35047`](https://github.com/horizon-rust/horizon/commit/ba350479bc55c619f08a38132ca7933c8a5996f3) Let /damage hurt players other than the acting one - [`703f087`](https://github.com/horizon-rust/horizon/commit/703f087999f2bbc6563f0b136b12d0d14b166b0d) Splitscreen: up to 16 players on one computer (Horizon extra, off by default) - [`e8a9f6b`](https://github.com/horizon-rust/horizon/commit/e8a9f6bd393cd78b138654ce1f1fd7cf046c66ac) Launcher: hand the other signed-in accounts to splitscreen players - [`3f85351`](https://github.com/horizon-rust/horizon/commit/3f853511dd9cd4ca5738c29e4fb460b07276d23a) Splitscreen Setup on Wayland: windows with no known place, one monitor - [`a705ab5`](https://github.com/horizon-rust/horizon/commit/a705ab5c6f23b9b76f38df0c84b8857ad561a11b) Splitscreen: the review's fixes - [`cd30a02`](https://github.com/horizon-rust/horizon/commit/cd30a0232fa054f73b2d922ebe202c91d3921df2) Merge remote-tracking branch 'upstream/main' into splitscreen-pr-v2 - [`b140be2`](https://github.com/horizon-rust/horizon/commit/b140be2ecd0c50aa276925dfbc121d246b5536b3) Splitscreen: the compositor only once another player is in - [`97090dc`](https://github.com/horizon-rust/horizon/commit/97090dc1fb25b08f77cf53451639b8521b4da54b) Fix solo splitscreen setup and controller handoff lifecycle - [`4b74818`](https://github.com/horizon-rust/horizon/commit/4b74818cf6ee7b9059ce2c36f9002582017d4ac7) Merge upstream main into splitscreen PR - [`6f12663`](https://github.com/horizon-rust/horizon/commit/6f12663b9b22ceb6b513a0f05e1c47941f13c691) Expose splitscreen setup status in control snapshots ### 📊 Changes **52 files changed** (+8656 additions, -142 deletions) <details> <summary>View changed files</summary> 📝 `Cargo.lock` (+3 -0) 📝 `crates/horizon-client-render/src/audio.rs` (+323 -31) 📝 `crates/horizon-client-render/src/auth.rs` (+52 -0) 📝 `crates/horizon-client-render/src/extras.rs` (+41 -3) 📝 `crates/horizon-client-render/src/gfx.rs` (+17 -7) ➕ `crates/horizon-client-render/src/gfx/compositor.rs` (+155 -0) 📝 `crates/horizon-client-render/src/lib.rs` (+3 -0) 📝 `crates/horizon-client-render/src/options_ui.rs` (+89 -2) ➕ `crates/horizon-client-render/src/split_layout.rs` (+731 -0) ➕ `crates/horizon-client-render/src/split_profiles.rs` (+606 -0) ➕ `crates/horizon-client-render/src/split_profiles/store.rs` (+90 -0) ➕ `crates/horizon-client-render/src/split_ui.rs` (+1623 -0) 📝 `crates/horizon-client-render/src/widgets.rs` (+19 -0) 📝 `crates/horizon-client/Cargo.toml` (+7 -0) 📝 `crates/horizon-client/build.rs` (+9 -0) 📝 `crates/horizon-client/src/game.rs` (+73 -16) 📝 `crates/horizon-client/src/game/agent.rs` (+33 -2) 📝 `crates/horizon-client/src/game/commands/world_cmds.rs` (+16 -14) 📝 `crates/horizon-client/src/game/control.rs` (+9 -0) 📝 `crates/horizon-client/src/game/discord.rs` (+4 -0) _...and 32 more files_ </details> ### 📄 Description > 🤖 Opened by martipops's AI agent (Claude Code), not by martipops themselves. ## What and why Closes #2054. Adds local splitscreen for up to **16 players** in one Horizon process, **off by default** under Horizon Settings → Splitscreen.... Players can share a window, use separate windows, or fill different monitors. Sixteen is a chosen cap, not a limit of the design: every player is another `Game` in the same process, so going further is a constant (`MAX_PLAYERS` in `split_layout.rs`) plus more rows in its layout table. **Rebuilt on main (2026-10-29).** This PR no longer carries #3496, which was closed; the branch is `main` plus the `/damage` fix, splitscreen, the launcher handing its other accounts to splitscreen players, a Wayland fix and an independent review's fixes, kept in sync with `main` by merges. Nothing in it comes from another launcher's or project's source. **Split out for separate review:** two changes here also affect players outside splitscreen, so each has its own issue and small PR: the `/damage` fix (#3665, PR #3668) and the stick on servers (#3666, PR #3669). They stay in this branch until those merge, since the splitscreen tests rely on them. ### Player behaviour - **Join and leave:** another controller presses a button in a world, accepts the join prompt with A, and picks a profile. LB/RB on the profile picker moves that player's view between positions in existing windows, a new window, or another monitor. Players leave through the pause menu. - **Profiles:** the picker lists Microsoft accounts first, then this game instance's offline profiles (folders under `splitscreen/profiles`). Microsoft accounts are the launcher's other signed-in accounts: at Play it renews each one's token when due (the existing `check`) and writes a session file per account with the existing `write_session_file`, listed in `HORIZON_ACCOUNT_SESSIONS`; a player who picks one signs in as that account, so online-mode servers let it in. An account the launcher can't renew, or that doesn't own the game, is left out and the game starts all the same. The list has pagination; profiles already playing (locally or on P1's server) cannot be picked twice, and become available when released. An offline profile's bin button forgets it after a confirmation; its options and saves are kept, and making the same name again restores it. Each profile has its own options file and server-side player data. - **Authentication and servers:** players join P1's integrated world or the server P1 is connected to. On an online-mode server each player needs its own valid Microsoft account/session, and the server's capacity and access rules still apply. A joining player sees refusals in its picker; P1 gets a notice if a player who had entered cannot stay. A server resource pack follows P1's answer. - **Windows and layouts:** halves for two, configurable three-player layouts, quarters for four, and balanced rows for larger groups, reaching a 4×4 grid at sixteen. Larger layouts transpose into columns in tall windows. Windows can fill a monitor; leaving fullscreen restores a draggable window. macOS uses a borderless monitor-sized window rather than creating a fullscreen Space. - **Setup:** P1 arranges everyone on a monitor map, using drag and drop or controller pickup/move/drop. Apply commits the arrangement; Revert discards it. Setup also provides Names On/Off and Identify. Other players' Splitscreen Settings opens their profile picker, where they can switch profiles or move their own view with the bumpers. The switch can turn splitscreen off once P1 is alone. - **`/damage` on other players:** `/damage` only handled the acting player and mobs, so any other player (a LAN guest, a dedicated server's player, a splitscreen player) got "Target is invulnerable". It now runs as that player through `for_player`, as `/effect` does. This bug is upstream too; the profile scenarios found it (#3665, fixed on its own in #3668). - **Input:** one shared keyboard and mouse drives the view clicked after releasing mouse capture. Handoff releases the previous player's held controls and pointer ownership. Only the player holding the keyboard and mouse sets the window's cursor visibility and icon, so a controller player leaving a menu no longer shows the cursor over another player's locked view. Each controller drives its assigned player. On a server the stick moves as vanilla's directional keys do; single player retains analog movement (#3666, on its own in #3669). A guest's Language and Resource Packs are greyed out, since both apply to the whole process. ### Design and scope Each player has its own `Game`, client state, camera, HUD and menus. A shared wgpu device renders the views offscreen; `gfx/compositor.rs` assembles them into windows. The process shares resource data, an audio mixer and a controller reader. World simulation and generation run on P1's integrated server or the external server; each client still stores and meshes its own chunks. Positional audio selects listeners and deduplicates sounds within the same dimension. The implementation spans the compositor, split orchestration (`game/split.rs` and `game/split/`), layout and Setup UI, profiles, shared audio/input, and the launcher's hand-off of its other accounts (`account_sessions` in `launcher/src/account.rs`). It exceeds the repository's small-PR guideline because these pieces deliver one connected player flow. With splitscreen off, P1 keeps the normal window rendering path. ## Vanilla reference **Horizon-only:** vanilla Java Edition has no local splitscreen. The feature uses Horizon's existing integrated-server and multiplayer paths. It does not add new world simulation rules. ### Screenshots **Two players on Hypixel** <img width="1280" alt="Two players on Hypixel" src="https://github.com/user-attachments/assets/41cc3044-19bd-4fcf-ab11-d26de3839423" /> **The join prompt when a controller presses a button** <img width="1280" alt="The join prompt when a controller presses a button" src="https://github.com/user-attachments/assets/30393fda-73c9-4f3b-b7de-55a0fe5f3f61" /> **Three players, the Setup screen open on P1** <img width="1280" alt="Three players, the Setup screen open on P1" src="https://github.com/user-attachments/assets/f71d09a3-6877-44ae-902c-3eb65f87c65d" /> **Two players in a single player world** <img width="1280" alt="Two players in a single player world" src="https://github.com/user-attachments/assets/4f67fe28-6cd0-4bf2-b36e-f4959543adef" /> **The join prompt after a controller connects** <img width="1280" alt="The join prompt after a controller connects" src="https://github.com/user-attachments/assets/b46e0b43-8b65-46a0-827d-750b6d9c2008" /> **Two monitors** <img width="1280" alt="Two monitors" src="https://github.com/user-attachments/assets/3a12342e-94d0-40cd-b356-31d85e4fb66d" /> ## Validation - Played on macOS and Windows, including single player and Hypixel, and run through the live suite on Linux under native Wayland (below). The user confirmed Windows validation of the fullscreen fix and the subsequent player-isolation, input-handoff, guest-lifecycle and profile fixes. - Layout and Setup unit tests cover player arrangement, mouse/controller moves, and complete, non-overlapping coverage through sixteen views. Audio tests cover same-dimension sharing, cross-dimension isolation and deduplication. - **macOS, on the rebuilt head (703f08799; `windows`, `setup` and `gui_scales` also on 3f853511d):** formatting and Clippy (`-D warnings`) clean; 56 render-library and 7 game-side splitscreen unit tests and the input-capture Python test pass; eight live scenarios pass: `join`, `leave`, `picker`, `pausemenu`, `launcher` (accounts listed first, a new offline profile kept in the game folder), `profile_availability`, `dedicated_profiles` (a splitscreen player's inventory, position, health and XP carry over when the same name joins the dedicated server alone, and survive a server restart) and `integrated_profiles` (the same over LAN; P1's solo progress kept after a name change). - **Linux, native Wayland (Fedora 44, GNOME, Intel graphics):** the live suite ran on a real Wayland session, not Xwayland. Build, splitscreen unit tests, Clippy, 408 Python tests and the launcher's 314 tests pass. On 703f08799 every live scenario passed except `windows` (the Setup map stacked free windows, since Wayland never reports window positions); 3f853511d fixes that, and on it `windows`, `setup`, `gui_scales`, `picker` and `leave` pass on Wayland. Before the fix, `windows` passed under X11 (Xwayland) and failed only on Wayland. No controller was attached on that machine. - **Windows:** the user's smoke test of 703f08799 passed (a controller player joining with an offline profile, forgetting a profile, no cursor over P1's locked view). On 3f853511d, with the game started from the launcher, the user confirmed the account hand-off works: a splitscreen player can play as another of the launcher's signed-in Microsoft accounts. - **Sixteen-player live validation passed on macOS:** all sixteen clients entered the integrated world, rendered in a 4×4 grid, and P16 moved to its own window and left while P15 continued playing. The eight-player regression also passed. Fifty render-library tests selected by `split_` passed. The user also confirmed the sixteen-player build runs well on Windows. Automated extra players use the harness; sixteen physical controllers and a controlled sixteen-player Windows performance benchmark have not been validated. - After correcting the input-capture fixture, all **408 Python tests pass locally**, including both input-capture tests. A direct upstream comparison verified the old compile failure was caused by the split-screen fixture falling behind the production method. - The live suite uses real game windows and scratch data through `horizon-ctl`. Run `python3 tools/splitscreen_e2e.py --list`, `--only sixteen`, or selected groups. A desktop and prepared vanilla resources are required; these live scenarios are not run by CI. ### Full self-check and CI status The earlier `python3 tools/pr_ready.py --base upstream/main` run predates the rebuild on main (it still included #3496's launcher code); it is not a full check of the current head, and its launcher rows no longer apply: | Check | Earlier result | | --- | --- | | Public tree and Cargo.lock consistency | Passed | | Formatting and Clippy, game and launcher | Passed | | Workspace tests | 2,428 passed | | Doc tests and content-root tests | 2 and 5 passed respectively | | Launcher tests | 256 passed | | Python tests | 408 run, one error: `test_world_input_capture` had not been updated for the split-screen fields read by its extracted Rust method. Direct comparison confirmed upstream passes; this was a branch regression in the fixture, now corrected with ownership and view-offset coverage | | Parity | 87 passed; 269 failed before comparison because the worktree's symlinked `.local` produced fixture paths outside the checkout | The earlier CI `verify` failure at `test_world_input_capture` was caused by the stale fixture described above, not an upstream failure. The fixture is now corrected; checks for the updated head must still pass. The earlier launcher CI job passed. Parity was skipped; maintainer-triggered parity is still needed. The partial local parity run must not be read as a complete pass. ## Known limits - The cap is sixteen local players, a constant rather than an architectural limit (raising it needs only the constant and more shared-window layouts), but nothing past sixteen has been run. Achievable performance depends on hardware, render distance, resolution and chunk loading. Physical-controller connectivity is a separate hardware/driver limit. - Only one keyboard/mouse pair is routed. A new controller is required for independent physical input for each additional player. - No DualSense rumble or adaptive triggers while splitscreen reads the controllers. - **CPU scaling:** player updates and renders run sequentially on the main thread, so CPU frame time grows with player count and can limit FPS even with GPU headroom (observed on the Ryzen 7 3700X / RTX 3090 test PC). Resolution and graphics settings can also make the GPU the limit. `HORIZON_SPLIT_STATS=1` logs frame timing. - **Threaded rendering is feasible but out of scope:** a per-player render-worker prototype was built and parked. Measurements were mixed: it could help heavier eight-player workloads but also slowed individual renders and lost on lighter workloads. Pursuing it needs broader changes to shared frame construction and renderer code, beyond this feature. This PR keeps the sequential path. - Splitscreen's text is English and has not yet been moved onto translation keys. - Local world sharing uses the default integrated server; the in-frame single-player path does not accept local splitscreen joins. 🤖 Generated with [Claude Code](https://claude.com/claude-code) and [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 05:09:46 +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#5037
No description provided.