feat(reshade): remove Compare ReShade Preset #3158

Merged
HumanBean merged 1 commit from HumanBean/Longshot:feat/remove-reshade-compare into main 2026-12-04 06:42:13 +00:00
Owner

Summary

Removes Compare ReShade Preset. The row was broken: since #3105 the toolbar was still the old C++ drawing. The ReShade preset row already shows each preset as it is picked, so the feature goes instead of being rebuilt.

Gone with it: the comparison bar and its input handling, the renderer's preview and bypass of the effect, the menu hit map and the overlay palette and drawing helpers only the bar used, the row's strings in every language, and its documentation. One commit.

Known gaps:

  • vk_paint's text drawing and font loading are now unused and are left in.
  • changed in vk_menu.cpp is now set but never read.

Testing

Tested: headless game runs on Linux, NVIDIA RTX 3090, driver 620.70.06, from a repository save (kokiri-start).

  • On this head (4bb670a0d389): the preset was set to Off, Warm, Cool, User and Off again, and the menu's tabs were walked. No crash line or validation message. With User picked and no file, the log said ReShade: Could not read the ReShade preset; not compared with main.
  • On the build before the last rebase (f4eda66f): the same preset changes, and the menu closed and reopened with Esc, Insert and F1.

Graphics β†’ Post-processing, the page the row was on, has not been seen in a run: the test script did not reach it in either.

Checks, Linux, no full suite. On this head: the runtime builds; test_menu_hit, test_menu_i18n, test_reshade_hot_reload, test_i18n_complete and test_menu_ini_keys pass. Before the rebase (no conflicts): 100 Python checks, cargo test of api and longshot-game, the menu mod's tests, the website's graphics settings test, and g++ and llvm-mingw syntax checks.

Still to test:

  • Open Graphics β†’ Post-processing: no Compare row, and the remaining rows work (by hand).
  • Windows build and run (by hand).

Measurements

Nothing to measure: code is only removed, none of it on a frame's path outside the comparison.

Risks

  • Players: the row is gone. Presets and the saved choice are unchanged.
  • No switch; reverting brings back the broken row.

Checklist

Ready for review

  • One topic, on current main; the title is a Conventional Commit.
  • Tested on my own PC, in the game for a change the game runs, as Testing says.
  • mise run test passes. (Not run on this branch.)
  • Measured against main, or Measurements says why there is nothing to measure.
  • No game files, build output or hand-edited generated files; third_party/ untouched; nothing GPL-incompatible.

When it applies

  • A check under tests/ that reads changed source is updated, not weakened.
  • Host code builds on Windows (llvm-mingw) and Linux, with UTF-8 paths. (Linux built; Windows syntax-checked before the rebase.)
  • Screenshots of the same spot on main and here, for a change that shows on screen. (Not taken.)
  • Docs updated.
  • AI assistance recorded with Assisted-by: / Co-Authored-By: trailers.

Ready to merge

  • Everything in Still to test has run, its results in Tested.
  • Tier 1 hardware it can affect is tested (docs/dev/standards.md, "Hardware tiers").
  • Approved in review, every comment answered.
  • CI passes on the head; on current main, measured again or a comment says why the numbers still hold.

πŸ€– Generated with Claude Code

https://claude.ai/code/session_017vw8e1rSeTzGtqzZNG1YZH

