[PR #921] [MERGED] vanilla_client.py on macOS: the real vanilla 26.3 client joins Horizon's server #2915

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/921
Author: @ludovic111
Created: 10/18/2026
Status: ✅ Merged
Merged: 10/18/2026
Merged by: @ludovic111

Base: main ← Head: feat/vanilla-client-macos


📝 Commits (1)

  • 4b18b79 vanilla_client.py on macOS: the real vanilla 26.3 client joins Horizon's server

📊 Changes

2 files changed (+24 additions, -9 deletions)

View changed files

📝 docs/server.md (+7 -3)
📝 tools/vanilla_client.py (+17 -6)

📄 Description

🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself.

What

tools/vanilla_client.py (dev-only, runs the owner's own vanilla 26.3 client offline) now works on macOS (Apple silicon) as well as on Linux:

  • it picks this machine's natives (natives-macos-arm64 and .dylib on macOS, natives-linux and .so on Linux) and keeps java-objc-bridge on macOS;
  • it adds -XstartOnFirstThread on macOS, as the launcher's manifest does;
  • vsync is off on macOS. With vsync on, a window nobody can see (the Mac mini's session is usually locked) blocks in SDL_GL_SwapWindow, and the client never gets as far as joining. jcmd showed the render thread parked there at 0 % CPU.

docs/server.md "Joining it" replaces "could not be run here" with the result below.

Why

server-host-9, item 2: have the real vanilla client join a horizon-server, not only VanillaProtocolClient (test_dedicated_server_parity.py, which compares every packet up to the first chunk batch and stays the regression check).

How tested

On the Mac mini, with its session locked (CGSSessionScreenIsLocked = 1). The server was the server build from #916 (horizon-client --no-default-features), run with --dedicated from a scratch folder (offline, creative, seed 12345, view distance 6).

python3 tools/vanilla_client.py --name Vanilla --join localhost:25633
client: Using graphics backend OpenGL, using drivers: 4.1 Metal; Connecting to localhost, 25633
server: Vanilla[/127.0.0.1:54956] logged in with entity id 10 at (96.5, 145.0, -31.5)
server: Vanilla joined the game
client: draws the chunk sections around spawn (Chunk Sections UBO grows to 256), connected 4 min, no disconnect
server: no warning or error after the join
with vsync on (before this change): the render thread is blocked in SDL_GL_SwapWindow, and the client never connects
python3 -m unittest discover -s tests: the same 2 errors as on main (test_parity_runner/test_rust_parity reuse tests, environment), nothing new

Not checked: Linux, which only changed by reading the natives suffix from a constant, so its selection is the same as before. A screenshot wasn't possible, because screencapture sees only the lock screen.

Needs Ludovic

Nothing.

Kira: card#29.

🤖 Generated with Claude Code


🔄 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/921 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/18/2026 **Status:** ✅ Merged **Merged:** 10/18/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `feat/vanilla-client-macos` --- ### 📝 Commits (1) - [`4b18b79`](https://github.com/horizon-rust/horizon/commit/4b18b79d1586ad91389cb0e0fa21271dce81929d) vanilla_client.py on macOS: the real vanilla 26.3 client joins Horizon's server ### 📊 Changes **2 files changed** (+24 additions, -9 deletions) <details> <summary>View changed files</summary> 📝 `docs/server.md` (+7 -3) 📝 `tools/vanilla_client.py` (+17 -6) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. ## What `tools/vanilla_client.py` (dev-only, runs the owner's own vanilla 26.3 client offline) now works on macOS (Apple silicon) as well as on Linux: - it picks this machine's natives (`natives-macos-arm64` and `.dylib` on macOS, `natives-linux` and `.so` on Linux) and keeps `java-objc-bridge` on macOS; - it adds `-XstartOnFirstThread` on macOS, as the launcher's manifest does; - vsync is off on macOS. With vsync on, a window nobody can see (the Mac mini's session is usually locked) blocks in `SDL_GL_SwapWindow`, and the client never gets as far as joining. `jcmd` showed the render thread parked there at 0 % CPU. docs/server.md "Joining it" replaces "could not be run here" with the result below. ## Why server-host-9, item 2: have the real vanilla client join a horizon-server, not only VanillaProtocolClient (`test_dedicated_server_parity.py`, which compares every packet up to the first chunk batch and stays the regression check). ## How tested On the Mac mini, with its session locked (`CGSSessionScreenIsLocked` = 1). The server was the server build from #916 (`horizon-client --no-default-features`), run with `--dedicated` from a scratch folder (offline, creative, seed 12345, view distance 6). ``` python3 tools/vanilla_client.py --name Vanilla --join localhost:25633 client: Using graphics backend OpenGL, using drivers: 4.1 Metal; Connecting to localhost, 25633 server: Vanilla[/127.0.0.1:54956] logged in with entity id 10 at (96.5, 145.0, -31.5) server: Vanilla joined the game client: draws the chunk sections around spawn (Chunk Sections UBO grows to 256), connected 4 min, no disconnect server: no warning or error after the join with vsync on (before this change): the render thread is blocked in SDL_GL_SwapWindow, and the client never connects python3 -m unittest discover -s tests: the same 2 errors as on main (test_parity_runner/test_rust_parity reuse tests, environment), nothing new ``` Not checked: Linux, which only changed by reading the natives suffix from a constant, so its selection is the same as before. A screenshot wasn't possible, because `screencapture` sees only the lock screen. ## Needs Ludovic Nothing. Kira: card#29. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-02 16:00:04 +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#2915
No description provided.