[PR #6652] Remove the RAM limit #7013

Open
opened 2026-11-03 06:32:06 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/6652
Author: @rdbtCVS
Created: 11/2/2026
Status: 🔄 Open

Base: main ← Head: revert-ram-limit


📝 Commits (1)

📊 Changes

31 files changed (+17 additions, -1480 deletions)

View changed files

📝 crates/horizon-client-render/src/crash.rs (+0 -24)
📝 crates/horizon-client/src/client_lib.rs (+0 -1)
📝 crates/horizon-client/src/entry.rs (+1 -2)
📝 crates/horizon-client/src/game.rs (+5 -14)
📝 crates/horizon-client/src/game/chat.rs (+0 -13)
➖ crates/horizon-client/src/game/ram_limit.rs (+0 -75)
📝 crates/horizon-client/src/game/remote.rs (+7 -11)
➖ crates/horizon-client/src/ram_limit.rs (+0 -355)
📝 crates/horizon-threads/Cargo.toml (+1 -1)
📝 crates/horizon-threads/src/lib.rs (+0 -1)
➖ crates/horizon-threads/src/memory_limit.rs (+0 -449)
📝 docs/native-client.md (+0 -11)
📝 launcher/Cargo.lock (+0 -1)
📝 launcher/Cargo.toml (+0 -2)
📝 launcher/README.md (+0 -3)
📝 launcher/lang/de.json (+0 -8)
📝 launcher/lang/es.json (+0 -8)
📝 launcher/lang/fr.json (+0 -8)
📝 launcher/lang/ja.json (+0 -8)
📝 launcher/lang/pl.json (+0 -8)

...and 11 more files

📄 Description

🤖 Opened by rdbtCVS's AI agent (Claude Code, Claude Sonnet 5.5), not by rdbtCVS personally.

Closes #6651

Removes the RAM limit: the launcher's Maximum memory row on Home, HORIZON_MEMORY_LIMIT_MB, /ramlimit, the render-distance governor and the watcher thread (horizon_threads::memory_limit). This reverts #5800 and #5801.

Why: off Windows it is a soft limit. The game lowers render distance and far terrain, then exits with a crash report when it still can't get under the number, so a low value crashes instead of capping. On Windows the cap only makes the game slow.

  • A Java instance's -Xmx is untouched; it is still set with the launcher CLI (memory_mb), but loses the Home slider.
  • ~1480 lines, nearly all deletions (two files conflicted with later moves into entry.rs and client_lib.rs; those are hand-fixed).
  • Checked with cargo check --tests on the game workspace and launcher/, and cargo fmt --check on both. I did not run tools/pr_ready.py or the harnesses.

A real human here: a ram limit is fucking pointless, who in their right mind thought hmmm lets add this, all it does is force down render distance and crash the game if it cant make the ram limit. thats not a limit, thats just not how it works in rust. It will use however much ram it has to. This is just a ton a bloat that extends scope beyond what is needed.

🤖 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/6652 **Author:** [@rdbtCVS](https://github.com/rdbtCVS) **Created:** 11/2/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `revert-ram-limit` --- ### 📝 Commits (1) - [`e7bdd16`](https://github.com/horizon-rust/horizon/commit/e7bdd16474608c8c0ac748387bad1caf779a20fa) Remove the RAM limit ### 📊 Changes **31 files changed** (+17 additions, -1480 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client-render/src/crash.rs` (+0 -24) 📝 `crates/horizon-client/src/client_lib.rs` (+0 -1) 📝 `crates/horizon-client/src/entry.rs` (+1 -2) 📝 `crates/horizon-client/src/game.rs` (+5 -14) 📝 `crates/horizon-client/src/game/chat.rs` (+0 -13) ➖ `crates/horizon-client/src/game/ram_limit.rs` (+0 -75) 📝 `crates/horizon-client/src/game/remote.rs` (+7 -11) ➖ `crates/horizon-client/src/ram_limit.rs` (+0 -355) 📝 `crates/horizon-threads/Cargo.toml` (+1 -1) 📝 `crates/horizon-threads/src/lib.rs` (+0 -1) ➖ `crates/horizon-threads/src/memory_limit.rs` (+0 -449) 📝 `docs/native-client.md` (+0 -11) 📝 `launcher/Cargo.lock` (+0 -1) 📝 `launcher/Cargo.toml` (+0 -2) 📝 `launcher/README.md` (+0 -3) 📝 `launcher/lang/de.json` (+0 -8) 📝 `launcher/lang/es.json` (+0 -8) 📝 `launcher/lang/fr.json` (+0 -8) 📝 `launcher/lang/ja.json` (+0 -8) 📝 `launcher/lang/pl.json` (+0 -8) _...and 11 more files_ </details> ### 📄 Description > 🤖 Opened by rdbtCVS's AI agent (Claude Code, Claude Sonnet 5.5), not by rdbtCVS personally. Closes #6651 Removes the RAM limit: the launcher's Maximum memory row on Home, `HORIZON_MEMORY_LIMIT_MB`, `/ramlimit`, the render-distance governor and the watcher thread (`horizon_threads::memory_limit`). This reverts #5800 and #5801. Why: off Windows it is a soft limit. The game lowers render distance and far terrain, then exits with a crash report when it still can't get under the number, so a low value crashes instead of capping. On Windows the cap only makes the game slow. - A Java instance's `-Xmx` is untouched; it is still set with the launcher CLI (`memory_mb`), but loses the Home slider. - ~1480 lines, nearly all deletions (two files conflicted with later moves into `entry.rs` and `client_lib.rs`; those are hand-fixed). - Checked with `cargo check --tests` on the game workspace and `launcher/`, and `cargo fmt --check` on both. I did not run `tools/pr_ready.py` or the harnesses. **A real human here: a ram limit is fucking pointless, who in their right mind thought hmmm lets add this, all it does is force down render distance and crash the game if it cant make the ram limit. thats not a limit, thats just not how it works in rust. It will use however much ram it has to. This is just a ton a bloat that extends scope beyond what is needed.** 🤖 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>
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#7013
No description provided.