## Summary Removes **Compare ReShade Preset**. The row was broken: since #3105 the toolbar was still the old C++ drawing. The **ReShade preset** row already shows each preset as it is picked, so the feature goes instead of being rebuilt. Gone with it: the comparison bar and its input handling, the renderer's preview and bypass of the effect, the menu hit map and the overlay palette and drawing helpers only the bar used, the row's strings in every language, and its documentation. One commit. Known gaps: - `vk_paint`'s text drawing and font loading are now unused and are left in. - `changed` in `vk_menu.cpp` is now set but never read. ## Testing **Tested:** headless game runs on Linux, NVIDIA RTX 3090, driver 620.70.06, from a repository save (`kokiri-start`). - On this head (`4bb670a0d389`): the preset was set to Off, Warm, Cool, User and Off again, and the menu's tabs were walked. No crash line or validation message. With User picked and no file, the log said `ReShade: Could not read the ReShade preset`; not compared with `main`. - On the build before the last rebase (`f4eda66f`): the same preset changes, and the menu closed and reopened with Esc, Insert and F1. **Graphics β†’ Post-processing, the page the row was on, has not been seen in a run:** the test script did not reach it in either. Checks, Linux, no full suite. On this head: the runtime builds; `test_menu_hit`, `test_menu_i18n`, `test_reshade_hot_reload`, `test_i18n_complete` and `test_menu_ini_keys` pass. Before the rebase (no conflicts): 100 Python checks, `cargo test` of `api` and `longshot-game`, the menu mod's tests, the website's graphics settings test, and g++ and llvm-mingw syntax checks. **Still to test:** - Open Graphics β†’ Post-processing: no Compare row, and the remaining rows work (by hand). - Windows build and run (by hand). ## Measurements Nothing to measure: code is only removed, none of it on a frame's path outside the comparison. ## Risks - **Players:** the row is gone. Presets and the saved choice are unchanged. - No switch; reverting brings back the broken row. ## Checklist ### Ready for review - [x] One topic, on current `main`; the title is a Conventional Commit. - [x] Tested on my own PC, in the game for a change the game runs, as Testing says. - [ ] `mise run test` passes. (Not run on this branch.) - [x] Measured against `main`, or Measurements says why there is nothing to measure. - [x] No game files, build output or hand-edited generated files; `third_party/` untouched; nothing GPL-incompatible. ### When it applies - [x] A check under `tests/` that reads changed source is updated, not weakened. - [ ] Host code builds on Windows (llvm-mingw) and Linux, with UTF-8 paths. (Linux built; Windows syntax-checked before the rebase.) - [ ] Screenshots of the same spot on `main` and here, for a change that shows on screen. (Not taken.) - [x] Docs updated. - [x] AI assistance recorded with `Assisted-by:` / `Co-Authored-By:` trailers. ### Ready to merge - [ ] Everything in Still to test has run, its results in Tested. - [ ] Tier 1 hardware it can affect is tested (docs/dev/standards.md, "Hardware tiers"). - [ ] Approved in review, every comment answered. - [ ] CI passes on the head; on current `main`, measured again or a comment says why the numbers still hold. πŸ€– Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_017vw8e1rSeTzGtqzZNG1YZH
feat(reshade): remove Compare ReShade Preset
Some checks failed
CI / What the change needs (pull_request) Successful in 8s
CI / Third-party parts and guide screenshots (pull_request) Successful in 13s
PR description / Title and description (pull_request_target) Failing after 37s
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Successful in 2m33s
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Failing after 1m15s
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Failing after 20m48s
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Successful in 15m48s
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Successful in 15m21s
CI / Website build and checks (pull_request) Failing after 41s
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Successful in 54m15s
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Failing after 1h0m9s
4bb670a0d3
The comparison bar was drawn and driven by the renderer while the menu's page had the input, and the row is not kept:
the ReShade preset row previews the same presets. Goes with it: the renderer's preview and bypass of the effect, the
menu's hit map and the overlay palette and drawing helpers only the bar used, the row's texts in every language, and
its documentation.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017vw8e1rSeTzGtqzZNG1YZH
Author
Owner

Tested in game: Linux, NVIDIA RTX 3090, driver 620.70.06, headless, kokiri-start, head 4bb670a0d3: ReShade preset set to Off, Warm, Cool, User, Off and the menu's tabs walked, no crash or validation line. The Graphics -> Post-processing page itself was not reached.

Tested in game: Linux, NVIDIA RTX 3090, driver 620.70.06, headless, kokiri-start, head 4bb670a0d389: ReShade preset set to Off, Warm, Cool, User, Off and the menu's tabs walked, no crash or validation line. The Graphics -> Post-processing page itself was not reached.
Member

Possibly related, for context:

  • PR #1861 feat(reshade): add Vulkan presets and live comparison β€” Merged PR originally added the ReShade live-comparison feature this removes.
Possibly related, for context: - PR #1861 feat(reshade): add Vulkan presets and live comparison β€” Merged PR originally added the ReShade live-comparison feature this removes.
Author
Owner

Removing because we have proper compact mode now

Removing because we have proper compact mode now
Author
Owner
@review
BeanBot left a comment

Recommendation: Approve. The code is ready: only testing is left. The broken comparison row and its renderer-only path are removed, but the changed page and visible preset behavior have not been observed in a game run. Windows and the other affected Tier 1 systems also lack recorded runs on this head. Recommend approval; not approved on the forge.

Removes the broken comparison toolbar and simplifies its menu and renderer code. Players can still select presets, but lose the toolbar's temporary comparison and restoration of the saved choice.

