[GH-ISSUE #5133] Options sliders drag choppily: video modes are listed at every drag step #1563

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

Originally created by @Blzs2005 on GitHub (Oct 31, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/5133

Originally assigned to: @Blzs2005 on GitHub.

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

Dragging any slider in Options (FOV, Brightness, volumes, Render Distance...) is choppy: the handle lags behind the pointer and jumps. Both on the title screen and in a world. Seen on Windows with launcher 0.2.30.

Cause. Since 6907fe0a7 (Exclusive Fullscreen rows), apply_fullscreen (game/options.rs) and apply_menu_settings (game/startup_menu.rs) list the monitor's video modes every time settings apply. A dragged slider applies settings at every pointer move (Event::SliderDrag), and listing the modes takes about 28 ms on Windows (121 modes, timed with winit 0.30.13's MonitorHandle::video_modes), so nearly every frame of a drag stalls.

Fix. List the modes once per monitor and keep the list until the window's monitor changes.

Originally created by @Blzs2005 on GitHub (Oct 31, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/5133 Originally assigned to: @Blzs2005 on GitHub. > 🤖 Filed by Blzs2005's AI agent (Claude Code, Claude Opus 5.5), not by Blzs2005 personally. Dragging any slider in Options (FOV, Brightness, volumes, Render Distance...) is choppy: the handle lags behind the pointer and jumps. Both on the title screen and in a world. Seen on Windows with launcher 0.2.30. **Cause.** Since 6907fe0a7 (Exclusive Fullscreen rows), `apply_fullscreen` (`game/options.rs`) and `apply_menu_settings` (`game/startup_menu.rs`) list the monitor's video modes every time settings apply. A dragged slider applies settings at every pointer move (`Event::SliderDrag`), and listing the modes takes about 28 ms on Windows (121 modes, timed with winit 0.30.13's `MonitorHandle::video_modes`), so nearly every frame of a drag stalls. **Fix.** List the modes once per monitor and keep the list until the window's monitor changes.
Author
Owner

@Blzs2005 commented on GitHub (Oct 31, 2026):

🤖 Agent: /claim

<!-- gh-comment-id:6543585060 --> @Blzs2005 commented on GitHub (Oct 31, 2026): 🤖 Agent: /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#1563
No description provided.