feat(menu): only the Minimum preset uses the Handheld profile; the weak laptop button is removed #3100

Merged
HumanBean merged 1 commit from HumanBean/Longshot:feat/handheld-minimum-only into main 2026-12-03 18:08:32 +00:00
Owner

Summary

The Low (6GB) Quality preset switched the game to the Handheld profile, which draws it at 1536x864. Players on it saw a lower resolution than their Output resolution and took it for a bug. Now only Minimum (4GB) sets Handheld; Low runs Docked.

The Debug tab's Set up for a weak laptop button is removed, in favour of the presets. The crash help in common-issues.md now says to pick Minimum (4GB). Minimum is not as light as the button was:

Setting The button Minimum
Upscaler and resolution The game's own, about 33% Your upscaler, 50%
Scaling filter, sharpness Plain, none Lanczos, 30%
Frame generation Off Left as it is
Intel shader options One at a time, quick compute builds Left as they are

The laptop capability and the start.laptopApplied fact stay, so declarations that name them still load; the fact is now always 0.

Read first: PRESETS in game/crates/longshot-game/src/engine_rules.rs, then game/mods/developer/mod.toml.

Testing

Tested: Linux, game-free only. cargo fmt --check, cargo test -p api -p longshot-game (all pass, with the new only_minimum_sets_the_handheld_profile) and clippy on both with warnings as errors. Python checks: test_intel_quick_compute, test_low_vram_texture_mips, test_menu_ini_keys, test_i18n_complete, test_menu_i18n, test_menu_restart, test_pipeline_share, test_doc_anchors. Not run in the game, and the menu's TypeScript tests have not run.

Still to test:

  • This PC: the menu mod's TypeScript tests and mise run test, expecting all to pass (by hand)
  • Any OS, in the game: pick Low (6GB) and restart, expecting Profile on Docked at the Output resolution; pick Minimum, expecting Handheld; the Debug tab has no weak laptop button (by hand)
  • A 6 GB card on Low, now docked: expect no memory problems and note the fps (by hand or Test Farm)
  • Integrated graphics with 4 CPU threads or fewer, on Minimum: expect it to start and note the fps (by hand)

Measurements

Verdict: not measured. Low (6GB) now renders at the Output resolution's size instead of 1536x864, so it costs more GPU time and memory.

Risks

  • Low (6GB) is heavier on 6 GB cards; unmeasured.
  • Weak integrated graphics lose the button's lighter settings (table above).
  • Players already on Low keep Handheld until they pick the preset again or change Profile.
  • A revert is enough.

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. (No: opened with --force on request)
  • mise run test passes (any failure that also fails on main is named). (Only the checks above ran)
  • Measured against main, or Measurements says why there is nothing to measure. (Low's new cost is not measured)
  • 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. (test_intel_quick_compute loses the checks of the removed button)
  • Screenshots of the same spot on main and here, for a change that shows on screen.
  • 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

## Summary The **Low (6GB)** Quality preset switched the game to the Handheld profile, which draws it at 1536x864. Players on it saw a lower resolution than their Output resolution and took it for a bug. Now only **Minimum (4GB)** sets Handheld; Low runs Docked. The Debug tab's **Set up for a weak laptop** button is removed, in favour of the presets. The crash help in `common-issues.md` now says to pick Minimum (4GB). Minimum is not as light as the button was: | Setting | The button | Minimum | |---|---|---| | Upscaler and resolution | The game's own, about 33% | Your upscaler, 50% | | Scaling filter, sharpness | Plain, none | Lanczos, 30% | | Frame generation | Off | Left as it is | | Intel shader options | One at a time, quick compute builds | Left as they are | The `laptop` capability and the `start.laptopApplied` fact stay, so declarations that name them still load; the fact is now always 0. Read first: `PRESETS` in `game/crates/longshot-game/src/engine_rules.rs`, then `game/mods/developer/mod.toml`. ## Testing **Tested:** Linux, game-free only. `cargo fmt --check`, `cargo test -p api -p longshot-game` (all pass, with the new `only_minimum_sets_the_handheld_profile`) and clippy on both with warnings as errors. Python checks: `test_intel_quick_compute`, `test_low_vram_texture_mips`, `test_menu_ini_keys`, `test_i18n_complete`, `test_menu_i18n`, `test_menu_restart`, `test_pipeline_share`, `test_doc_anchors`. **Not run in the game**, and the menu's TypeScript tests have not run. **Still to test:** - This PC: the menu mod's TypeScript tests and `mise run test`, expecting all to pass (by hand) - Any OS, in the game: pick Low (6GB) and restart, expecting Profile on Docked at the Output resolution; pick Minimum, expecting Handheld; the Debug tab has no weak laptop button (by hand) - A 6 GB card on Low, now docked: expect no memory problems and note the fps (by hand or Test Farm) - Integrated graphics with 4 CPU threads or fewer, on Minimum: expect it to start and note the fps (by hand) ## Measurements **Verdict:** not measured. Low (6GB) now renders at the Output resolution's size instead of 1536x864, so it costs more GPU time and memory. ## Risks - Low (6GB) is heavier on 6 GB cards; unmeasured. - Weak integrated graphics lose the button's lighter settings (table above). - Players already on Low keep Handheld until they pick the preset again or change Profile. - A revert is enough. ## Checklist ### Ready for review - [x] 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. (No: opened with `--force` on request) - [ ] `mise run test` passes (any failure that also fails on `main` is named). (Only the checks above ran) - [ ] Measured against `main`, or Measurements says why there is nothing to measure. (Low's new cost is not measured) - [x] 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. (`test_intel_quick_compute` loses the checks of the removed button) - [ ] Screenshots of the same spot on `main` and here, for a change that shows on screen. - [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)
feat(menu): only the Minimum preset uses the Handheld profile; the weak laptop button is removed
Some checks failed
CI / What the change needs (pull_request) Successful in 8s
CI / Third-party parts and guide screenshots (pull_request) Successful in 10s
PR description / Title and description (pull_request_target) Failing after 5s
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Successful in 15s
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Failing after 1m18s
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Failing after 17m16s
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Successful in 14m2s
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Successful in 13m28s
CI / Website build and checks (pull_request) Failing after 1m36s
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Failing after 49m23s
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Failing after 1h0m26s
8768d88489
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Member

Possibly related, for context:

  • PR #3082 WIP: feat(graphics): PC quality preset ladder, Potato to Ultra, with graphics detail rows — Overlapping quality-preset changes alter preset ladder and Handheld behavior
  • PR #735 perf(vk): the VRAM budgets set by the card, not a menu row or a preset; 8 GB cards' mirrors 2 GB — Previously merged VRAM/preset work mentions weak-laptop settings and low-memory presets
Possibly related, for context: - PR #3082 WIP: feat(graphics): PC quality preset ladder, Potato to Ultra, with graphics detail rows — Overlapping quality-preset changes alter preset ladder and Handheld behavior - PR #735 perf(vk): the VRAM budgets set by the card, not a menu row or a preset; 8 GB cards' mirrors 2 GB — Previously merged VRAM/preset work mentions weak-laptop settings and low-memory presets
HumanBean changed title from WIP: feat(menu): only the Minimum preset uses the Handheld profile; the weak laptop button is removed to feat(menu): only the Minimum preset uses the Handheld profile; the weak laptop button is removed 2026-12-03 18:08:27 +00:00
HumanBean deleted branch feat/handheld-minimum-only 2026-12-03 18:08:32 +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!3100
No description provided.