Testing before merging (1) (runs on the systems it can change; it doesn't hold the recommendation)

  • L1 game/mods/graphics/mod.toml:493: The affected page and its remaining controls have not been seen in a game run. (more on the line) Do: Run the page on this head, compare its appearance with main, and exercise Off, built-in and imported presets, rescan, and menu navigation. Include Windows and the affected Tier 1 hardware in the recorded runs.

Checks: Still running: 11 checks.

More: does it help, other systems, switches, what was read

Does it help: Unproven: the recorded Linux headless run changed presets without a crash or validation message, but did not reach the affected page or verify the picture. This is not a performance change.

Other systems: The ordinary ReShade render path and menu input are touched on Windows and Linux, including AMD and Steam Deck. The removed preview state was only used by the comparison toolbar; the recorded run does not show the remaining page or effects on screen.

Switches: None added, changed or removed.

Reviewed: 4bb670a0d3 against 1c8c2634c7: Read the repository rules and template, commit, diffs, ReShade menu module, runtime declarations and changed runtime paths, menu input around the changes, hit and theme headers, and relevant tests. Skimmed translations, documentation and surrounding large files; vk_menu.cpp and the complete changed test and settings files were not read in full. docs/review-checklist.md and the adjacent Tooling checkout were unavailable.; nothing run (a code review).

Checked and fine:

  • The commit records AI assistance with a Co-Authored-By trailer.
  • The diff changes no renderer API version, shader, switch, third-party file or game-derived artifact.
  • The removed comparison translations and documentation correspond to the removed controls.
  • The recorded headless run exercised preset changes on Linux without reported crashes or validation messages.

Testing: No project code or tests were run during this read-only review. The supplied CI checks are still running.

Overlaps and merge order: Unknown; the network is closed.


Automated code review by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.

**Recommendation: Approve.** The code is ready: only testing is left. The broken comparison row and its renderer-only path are removed, but the changed page and visible preset behavior have not been observed in a game run. Windows and the other affected Tier 1 systems also lack recorded runs on this head. Recommend approval; not approved on the forge. Removes the broken comparison toolbar and simplifies its menu and renderer code. Players can still select presets, but lose the toolbar's temporary comparison and restoration of the saved choice. **Testing before merging (1)** (runs on the systems it can change; it doesn't hold the recommendation) - **L1** `game/mods/graphics/mod.toml:493`: The affected page and its remaining controls have not been seen in a game run. (more on the line) **Do:** Run the page on this head, compare its appearance with main, and exercise Off, built-in and imported presets, rescan, and menu navigation. Include Windows and the affected Tier 1 hardware in the recorded runs. **Checks:** Still running: 11 checks. <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Unproven: the recorded Linux headless run changed presets without a crash or validation message, but did not reach the affected page or verify the picture. This is not a performance change. **Other systems:** The ordinary ReShade render path and menu input are touched on Windows and Linux, including AMD and Steam Deck. The removed preview state was only used by the comparison toolbar; the recorded run does not show the remaining page or effects on screen. **Switches:** None added, changed or removed. **Reviewed:** 4bb670a0d389 against 1c8c2634c715: Read the repository rules and template, commit, diffs, ReShade menu module, runtime declarations and changed runtime paths, menu input around the changes, hit and theme headers, and relevant tests. Skimmed translations, documentation and surrounding large files; vk_menu.cpp and the complete changed test and settings files were not read in full. docs/review-checklist.md and the adjacent Tooling checkout were unavailable.; nothing run (a code review). **Checked and fine:** - The commit records AI assistance with a Co-Authored-By trailer. - The diff changes no renderer API version, shader, switch, third-party file or game-derived artifact. - The removed comparison translations and documentation correspond to the removed controls. - The recorded headless run exercised preset changes on Linux without reported crashes or validation messages. **Testing:** No project code or tests were run during this read-only review. The supplied CI checks are still running. **Overlaps and merge order:** Unknown; the network is closed. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.</sub>
@ -493,13 +493,6 @@ presetExempt = true
abi = ["renderer"]
Member

L1 (should fix): The affected page and its remaining controls have not been seen in a game run.

When: The recorded headless run walked tabs but did not open Graphics β†’ Post-processing, so it did not verify that the removed row is absent or that the remaining preset and user-file controls work visibly.

Do: Run the page on this head, compare its appearance with main, and exercise Off, built-in and imported presets, rescan, and menu navigation. Include Windows and the affected Tier 1 hardware in the recorded runs.

**L1** (should fix): The affected page and its remaining controls have not been seen in a game run. *When:* The recorded headless run walked tabs but did not open Graphics β†’ Post-processing, so it did not verify that the removed row is absent or that the remaining preset and user-file controls work visibly. **Do:** Run the page on this head, compare its appearance with main, and exercise Off, built-in and imported presets, rescan, and menu navigation. Include Windows and the affected Tier 1 hardware in the recorded runs.
HumanBean changed title from WIP: feat(reshade): remove Compare ReShade Preset to feat(reshade): remove Compare ReShade Preset 2026-12-04 06:42:08 +00:00
HumanBean deleted branch feat/remove-reshade-compare 2026-12-04 06:42:13 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
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
MagicBeanDev/Longshot!3158
No description provided.