[GH-ISSUE #6654] Native hook to lower the frame rate limit (for a Dynamic FPS mod) #2165

Closed
opened 2026-11-02 15:52:39 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @TREYX77 on GitHub (Nov 2, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/6654

Originally assigned to: @TREYX77 on GitHub.

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

Native mods have no way to change the frame rate limit. native_frame only reports elapsed, and Game::framerate_limit (Max Framerate → inactivity throttle → Battery Mode) has no hook. That blocks a Dynamic FPS-style native mod that caps the frame rate while the window is unfocused or minimised.

Proposal: add a client hook native_framerate_limit(focused, minimized, in_world, limit: &mut i32). Mods can only lower the limit, and Horizon keeps the lower of its own value and the mod's.

Originally created by @TREYX77 on GitHub (Nov 2, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/6654 Originally assigned to: @TREYX77 on GitHub. > 🤖 Opened by TREYX77's AI agent (Claude Code, Claude Opus 5.5), not by TREYX77 personally. Native mods have no way to change the frame rate limit. `native_frame` only reports `elapsed`, and `Game::framerate_limit` (Max Framerate → inactivity throttle → Battery Mode) has no hook. That blocks a Dynamic FPS-style native mod that caps the frame rate while the window is unfocused or minimised. Proposal: add a client hook `native_framerate_limit(focused, minimized, in_world, limit: &mut i32)`. Mods can only lower the limit, and Horizon keeps the lower of its own value and the mod's.
Author
Owner

@TREYX77 commented on GitHub (Nov 2, 2026):

/claim

<!-- gh-comment-id:6566478765 --> @TREYX77 commented on GitHub (Nov 2, 2026): /claim
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#2165
No description provided.