[PR #4729] [MERGED] Video Settings: Exclusive Fullscreen (and mode), Graphics API, Texture Filtering rows #5812

Closed
opened 2026-11-03 05:15:10 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/4729
Author: @levzzz5154
Created: 10/30/2026
Status: ✅ Merged
Merged: 10/30/2026
Merged by: @levzzz5154

Base: main ← Head: parity/16-video


📝 Commits (1)

  • 6907fe0 Video Settings: Exclusive Fullscreen, its mode, Graphics API, Texture Filtering and Anisotropic Filtering rows

📊 Changes

5 files changed (+682 additions, -17 deletions)

View changed files

📝 crates/horizon-client-input/src/window.rs (+246 -1)
📝 crates/horizon-client-render/src/options_ui.rs (+352 -2)
📝 crates/horizon-client-render/src/settings.rs (+33 -1)
📝 crates/horizon-client/src/game/options.rs (+31 -9)
📝 crates/horizon-client/src/game/startup_menu.rs (+20 -4)

📄 Description

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

Part of #3518

What and why

Video Settings lacked the options 26.3 lists in VideoSettingsScreen. Rows done:

  • VideoSettingsScreen.displayOptions: adds Exclusive Fullscreen (a real option: the window asks winit for an exclusive video mode, re-applied when the option changes while fullscreen, as Window.setExclusiveFullscreen; the frame limiter's exclusive_fullscreen now reads the window) and Graphics API (default / OpenGL / Vulkan, driving Horizon's own API setting and preferredGraphicsBackend in options.txt; the tooltip and the "Some of your changes require a game restart" line under the title follow isRestartRequiredToApplyVideoSettings).
  • VideoSettingsScreen.addOptions: adds the big Exclusive Fullscreen Mode row (IntRange -1..modeCount-1 over the monitor's video modes, "Current" / "Setting unavailable", stored as fullscreenResolution JSON as VideoMode.write); a changed mode applies when the Video screen is left (changeFullscreenVideoMode).
  • VideoSettingsScreen.qualityOptions (partial): adds Texture Filtering and Anisotropic Filtering in vanilla order, saved in options.txt, set by the Fast/Fancy/Fabulous presets (GraphicsPreset.apply) and flipping the preset to Custom. They are greyed out (Horizon's convention for saved-but-unread options): the terrain sampler is nearest-filtered with its own shader mip selection and has no RGSS or anisotropic path yet, which needs GPU work I could not check here.

WarningScreen is not in this PR: the base layout already exists (see the result notes), SafetyScreen/CodeOfConductScreen use it.

Kind

  • parity: Horizon now does what vanilla 26.3 does

Vanilla reference

VideoSettingsScreen.{addOptions,displayOptions,qualityOptions,addTitle}, Options.{exclusiveFullscreen,preferredGraphicsBackend,textureFiltering,maxAnisotropyBit,isRestartRequiredToApplyVideoSettings}, Window.{setExclusiveFullscreen,setPreferredFullscreenVideoMode,changeFullscreenVideoMode,applyExclusiveFullscreen}, VideoMode.{read,write,refreshRateLabel}, Monitor.getPreferredVideoMode, GraphicsPreset.apply.

Self-check

fmt --all, clippy -p horizon-client-input -p horizon-client-render -p horizon-client --all-targets -D warnings, test -p horizon-client-input --lib window::, test -p horizon-client-render --lib (627 passed; the language-dependent label test is #[ignore]d like its neighbours and passes with HORIZON_TEST_RESOURCES). No harness or game run (machine limits); CI verify is the full check.

🤖 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/4729 **Author:** [@levzzz5154](https://github.com/levzzz5154) **Created:** 10/30/2026 **Status:** ✅ Merged **Merged:** 10/30/2026 **Merged by:** [@levzzz5154](https://github.com/levzzz5154) **Base:** `main` ← **Head:** `parity/16-video` --- ### 📝 Commits (1) - [`6907fe0`](https://github.com/horizon-rust/horizon/commit/6907fe0a7950d0de9a04ce792704161548d16a81) Video Settings: Exclusive Fullscreen, its mode, Graphics API, Texture Filtering and Anisotropic Filtering rows ### 📊 Changes **5 files changed** (+682 additions, -17 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client-input/src/window.rs` (+246 -1) 📝 `crates/horizon-client-render/src/options_ui.rs` (+352 -2) 📝 `crates/horizon-client-render/src/settings.rs` (+33 -1) 📝 `crates/horizon-client/src/game/options.rs` (+31 -9) 📝 `crates/horizon-client/src/game/startup_menu.rs` (+20 -4) </details> ### 📄 Description > 🤖 Opened by levzzz5154's AI agent (Claude Code, Claude Sonnet 5.5), not by levzzz5154 personally. Part of #3518 ## What and why Video Settings lacked the options 26.3 lists in `VideoSettingsScreen`. Rows done: - `VideoSettingsScreen.displayOptions`: adds `Exclusive Fullscreen` (a real option: the window asks winit for an exclusive video mode, re-applied when the option changes while fullscreen, as `Window.setExclusiveFullscreen`; the frame limiter's `exclusive_fullscreen` now reads the window) and `Graphics API` (default / OpenGL / Vulkan, driving Horizon's own API setting and `preferredGraphicsBackend` in options.txt; the tooltip and the "Some of your changes require a game restart" line under the title follow `isRestartRequiredToApplyVideoSettings`). - `VideoSettingsScreen.addOptions`: adds the big `Exclusive Fullscreen Mode` row (IntRange -1..modeCount-1 over the monitor's video modes, "Current" / "Setting unavailable", stored as `fullscreenResolution` JSON as `VideoMode.write`); a changed mode applies when the Video screen is left (`changeFullscreenVideoMode`). - `VideoSettingsScreen.qualityOptions` (partial): adds `Texture Filtering` and `Anisotropic Filtering` in vanilla order, saved in options.txt, set by the Fast/Fancy/Fabulous presets (`GraphicsPreset.apply`) and flipping the preset to Custom. They are greyed out (Horizon's convention for saved-but-unread options): the terrain sampler is nearest-filtered with its own shader mip selection and has no RGSS or anisotropic path yet, which needs GPU work I could not check here. `WarningScreen` is not in this PR: the base layout already exists (see the result notes), `SafetyScreen`/`CodeOfConductScreen` use it. ## Kind - [x] parity: Horizon now does what vanilla 26.3 does ## Vanilla reference `VideoSettingsScreen.{addOptions,displayOptions,qualityOptions,addTitle}`, `Options.{exclusiveFullscreen,preferredGraphicsBackend,textureFiltering,maxAnisotropyBit,isRestartRequiredToApplyVideoSettings}`, `Window.{setExclusiveFullscreen,setPreferredFullscreenVideoMode,changeFullscreenVideoMode,applyExclusiveFullscreen}`, `VideoMode.{read,write,refreshRateLabel}`, `Monitor.getPreferredVideoMode`, `GraphicsPreset.apply`. ## Self-check `fmt --all`, `clippy -p horizon-client-input -p horizon-client-render -p horizon-client --all-targets -D warnings`, `test -p horizon-client-input --lib window::`, `test -p horizon-client-render --lib` (627 passed; the language-dependent label test is `#[ignore]`d like its neighbours and passes with `HORIZON_TEST_RESOURCES`). No harness or game run (machine limits); CI `verify` is the full check. 🤖 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-03 05:15:10 +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#5812
No description provided.