[PR #673] [MERGED] Allow render distances up to 64 chunks in settings #2719

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

📋 Pull Request Information

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

Base: main ← Head: fix/render-distance-settings-cap


📝 Commits (1)

  • 310047c Allow render distances up to 64 chunks in settings and saved options

📊 Changes

4 files changed (+37 additions, -7 deletions)

View changed files

📝 crates/horizon-client/examples/options_probe.rs (+10 -2)
📝 crates/horizon-client/src/options_file.rs (+1 -1)
📝 crates/horizon-client/src/options_ui.rs (+21 -2)
📝 tools/test_options_parity.py (+5 -2)

📄 Description

Render distance can already reach 64 chunks through the command line, but the settings sliders and options-file validator stop at 32. Extend their shared range to 2–64 so Classic and Horizon menus can select larger distances and retain them after restart.

I crash when putting my render distance on even 32, but I only have 6 GB of VRAM. Maybe if you have 8-12GB or more you can run 64 Chunks.

Fixes #654.

Validation: 29 focused UI, settings and option-control tests pass, including slider → serialization → reload at 2, 33 and 64, and rejection outside 2–64. One unrelated prepared-language tooltip test remains opt-in. Client all-target Clippy with warnings denied, workspace formatting, Python syntax, whitespace and public-tree checks pass.

Nine boundary/default files also match the pinned 26.3 Options.load/save oracle (1,818 output lines). The vanilla options probe explicitly normalizes the intentional 33–64 extension to vanilla's default for comparisons; the Rust regression verifies the extended range directly.

User testing: loading a world at 64 chunks on a GTX 1660 SUPER (6 GB VRAM) fails with wgpu Out of Memory in Arena::alloc during terrain upload. The renderer has no total arena-memory budget or graceful allocation-failure recovery; arena growth also temporarily keeps the old and replacement buffers alive. The existing large-distance memory issue (#600) remains unresolved. This PR exposes the range but does not make 64 chunks memory-safe.

Still needs testing: successful terrain loading and restart persistence at larger distances on hardware with sufficient memory. Multiplayer remains subject to the existing server distance limits.


🔄 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/673 **Author:** [@Online5277](https://github.com/Online5277) **Created:** 10/17/2026 **Status:** ✅ Merged **Merged:** 10/17/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/render-distance-settings-cap` --- ### 📝 Commits (1) - [`310047c`](https://github.com/horizon-rust/horizon/commit/310047c225f6bc1022429136acf5eef3d6b606ea) Allow render distances up to 64 chunks in settings and saved options ### 📊 Changes **4 files changed** (+37 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/examples/options_probe.rs` (+10 -2) 📝 `crates/horizon-client/src/options_file.rs` (+1 -1) 📝 `crates/horizon-client/src/options_ui.rs` (+21 -2) 📝 `tools/test_options_parity.py` (+5 -2) </details> ### 📄 Description Render distance can already reach 64 chunks through the command line, but the settings sliders and options-file validator stop at 32. Extend their shared range to 2–64 so Classic and Horizon menus can select larger distances and retain them after restart. I crash when putting my render distance on even 32, but I only have 6 GB of VRAM. Maybe if you have 8-12GB or more you can run 64 Chunks. Fixes #654. Validation: 29 focused UI, settings and option-control tests pass, including slider → serialization → reload at 2, 33 and 64, and rejection outside 2–64. One unrelated prepared-language tooltip test remains opt-in. Client all-target Clippy with warnings denied, workspace formatting, Python syntax, whitespace and public-tree checks pass. Nine boundary/default files also match the pinned 26.3 Options.load/save oracle (1,818 output lines). The vanilla options probe explicitly normalizes the intentional 33–64 extension to vanilla's default for comparisons; the Rust regression verifies the extended range directly. User testing: loading a world at 64 chunks on a GTX 1660 SUPER (6 GB VRAM) fails with wgpu Out of Memory in Arena::alloc during terrain upload. The renderer has no total arena-memory budget or graceful allocation-failure recovery; arena growth also temporarily keeps the old and replacement buffers alive. The existing large-distance memory issue (#600) remains unresolved. This PR exposes the range but does not make 64 chunks memory-safe. Still needs testing: successful terrain loading and restart persistence at larger distances on hardware with sufficient memory. Multiplayer remains subject to the existing server distance limits. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-02 15:58:31 +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#2719
No description provided.