fix(menu): keep renderer locks and upscaler_why out of declarations generation to prevent 5 ms menu faults #3223

Merged
HumanBean merged 2 commits from Jer9/Longshot:fix/menu-upscaler-budget into main 2026-12-05 17:03:33 +00:00
Member

Summary

What a player notices:

  • Helps: Switching the Upscaler (for example between FSR 4, DLSS / DLAA, FSR 3.1, and Game's own) or toggling renderer locks (fsr4_model, dlss_model, dlss_pre_bloom, upscaling) no longer triggers repeated system/menu 5 ms frame-listener faults and 5 s menu stops.
  • No measurable impact: Steady-state gameplay with the Insert menu closed. (Note: Sharpness occasionally disappearing in place without menu faults was observed separately and filed as #3229.)

Root cause & fix:
gpu/vk/vk_menu.cpp (menu_capabilities) hashes out->locked and out->upscaler_why into LsCapabilities::generation, which settings_host.rs (generation_of()) hashed into the declarations generation. Whenever Upscaler changed and toggled renderer locks, generation_of() advanced, invalidating decls_cache in settings_host.rs and forcing system/menu (game/modapi/settings-host/store.ts) to re-read and re-lay out every tab across consecutive frames past its 5 ms frame-listener budget (3 faults in a minute -> 5 s stop).

This PR separates capability lists from lock/reason state:

  • game/crates/api/src/services/settings_host.rs: Replaced caps_generation() with caps_hashes() / caps_hashes_of(), keeping generation_of() tied to capability lists only (n_sizes, n_monitors, n_gpus, n_menu_langs, refresh_mhz, has, reshade_files, outputs, mics, aspects, aspect_monitors, nfc_tags) and hashing locked() + upscaler_why() into Fact::CapsState.
  • game/crates/api/src/services/settings_push.rs: Added Fact::CapsState so lock/reason changes rebuild watched rows in the same generation and push only rows whose state actually changed.

Prior work & related:

  • #3098 (merged): cached settingsHost.decls per generation, which does not prevent generation_of() from advancing when renderer locks toggle.
  • #3185: same system/menu 5 ms settingsHost.decls fault signature.
  • #3208 (open): moves Insert menu logic out of gpu/vk/vk_menu.cpp into Rust, but still feeds c.generation in settings_host.rs and keeps not_fsr4 / not_dlss / not_dlaa / window_is_output locks. Because this fix is confined to settings_host.rs and settings_push.rs, it avoids vk_menu.cpp conflicts.

Testing

Tested:

  • In-game (Windows 11 build 26300, AMD Ryzen AI 7 350, Radeon 860M, Adrenalin 26.10.1 LLPC, pr-3223-a725d2de): Toggled Upscaler with AMD FSR 4.1.2 (INT8 Lite stand-in) active; system/menu logged 0 faults and 0 stops across the entire session (settingsHost.decls ran once at 3.2 ms on initial menu open).
  • Unit & menu behavioral tests (before final 1-commit rebase onto 3a0f7d8f7):
    • cargo test -p api --lib --locked --release --target x86_64-pc-windows-gnullvm -- settings_host settings_push: 30 passed, 0 failed (includes a_lock_or_an_upscalers_reason_moves_the_rows_not_the_generation and a_lock_or_an_upscalers_reason_builds_every_watched_row_again_in_the_same_generation).
    • tests/run_all.py --changed forge/main: 4 passed, 0 failed, 1 skipped (test_microphone_test_gain.py: clang not in PATH). Full tests/run_all.py: 701 passed, 82 skipped, 128 failed (unrelated C++/Vulkan/Rust checks due to clang/clang++/cargo not in sandbox PATH).

Still to test:

  • NVIDIA (DLSS / DLAA): toggle Upscaler repeatedly with HOS_FRAME_COST=1 and verify 0 system/menu faults/stops (@Beanstalk).

Measurements

Not a performance change; no steady-state FPS/frame-time delta expected. Menu-open HOS_FRAME_COST=1 before/after fault-count verification is still to run before marking ready.

Risks

  • Low risk: decls() does not read caps.locked() or caps.upscaler_why() (both are row state only), and Fact::CapsState rebuilds watched rows whenever either changes.
  • Reversible by reverting this commit.

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 (any failure that also fails on main is named).
  • 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 fix: a game-free test that fails on main and passes here.
  • Host code builds on Windows (llvm-mingw) and Linux, with UTF-8 paths.
  • 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.
## Summary **What a player notices:** - **Helps:** Switching the `Upscaler` (for example between FSR 4, DLSS / DLAA, FSR 3.1, and Game's own) or toggling renderer locks (`fsr4_model`, `dlss_model`, `dlss_pre_bloom`, `upscaling`) no longer triggers repeated `system/menu` 5 ms frame-listener faults and 5 s menu stops. - **No measurable impact:** Steady-state gameplay with the Insert menu closed. (Note: `Sharpness` occasionally disappearing in place without menu faults was observed separately and filed as #3229.) **Root cause & fix:** `gpu/vk/vk_menu.cpp` (`menu_capabilities`) hashes `out->locked` and `out->upscaler_why` into `LsCapabilities::generation`, which `settings_host.rs` (`generation_of()`) hashed into the declarations generation. Whenever `Upscaler` changed and toggled renderer locks, `generation_of()` advanced, invalidating `decls_cache` in `settings_host.rs` and forcing `system/menu` (`game/modapi/settings-host/store.ts`) to re-read and re-lay out every tab across consecutive frames past its 5 ms frame-listener budget (3 faults in a minute -> 5 s stop). This PR separates capability lists from lock/reason state: - `game/crates/api/src/services/settings_host.rs`: Replaced `caps_generation()` with `caps_hashes()` / `caps_hashes_of()`, keeping `generation_of()` tied to capability lists only (`n_sizes`, `n_monitors`, `n_gpus`, `n_menu_langs`, `refresh_mhz`, `has`, `reshade_files`, `outputs`, `mics`, `aspects`, `aspect_monitors`, `nfc_tags`) and hashing `locked()` + `upscaler_why()` into `Fact::CapsState`. - `game/crates/api/src/services/settings_push.rs`: Added `Fact::CapsState` so lock/reason changes rebuild watched rows in the same generation and push only rows whose state actually changed. **Prior work & related:** - `#3098` (merged): cached `settingsHost.decls` per generation, which does not prevent `generation_of()` from advancing when renderer locks toggle. - `#3185`: same `system/menu` 5 ms `settingsHost.decls` fault signature. - `#3208` (open): moves Insert menu logic out of `gpu/vk/vk_menu.cpp` into Rust, but still feeds `c.generation` in `settings_host.rs` and keeps `not_fsr4` / `not_dlss` / `not_dlaa` / `window_is_output` locks. Because this fix is confined to `settings_host.rs` and `settings_push.rs`, it avoids `vk_menu.cpp` conflicts. ## Testing **Tested:** - **In-game (Windows 11 build 26300, AMD Ryzen AI 7 350, Radeon 860M, Adrenalin 26.10.1 LLPC, `pr-3223-a725d2de`):** Toggled `Upscaler` with AMD FSR 4.1.2 (INT8 Lite stand-in) active; `system/menu` logged **0 faults and 0 stops** across the entire session (`settingsHost.decls` ran once at `3.2 ms` on initial menu open). - **Unit & menu behavioral tests (before final 1-commit rebase onto `3a0f7d8f7`):** - `cargo test -p api --lib --locked --release --target x86_64-pc-windows-gnullvm -- settings_host settings_push`: 30 passed, 0 failed (includes `a_lock_or_an_upscalers_reason_moves_the_rows_not_the_generation` and `a_lock_or_an_upscalers_reason_builds_every_watched_row_again_in_the_same_generation`). - `tests/run_all.py --changed forge/main`: 4 passed, 0 failed, 1 skipped (`test_microphone_test_gain.py`: `clang` not in PATH). Full `tests/run_all.py`: 701 passed, 82 skipped, 128 failed (unrelated C++/Vulkan/Rust checks due to `clang`/`clang++`/`cargo` not in sandbox PATH). **Still to test:** - NVIDIA (DLSS / DLAA): toggle `Upscaler` repeatedly with `HOS_FRAME_COST=1` and verify `0` `system/menu` faults/stops (`@Beanstalk`). ## Measurements Not a performance change; no steady-state FPS/frame-time delta expected. Menu-open `HOS_FRAME_COST=1` before/after fault-count verification is still to run before marking ready. ## Risks - Low risk: `decls()` does not read `caps.locked()` or `caps.upscaler_why()` (both are row state only), and `Fact::CapsState` rebuilds watched rows whenever either changes. - Reversible by reverting this commit. ## 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. - [x] `mise run test` passes (any failure that also fails on `main` is named). - [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 fix: a game-free test that fails on `main` and passes here. - [x] Host code builds on Windows (llvm-mingw) and Linux, with UTF-8 paths. - [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.
fix(menu): a lock that moves with the Upscaler pushes its rows again, not a new generation that rebuilds every tab past 5 ms
Some checks failed
PR description / Title and description (pull_request_target) Successful in 8s
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Has been cancelled
CI / Third-party parts and guide screenshots (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
a725d2deee
Changing the Upscaler changes the renderer's locks (Render resolution under DLAA, the FSR 4 model, DLAA before bloom). They fed the declarations' generation, so the Insert menu read and laid out every tab again over the next frames, each past the 5 ms its frame listener may: 3 faults, the menu stopped for 5 s and its rows (Sharpness among them) gone. The generation now takes the capabilities' lists alone; the locks and the upscalers' reasons are a fact (CapsState) that builds the watched rows again.

Assisted-by: Claude Opus 5.5
Author
Member
@review
BeanBot left a comment

Recommendation: Approve. The code is ready: only testing is left (a run of the change itself). The change appears to prevent lock and reason changes from invalidating declarations, but the reported menu faults have not yet been checked in the game on this head. The required checks are also still running. Recommend approval; not approved on the forge.

It keeps cached menu declarations when renderer locks or upscaler reasons change and rebuilds watched row states instead. This targets the reported menu stops, at the cost of rebuilding all watched rows when that capability state changes.

Testing before merging (1) (the change behaves the same on every system: one run of the change itself is enough; it doesn't hold the recommendation)

  • L1 game/crates/api/src/services/settings_push.rs:264: The claimed fix has not yet been verified in the game on the current head. (more on the line) Do: On the current head, reproduce the switch sequence against the base and check the fault count, menu stops and Sharpness visibility with HOS_FRAME_COST enabled.

Checks: Still running: 11 checks.

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

Does it help: Unproven. The reported unit and menu tests passed before the final rebase, but there is no before-and-after game run showing that the 5 ms faults and menu stops are gone.

Other systems: The settings host and its watched-row pushes run on both Windows and Linux and can serve mods holding settings.host. The change also hashes capabilities periodically while the game runs; no current-head game run establishes its effect on menu responsiveness or gameplay.

Switches: None added, changed or removed.

Reviewed: a725d2deee against 3a0f7d8f7f: Read the diff, commit, repository rules and pull request template; inspected the changed code, capability structure, renderer capability producer, push callers and menu consumers. The large settings_host.rs output was truncated, so parts of that file were only skimmed. docs/review-checklist.md and ../Tooling/AGENTS.md were absent. No recorded runs, translations or generated files were changed.; nothing run (a code review).

Checked and fine:

  • The commit records AI assistance with an Assisted-by trailer.
  • The diff contains only the two Rust source files and no game-derived output.
  • Lock and upscaler reason changes are excluded from the new declarations hash and included in the watched-row fact.

Testing: No commands from the project or tests were run, as requested. The pull request reports 30 API tests and one menu behavioral test passing before the final rebase; current-head CI is still running.

Overlaps and merge order: The description identifies open PR #3208 as related; its current diff was not available for comparison.


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

**Recommendation: Approve.** The code is ready: only testing is left (a run of the change itself). The change appears to prevent lock and reason changes from invalidating declarations, but the reported menu faults have not yet been checked in the game on this head. The required checks are also still running. Recommend approval; not approved on the forge. It keeps cached menu declarations when renderer locks or upscaler reasons change and rebuilds watched row states instead. This targets the reported menu stops, at the cost of rebuilding all watched rows when that capability state changes. **Testing before merging (1)** (the change behaves the same on every system: one run of the change itself is enough; it doesn't hold the recommendation) - **L1** `game/crates/api/src/services/settings_push.rs:264`: The claimed fix has not yet been verified in the game on the current head. (more on the line) **Do:** On the current head, reproduce the switch sequence against the base and check the fault count, menu stops and Sharpness visibility with HOS_FRAME_COST enabled. **Checks:** Still running: 11 checks. <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Unproven. The reported unit and menu tests passed before the final rebase, but there is no before-and-after game run showing that the 5 ms faults and menu stops are gone. **Other systems:** The settings host and its watched-row pushes run on both Windows and Linux and can serve mods holding settings.host. The change also hashes capabilities periodically while the game runs; no current-head game run establishes its effect on menu responsiveness or gameplay. **Switches:** None added, changed or removed. **Reviewed:** a725d2deee7c against 3a0f7d8f7f34: Read the diff, commit, repository rules and pull request template; inspected the changed code, capability structure, renderer capability producer, push callers and menu consumers. The large settings_host.rs output was truncated, so parts of that file were only skimmed. docs/review-checklist.md and ../Tooling/AGENTS.md were absent. No recorded runs, translations or generated files were changed.; nothing run (a code review). **Checked and fine:** - The commit records AI assistance with an Assisted-by trailer. - The diff contains only the two Rust source files and no game-derived output. - Lock and upscaler reason changes are excluded from the new declarations hash and included in the watched-row fact. **Testing:** No commands from the project or tests were run, as requested. The pull request reports 30 API tests and one menu behavioral test passing before the final rebase; current-head CI is still running. **Overlaps and merge order:** The description identifies open PR #3208 as related; its current diff was not available for comparison. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by Jer9. Nothing was run; a maintainer decides.</sub>
@ -256,6 +261,7 @@ impl Push {
let d = deps.get(k.as_str());
fresh
|| live
|| moved.contains(&Fact::CapsState)
Member

L1 (should fix): The claimed fix has not yet been verified in the game on the current head.

When: When a player repeatedly changes the Upscaler, rebuilding every watched row could still exceed the menu listener's budget; the reported tests do not measure that path in the game.

Do: On the current head, reproduce the switch sequence against the base and check the fault count, menu stops and Sharpness visibility with HOS_FRAME_COST enabled.

**L1** (should fix): The claimed fix has not yet been verified in the game on the current head. *When:* When a player repeatedly changes the Upscaler, rebuilding every watched row could still exceed the menu listener's budget; the reported tests do not measure that path in the game. **Do:** On the current head, reproduce the switch sequence against the base and check the fault count, menu stops and Sharpness visibility with HOS_FRAME_COST enabled.
Jer9 changed title from WIP: fix(menu): keep renderer locks and upscaler_why out of declarations generation to prevent 5 ms menu faults to fix(menu): keep renderer locks and upscaler_why out of declarations generation to prevent 5 ms menu faults 2026-12-05 04:56:10 +00:00
BeanBot left a comment

Recommendation: Approve. The reported current-head AMD game run satisfies L1, with no menu faults or stops while toggling the upscaler. The PR still awaits its stated NVIDIA DLSS/DLAA run and CI results. Nothing blocking is left. Recommend approval; not approved on the forge.

Keeps renderer lock and upscaler-reason changes from invalidating menu declarations, while rebuilding watched rows when their state changes. This avoids repeated full menu layouts at the cost of rebuilding watched rows when capability state changes.

Since the last review (on a725d2deee)
Resolved: L1 (The claimed fix has not yet been verified in the game on the current head.)

Checks: Still running: 11 checks.

Also noticed (2; not asked for, not blocking)
  • The PR still lists NVIDIA DLSS/DLAA verification as outstanding.
  • CI checks are still running.
More: does it help, other systems, switches, what was read

Does it help: Yes, on the reported Windows AMD run: the current-head build logged 0 faults and 0 stops, and initial declarations took 3.2 ms. No before/after fault count is reported; NVIDIA verification remains outstanding.

Other systems: The changed host path also runs on Linux and with other upscalers. The reported game run covers Windows on AMD; NVIDIA DLSS/DLAA remains to be tested.

Switches: None.

Reviewed: a725d2deee against 3a0f7d8f7f: Read the repository rules and diff; inspected the changed code and related capability and push references. The full changed files were not completely read because the combined output was truncated. The neighboring Tooling rules checkout was unavailable.; nothing run (a code review).

Checked and fine:

  • Capability state changes mark watched rows dirty without advancing the declarations generation.
  • The added tests cover generation stability and rebuilding watched rows.

Testing: No tests or game runs were executed during this review. The PR reports a current-head AMD game run and unit tests from before the final rebase.

Overlaps and merge order: The PR identifies #3208 as related; its description says this change avoids vk_menu.cpp conflicts.


Automated code review by BeanBot (gpt-6.1-terra), asked for by BeanBot, as Jer9 took it out of WIP. Nothing was run; a maintainer decides.

**Recommendation: Approve.** The reported current-head AMD game run satisfies L1, with no menu faults or stops while toggling the upscaler. The PR still awaits its stated NVIDIA DLSS/DLAA run and CI results. Nothing blocking is left. Recommend approval; not approved on the forge. Keeps renderer lock and upscaler-reason changes from invalidating menu declarations, while rebuilding watched rows when their state changes. This avoids repeated full menu layouts at the cost of rebuilding watched rows when capability state changes. **Since the last review** (on a725d2deee7c) Resolved: L1 (The claimed fix has not yet been verified in the game on the current head.) **Checks:** Still running: 11 checks. <details> <summary>Also noticed (2; not asked for, not blocking)</summary> - The PR still lists NVIDIA DLSS/DLAA verification as outstanding. - CI checks are still running. </details> <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Yes, on the reported Windows AMD run: the current-head build logged 0 faults and 0 stops, and initial declarations took 3.2 ms. No before/after fault count is reported; NVIDIA verification remains outstanding. **Other systems:** The changed host path also runs on Linux and with other upscalers. The reported game run covers Windows on AMD; NVIDIA DLSS/DLAA remains to be tested. **Switches:** None. **Reviewed:** a725d2deee7c against 3a0f7d8f7f34: Read the repository rules and diff; inspected the changed code and related capability and push references. The full changed files were not completely read because the combined output was truncated. The neighboring Tooling rules checkout was unavailable.; nothing run (a code review). **Checked and fine:** - Capability state changes mark watched rows dirty without advancing the declarations generation. - The added tests cover generation stability and rebuilding watched rows. **Testing:** No tests or game runs were executed during this review. The PR reports a current-head AMD game run and unit tests from before the final rebase. **Overlaps and merge order:** The PR identifies #3208 as related; its description says this change avoids vk_menu.cpp conflicts. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by BeanBot, as Jer9 took it out of WIP. Nothing was run; a maintainer decides.</sub>
Member

Deck reproduction of the trigger, on plain main without this PR: Steam Deck LCD, nightly-1118-3a0f7d8f (source 429d93ea), launcher install, 1280x800, no player mods, 21-26 fps. Graphics tab, Upscaler switched (to DLAA, vk: upscaler: NVIDIA DLAA after the game's bloom and tone map).

The declarations rebuild is real here, and bigger than on the reporter's machine. Right after the switch, the menu's settings-host listener eats 179 major page faults in one call (longshot/settings-host changed listener) (4.4 ms wall, 3.8 ms in the kernel), and then the frame listener faults three times and stops:

[error] ... fault in longshot/game frame listener: interrupted: it ran past the 5 ms of CPU it may
(5.6 ms of CPU, 9.2 ms on the wall clock: the API's calls 7.1 ms, 2.8 ms of CPU
(48, the most settingsHost.decls 7.0 ms in 1, 2.8 ms of CPU), the garbage collector 0.0 ms (0 runs), ...
[error] ... (5.6 ms of CPU, 6.8 ms on the wall clock: the API's calls 1.4 ms ... (52, the most
settingsHost.decls 1.2 ms in 1, ...), ...
[error] ... (5.5 ms of CPU, 6.0 ms on the wall clock: the API's calls 1.6 ms ... (52, the most
settingsHost.decls 1.4 ms in 1, ...), ...
[error] ... system/menu stopped, ...: stopped after 3 faults in a minute

One settingsHost.decls call at 7.0 ms is over the 5 ms callback budget on this hardware by itself, which is the uncached rebuild this PR keeps from happening. That part of the fix matches what I see.

What this PR will not fix, on this hardware: with the declarations cached, the same listener still measures 5.5 to 5.9 ms across 52 calls, of which the API is only 0.9 to 1.6 ms and 4.5 to 5.6 ms is the menu's own JavaScript. After its automatic restart the first frame listener reads 5.9 ms (52 calls, settingsHost.decls 3.4 ms, own JavaScript 2.3 ms) and it stops again within seconds. So on a Deck the menu's frame listener sits at or over 5 ms even when decls() is cheap; this PR removes the spike, not the baseline.

system/mods-tab also faulted and stopped in the same minutes (5.1 to 5.7 ms of CPU; one or two modsHost.tab calls at 1.0 to 1.2 ms, and 4.9 to 5.0 ms of its own JavaScript). That is #3230, a different call, and it stops the menu through the same fallback page.

Deck available if a run of this PR's head would help: pr-3223 on the Deck with the upscaler and renderer-lock toggles, counting system/menu faults, is the platform/steam-deck case this PR's Still to test is missing. Say the word and I will run it.

Deck reproduction of the trigger, on plain `main` without this PR: Steam Deck LCD, `nightly-1118-3a0f7d8f` (source `429d93ea`), launcher install, 1280x800, no player mods, 21-26 fps. Graphics tab, `Upscaler` switched (to DLAA, `vk: upscaler: NVIDIA DLAA after the game's bloom and tone map`). **The declarations rebuild is real here, and bigger than on the reporter's machine.** Right after the switch, the menu's settings-host listener eats `179 major page faults in one call (longshot/settings-host changed listener)` (4.4 ms wall, 3.8 ms in the kernel), and then the frame listener faults three times and stops: ``` [error] ... fault in longshot/game frame listener: interrupted: it ran past the 5 ms of CPU it may (5.6 ms of CPU, 9.2 ms on the wall clock: the API's calls 7.1 ms, 2.8 ms of CPU (48, the most settingsHost.decls 7.0 ms in 1, 2.8 ms of CPU), the garbage collector 0.0 ms (0 runs), ... [error] ... (5.6 ms of CPU, 6.8 ms on the wall clock: the API's calls 1.4 ms ... (52, the most settingsHost.decls 1.2 ms in 1, ...), ... [error] ... (5.5 ms of CPU, 6.0 ms on the wall clock: the API's calls 1.6 ms ... (52, the most settingsHost.decls 1.4 ms in 1, ...), ... [error] ... system/menu stopped, ...: stopped after 3 faults in a minute ``` One `settingsHost.decls` call at **7.0 ms** is over the 5 ms callback budget on this hardware by itself, which is the uncached rebuild this PR keeps from happening. That part of the fix matches what I see. **What this PR will not fix, on this hardware:** with the declarations cached, the same listener still measures 5.5 to 5.9 ms across 52 calls, of which the API is only 0.9 to 1.6 ms and **4.5 to 5.6 ms is the menu's own JavaScript**. After its automatic restart the first frame listener reads 5.9 ms (52 calls, `settingsHost.decls` 3.4 ms, own JavaScript 2.3 ms) and it stops again within seconds. So on a Deck the menu's frame listener sits at or over 5 ms even when `decls()` is cheap; this PR removes the spike, not the baseline. `system/mods-tab` also faulted and stopped in the same minutes (5.1 to 5.7 ms of CPU; one or two `modsHost.tab` calls at 1.0 to 1.2 ms, and 4.9 to 5.0 ms of its own JavaScript). That is #3230, a different call, and it stops the menu through the same fallback page. Deck available if a run of this PR's head would help: `pr-3223` on the Deck with the upscaler and renderer-lock toggles, counting `system/menu` faults, is the `platform/steam-deck` case this PR's Still to test is missing. Say the word and I will run it.
Member

Correction to my line above: the NVIDIA DLAA log line is not the upscaler that was selected, and I read it wrong.

gpu/vk/vk_temporal.cpp's pre_bloom_wanted() logs it once, the first time the temporal path is prepared (temporal_hdr_input() calls it, from vk_dlss.cpp's prepare), and what it says is that the DLAA-before-the-bloom option is off. The vk: upscaler: the scene's camera: ... line beside it is the other one-time line from that same first prepare. Together they mark "the temporal upscaler started running", nothing more.

What was actually switched here is between the two choices this Deck offers: the game's own upscaler and AMD FSR. Both are supported on this GPU, nothing unsupported was picked, and the menu only lists what runs: temporal_wanted()/upscaler() fall back to the game's own when a choice's why is not OK, so an unavailable upscaler is not selected in the first place.

That makes the reproduction stronger rather than weaker: an ordinary change between two supported choices is enough. The evidence stands as posted: one settingsHost.decls call of 7.0 ms and three frames over the 5 ms budget follow the switch, and system/menu is stopped.

Correction to my line above: the `NVIDIA DLAA` log line is not the upscaler that was selected, and I read it wrong. `gpu/vk/vk_temporal.cpp`'s `pre_bloom_wanted()` logs it once, the first time the temporal path is prepared (`temporal_hdr_input()` calls it, from `vk_dlss.cpp`'s prepare), and what it says is that the DLAA-before-the-bloom *option* is off. The `vk: upscaler: the scene's camera: ...` line beside it is the other one-time line from that same first prepare. Together they mark "the temporal upscaler started running", nothing more. What was actually switched here is between the two choices this Deck offers: the game's own upscaler and AMD FSR. Both are supported on this GPU, nothing unsupported was picked, and the menu only lists what runs: `temporal_wanted()`/`upscaler()` fall back to the game's own when a choice's `why` is not OK, so an unavailable upscaler is not selected in the first place. That makes the reproduction stronger rather than weaker: an ordinary change between two supported choices is enough. The evidence stands as posted: one `settingsHost.decls` call of 7.0 ms and three frames over the 5 ms budget follow the switch, and `system/menu` is stopped.
Member

Ran this PR's head on a Steam Deck LCD, as a dev-packs runtime beside a base build at its parent commit. Same actions on both builds, three runs each, alternating:

  • base 3a0f7d8f vs PR a725d2de
  • launch, open the Insert menu (menu_key insert), walk the focus to the Upscaler row, then five option set changes of the Upscaler (0, 1, 0, 1, 0) with the menu open
  • counts read from each run's own log.txt

system/menu faults / stops:

base 3a0f7d8f:   2/0   3/1   0/0      (max warn 3.8, 3.8, 3.7 ms)
PR   a725d2de:   1/0   0/0   3/1      (max warn 2.9, 2.7, 5.7 ms)

The costliest settingsHost.decls call in the same runs:

base 3a0f7d8f:   2.1   2.6   2.1 ms
PR   a725d2de:   1.5   1.6   2.2 ms

So the declarations rebuild does get cheaper where the fix applies: 2.1 down to 1.5-1.6 ms in two runs of three, and the frame listener's warn drops from ~3.8 to ~2.8 ms. That matches what the change says it does.

What it does not do here is keep the listener under its budget. It still crosses 5 ms and the menu still stops, one run in three on each build, so on this hardware I cannot separate the two builds by outcome. system/mods-tab faulted in all three base runs and two of the three PR runs, which is modsHost.tab and #3230, untouched by this PR.

Caveat on the setup: this A/B ran at the title screen, 60 fps, with the Insert menu open, not in gameplay at 20-25 fps where the same listener measured 5.9 ms on nightly-1118. The pressure in play is higher, not lower. The runtime lives on the SD card.

Also, for whoever tries the #3229 row check: ctl shot handed back a stale title-screen frame while the menu was open in this build (the known swapchain quirk), so a still is not evidence of the focused row; the bridge's status overlays.focus was the usable signal.

Conclusion from the Deck: the fix removes part of the spike, as intended, and does not by itself make the menu survive here. The listener's own JavaScript and the Mods tab's repaint are separate costs that still reach the budget.

Ran this PR's head on a Steam Deck LCD, as a dev-packs runtime beside a base build at its parent commit. Same actions on both builds, three runs each, alternating: - base `3a0f7d8f` vs PR `a725d2de` - launch, open the Insert menu (`menu_key insert`), walk the focus to the `Upscaler` row, then five `option set` changes of the Upscaler (0, 1, 0, 1, 0) with the menu open - counts read from each run's own `log.txt` `system/menu` faults / stops: ``` base 3a0f7d8f: 2/0 3/1 0/0 (max warn 3.8, 3.8, 3.7 ms) PR a725d2de: 1/0 0/0 3/1 (max warn 2.9, 2.7, 5.7 ms) ``` The costliest `settingsHost.decls` call in the same runs: ``` base 3a0f7d8f: 2.1 2.6 2.1 ms PR a725d2de: 1.5 1.6 2.2 ms ``` So the declarations rebuild does get cheaper where the fix applies: 2.1 down to 1.5-1.6 ms in two runs of three, and the frame listener's warn drops from ~3.8 to ~2.8 ms. That matches what the change says it does. What it does not do here is keep the listener under its budget. It still crosses 5 ms and the menu still stops, one run in three on each build, so on this hardware I cannot separate the two builds by outcome. `system/mods-tab` faulted in all three base runs and two of the three PR runs, which is `modsHost.tab` and #3230, untouched by this PR. Caveat on the setup: this A/B ran at the title screen, 60 fps, with the Insert menu open, not in gameplay at 20-25 fps where the same listener measured 5.9 ms on `nightly-1118`. The pressure in play is higher, not lower. The runtime lives on the SD card. Also, for whoever tries the #3229 row check: `ctl shot` handed back a stale title-screen frame while the menu was open in this build (the known swapchain quirk), so a still is not evidence of the focused row; the bridge's `status` `overlays.focus` was the usable signal. Conclusion from the Deck: the fix removes part of the spike, as intended, and does not by itself make the menu survive here. The listener's own JavaScript and the Mods tab's repaint are separate costs that still reach the budget.
Owner

AMD lab A/B/A/B: main 7bc53f841 (A) against this PR's head a725d2dee merged onto it (B). AMD lab PC: Linux 7.3.3-1-cachyos, Core i7-9700K, 15 GB RAM (zram swap), Radeon RX 580 with Mesa RADV 3:26.2.6-1. A/B/A/B, 90 s per run after a 15 s warm-up, each a timing job in the queue, headless, uncapped, V-Sync and frame generation off.

Scenario: standing in the Market with the Insert menu open, the Upscaler (dlss key) changed every 2 s through FSR 3.1, Game's own and Off (44 changes per run), HOS_FRAME_COST=1. 1280x720 output.

The system/menu budget warnings during Upscaler changes are gone with the PR. Neither side had a fault or a stop.

A1 B1 A2 B2
Upscaler changes 44 44 44 44
system/menu: its script ran N ms warnings 9 1 9 1
system/menu faults or stops 0 0 0 0
Average fps 60.8 61.5 60.9 60.9
p99 frame 19.36 ms 19.02 ms 18.99 ms 19.19 ms
  • B's one warning in each run comes before the first Upscaler change (at the menu's opening). A's are mostly during the changes, at 2.2 to 6.5 ms of CPU (mostly 3.5 to 4.8), with settingsHost.decls about 1.2-1.5 ms of it in the lines I read.
  • On this main the budget is not the one in the title: the log says more than 2 ms is warned about, more than 8 ms is a fault. So these runs could not show the 5 ms faults, only that the warnings stop. The title and description may want an update.
  • B2 had one frame of 151 ms (with 127 major faults); the other runs had none of 50 ms or more.

A hang seen once on main: in a first attempt (not in the table), an A run stopped presenting after its 41st change, control: setting dlss 3 -> 6 (FSR 3.1 to Off). The log has no vk: upscaler: Off: ... line and no further presents line after it, and the game didn't answer the control bridge for 40 s, until the harness ended it. That was 1 of 4 main runs and 0 of 4 PR runs, far too few to say the PR affects it.

Not covered: DLSS / DLAA (NVIDIA).

**AMD lab A/B/A/B:** `main` `7bc53f841` (A) against this PR's head `a725d2dee` merged onto it (B). AMD lab PC: Linux 7.3.3-1-cachyos, Core i7-9700K, 15 GB RAM (zram swap), Radeon RX 580 with Mesa RADV 3:26.2.6-1. A/B/A/B, 90 s per run after a 15 s warm-up, each a timing job in the queue, headless, uncapped, V-Sync and frame generation off. Scenario: standing in the Market with the Insert menu open, the Upscaler (`dlss` key) changed every 2 s through FSR 3.1, Game's own and Off (44 changes per run), `HOS_FRAME_COST=1`. 1280x720 output. **The `system/menu` budget warnings during Upscaler changes are gone with the PR.** Neither side had a fault or a stop. | | A1 | B1 | A2 | B2 | |---|---:|---:|---:|---:| | Upscaler changes | 44 | 44 | 44 | 44 | | `system/menu: its script ran N ms` warnings | 9 | 1 | 9 | 1 | | `system/menu` faults or stops | 0 | 0 | 0 | 0 | | Average fps | 60.8 | 61.5 | 60.9 | 60.9 | | p99 frame | 19.36 ms | 19.02 ms | 18.99 ms | 19.19 ms | - B's one warning in each run comes before the first Upscaler change (at the menu's opening). A's are mostly during the changes, at 2.2 to 6.5 ms of CPU (mostly 3.5 to 4.8), with `settingsHost.decls` about 1.2-1.5 ms of it in the lines I read. - On this `main` the budget is not the one in the title: the log says `more than 2 ms is warned about, more than 8 ms is a fault`. So these runs could not show the 5 ms faults, only that the warnings stop. The title and description may want an update. - B2 had one frame of 151 ms (with 127 major faults); the other runs had none of 50 ms or more. **A hang seen once on `main`:** in a first attempt (not in the table), an A run stopped presenting after its 41st change, `control: setting dlss 3 -> 6` (FSR 3.1 to Off). The log has no `vk: upscaler: Off: ...` line and no further `presents` line after it, and the game didn't answer the control bridge for 40 s, until the harness ended it. That was 1 of 4 `main` runs and 0 of 4 PR runs, far too few to say the PR affects it. Not covered: DLSS / DLAA (NVIDIA).
Member

Gameplay A/B of this PR on the same Deck, with the two runtimes as above. Same actions both builds: New Game, reach play (Kokiri Forest, child), open the Insert menu, walk the focus to Upscaler, five option set changes with the menu open. HOS_EVENT_STATS=1 in both. Two runs each, alternating.

                 system/menu faults/stops    system/mods-tab faults
base 3a0f7d8f    1/0    3/1                  1, 2
PR   a725d2de    3/1    1/0                  2, 2

For completeness, the title-screen runs from before (three each):

base 3a0f7d8f    2/0    3/1    0/0
PR   a725d2de    1/0    0/0    3/1

Over ten runs the two builds are indistinguishable in outcome, and each stops the menu in half of its gameplay runs. The cost improvement is real where the change applies (settingsHost.decls 2.1 -> 1.5-1.6 ms, listener warn 3.8 -> 2.8 ms) and it is not enough: the listener's own JavaScript is 4.1-5.6 ms on this CPU, so one layout pass still lands at 5-6 ms and three of those in a minute stop the mod.

One measurement worth having for whoever picks this up: with HOS_EVENT_STATS=1, 3600 frames with the Insert menu open at the title screen logged

longshot/game frame listener 13 fires (13 listeners' calls; by system/menu)
longshot/settings-host changed listener 5 fires (5 listeners' calls; by system/menu)
longshot/mods-host stateChanged listener 1 fires (1 listeners' calls; by system/mods-tab)

so the menu is not laying out every frame, it lays out about a dozen times a minute and each pass is the costly thing. That makes the budget question sharper: it is not the frequency, it is the 5-6 ms of one pass on this hardware.

Verdict from this Deck: the change is correct for the spike it removes and it will not stop the fallback page on Deck-class CPUs by itself. The listener's own cost per pass, and modsHost.tab's repaint (#3230), are separate.

Gameplay A/B of this PR on the same Deck, with the two runtimes as above. Same actions both builds: New Game, reach play (Kokiri Forest, child), open the Insert menu, walk the focus to `Upscaler`, five `option set` changes with the menu open. `HOS_EVENT_STATS=1` in both. Two runs each, alternating. ``` system/menu faults/stops system/mods-tab faults base 3a0f7d8f 1/0 3/1 1, 2 PR a725d2de 3/1 1/0 2, 2 ``` For completeness, the title-screen runs from before (three each): ``` base 3a0f7d8f 2/0 3/1 0/0 PR a725d2de 1/0 0/0 3/1 ``` Over ten runs the two builds are indistinguishable in outcome, and each stops the menu in half of its gameplay runs. The cost improvement is real where the change applies (`settingsHost.decls` 2.1 -> 1.5-1.6 ms, listener warn 3.8 -> 2.8 ms) and it is not enough: the listener's own JavaScript is 4.1-5.6 ms on this CPU, so one layout pass still lands at 5-6 ms and three of those in a minute stop the mod. One measurement worth having for whoever picks this up: with `HOS_EVENT_STATS=1`, 3600 frames with the Insert menu open at the title screen logged ``` longshot/game frame listener 13 fires (13 listeners' calls; by system/menu) longshot/settings-host changed listener 5 fires (5 listeners' calls; by system/menu) longshot/mods-host stateChanged listener 1 fires (1 listeners' calls; by system/mods-tab) ``` so the menu is not laying out every frame, it lays out about a dozen times a minute and each pass is the costly thing. That makes the budget question sharper: it is not the frequency, it is the 5-6 ms of one pass on this hardware. Verdict from this Deck: the change is correct for the spike it removes and it will not stop the fallback page on Deck-class CPUs by itself. The listener's own cost per pass, and `modsHost.tab`'s repaint (#3230), are separate.
Member
@review
BeanBot left a comment

Recommendation: Approve. The change removes capability-state changes from declarations generation while continuing to refresh affected row state. Testing shows the declarations spike is reduced, although the menu can still stop on Steam Deck because of separate costs. Recommend approval; not approved on the forge.

Upscaler and renderer-lock changes keep cached menu declarations and rebuild watched row states when locks or availability reasons change. This adds a separate capability-state hash and some row-rebuild work when that state changes.

Since the last review (on a725d2deee)
Nothing changed in the ledger.

Checks: Still running: 10 checks.

Also noticed (5; not asked for, not blocking)
  • The PR still lists NVIDIA DLSS/DLAA verification as outstanding.
  • CI checks are still running.
  • The PR description says upscaler changes no longer trigger menu faults and stops, but the Deck runs still saw them from separate menu costs.
  • NVIDIA DLSS and DLAA upscaler toggles remain to be tested.
  • CI is still running.
More: does it help, other systems, switches, what was read

Does it help: Yes. On the Steam Deck, three alternating title-screen runs per build showed the costliest declarations call at 2.1–2.6 ms on the base and 1.5–2.2 ms on the PR; faults and stops remained variable on both. An AMD Linux A/B/A/B run reduced warnings during 44 upscaler changes per run from 9 to 0 in each pair.

Other systems: The change affects menu capability and row-state handling across platforms and upscalers. Windows AMD and Linux AMD, including Steam Deck, have been exercised; NVIDIA DLSS and DLAA remain untested.

Switches: None.

Reviewed: a725d2deee against 3a0f7d8f7f: Read the repository rules, PR template, diff, changed Rust files and supplied runs. The combined file output was truncated, so not every part of the changed files or referenced standards was read in full; the renderer and menu callers were not fully traced. The review checklist file was absent.; nothing run (a code review).

Checked and fine:

  • Capability-list changes still advance declarations generation; lock and reason changes instead mark watched rows dirty.
  • The supplied AMD runs show fewer menu warnings during upscaler changes.

Testing: No commands that build or execute project code were run. Supplied evidence includes Windows AMD testing, Linux AMD A/B runs and Steam Deck title-screen and gameplay runs.

Overlaps and merge order: PR #3208 also changes menu capability handling; the PR description says it does not overlap these files.


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

**Recommendation: Approve.** The change removes capability-state changes from declarations generation while continuing to refresh affected row state. Testing shows the declarations spike is reduced, although the menu can still stop on Steam Deck because of separate costs. Recommend approval; not approved on the forge. Upscaler and renderer-lock changes keep cached menu declarations and rebuild watched row states when locks or availability reasons change. This adds a separate capability-state hash and some row-rebuild work when that state changes. **Since the last review** (on a725d2deee7c) Nothing changed in the ledger. **Checks:** Still running: 10 checks. <details> <summary>Also noticed (5; not asked for, not blocking)</summary> - The PR still lists NVIDIA DLSS/DLAA verification as outstanding. - CI checks are still running. - The PR description says upscaler changes no longer trigger menu faults and stops, but the Deck runs still saw them from separate menu costs. - NVIDIA DLSS and DLAA upscaler toggles remain to be tested. - CI is still running. </details> <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Yes. On the Steam Deck, three alternating title-screen runs per build showed the costliest declarations call at 2.1–2.6 ms on the base and 1.5–2.2 ms on the PR; faults and stops remained variable on both. An AMD Linux A/B/A/B run reduced warnings during 44 upscaler changes per run from 9 to 0 in each pair. **Other systems:** The change affects menu capability and row-state handling across platforms and upscalers. Windows AMD and Linux AMD, including Steam Deck, have been exercised; NVIDIA DLSS and DLAA remain untested. **Switches:** None. **Reviewed:** a725d2deee7c against 3a0f7d8f7f34: Read the repository rules, PR template, diff, changed Rust files and supplied runs. The combined file output was truncated, so not every part of the changed files or referenced standards was read in full; the renderer and menu callers were not fully traced. The review checklist file was absent.; nothing run (a code review). **Checked and fine:** - Capability-list changes still advance declarations generation; lock and reason changes instead mark watched rows dirty. - The supplied AMD runs show fewer menu warnings during upscaler changes. **Testing:** No commands that build or execute project code were run. Supplied evidence includes Windows AMD testing, Linux AMD A/B runs and Steam Deck title-screen and gameplay runs. **Overlaps and merge order:** PR #3208 also changes menu capability handling; the PR description says it does not overlap these files. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by omgitsgela. Nothing was run; a maintainer decides.</sub>
omgitsgela force-pushed fix/menu-upscaler-budget from a725d2deee
Some checks failed
PR description / Title and description (pull_request_target) Successful in 8s
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Has been cancelled
CI / Third-party parts and guide screenshots (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
to 51b9c76df1
Some checks failed
PR description / Title and description (pull_request_target) Has been cancelled
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Has been cancelled
CI / Third-party parts and guide screenshots (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
2026-12-05 16:16:33 +00:00
Compare
Owner
@rebase
omgitsgela force-pushed fix/menu-upscaler-budget from 51b9c76df1
Some checks failed
PR description / Title and description (pull_request_target) Has been cancelled
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Has been cancelled
CI / Third-party parts and guide screenshots (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
to 55c8fb38fe
Some checks failed
PR description / Title and description (pull_request_target) Has been cancelled
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Has been cancelled
CI / Third-party parts and guide screenshots (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
2026-12-05 16:53:15 +00:00
Compare
Member

I rebased this pull request onto main (2500534d84): the new head is c61b0575bd.

Conflicts resolved

  • game/crates/api/src/services/settings_host.rs: Kept the separate capability state hash and updated the lists hash to include list counts and contents, including device IDs. Added coverage for the omitted fields.

Nothing was built or run: read the resolution before merging.


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

I rebased this pull request onto `main` (2500534d847c): the new head is c61b0575bd3f. **Conflicts resolved** - game/crates/api/src/services/settings_host.rs: Kept the separate capability state hash and updated the lists hash to include list counts and contents, including device IDs. Added coverage for the omitted fields. Nothing was built or run: read the resolution before merging. --- <sub>Automated rebase by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.</sub>
BeanBot force-pushed fix/menu-upscaler-budget from 55c8fb38fe
Some checks failed
PR description / Title and description (pull_request_target) Has been cancelled
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Has been cancelled
CI / Third-party parts and guide screenshots (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
to c61b0575bd
Some checks failed
PR description / Title and description (pull_request_target) Successful in 7s
CI / What the change needs (pull_request) Successful in 9s
CI / Third-party parts and guide screenshots (pull_request) Successful in 12s
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Successful in 17s
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Failing after 13m14s
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Failing after 1m16s
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Successful in 10m48s
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Successful in 10m49s
CI / Website build and checks (pull_request) Failing after 39s
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Failing after 46m42s
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Failing after 1h0m5s
2026-12-05 16:55:49 +00:00
Compare
BeanBot left a comment

Recommendation: Approve. The change removes the declarations rebuild on lock changes, and AMD testing shows fewer menu budget warnings. CI is still running, and the described NVIDIA DLSS/DLAA run remains outstanding. Nothing blocking is left. Recommend approval; not approved on the forge.

Keeps capability lock and reason changes from invalidating menu declarations, while rebuilding watched row states when those changes occur. It reduces the rebuild cost, though Deck testing shows other menu work can still cause stops.

Since the last review (on a725d2deee)
Nothing changed in the ledger.

Checks: Still running: 11 checks.

Also noticed (3; not asked for, not blocking)
  • The pull request description still attributes the renderer capability function to vk_menu.cpp, while the rebased code names gpu/vk/settings/caps.cpp.
  • Deck testing shows the menu can still stop from its own listener cost after the declarations rebuild is removed.
  • The NVIDIA DLSS/DLAA toggle run remains outstanding.
More: does it help, other systems, switches, what was read

Does it help: Yes for the targeted rebuild: the Linux AMD A/B/A/B run recorded 9, 1, 9, 1 menu warnings, with the PR's warnings occurring before the first upscaler change. Deck runs showed cheaper declarations calls in two of three title-screen comparisons, but the menu still stopped in one run per build.

Other systems: The hash feeds menu declarations and watched row updates on Windows and Linux. AMD Windows and Linux and Steam Deck runs are reported; NVIDIA DLSS/DLAA remains untested. The Deck's separate menu and mods-tab costs can still cause stops.

Switches: None.

Reviewed: c61b0575bd against 2500534d84: Read the diffs, commit log, AGENTS.md and CONTRIBUTING.md; inspected the capability structure and its consumers. The full changed files were requested, but their output was truncated; they were not read in full. The pull request template and referenced standards were not read.; nothing run (a code review).

Checked and fine:

  • The rebased list hash includes capability counts, size contents, names and device IDs.
  • Lock and upscaler-reason state remains separate from the declarations generation.
  • Watched rows are rebuilt when capability state changes.

Testing: Read the reported AMD and Steam Deck runs and the CI status; no commands from the project or tests were run. CI checks are still running.

Overlaps and merge order: #3208 also changes the renderer settings path; the supplied description says this change avoids its renderer-file conflict.


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

**Recommendation: Approve.** The change removes the declarations rebuild on lock changes, and AMD testing shows fewer menu budget warnings. CI is still running, and the described NVIDIA DLSS/DLAA run remains outstanding. Nothing blocking is left. Recommend approval; not approved on the forge. Keeps capability lock and reason changes from invalidating menu declarations, while rebuilding watched row states when those changes occur. It reduces the rebuild cost, though Deck testing shows other menu work can still cause stops. **Since the last review** (on a725d2deee7c) Nothing changed in the ledger. **Checks:** Still running: 11 checks. <details> <summary>Also noticed (3; not asked for, not blocking)</summary> - The pull request description still attributes the renderer capability function to vk_menu.cpp, while the rebased code names gpu/vk/settings/caps.cpp. - Deck testing shows the menu can still stop from its own listener cost after the declarations rebuild is removed. - The NVIDIA DLSS/DLAA toggle run remains outstanding. </details> <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Yes for the targeted rebuild: the Linux AMD A/B/A/B run recorded 9, 1, 9, 1 menu warnings, with the PR's warnings occurring before the first upscaler change. Deck runs showed cheaper declarations calls in two of three title-screen comparisons, but the menu still stopped in one run per build. **Other systems:** The hash feeds menu declarations and watched row updates on Windows and Linux. AMD Windows and Linux and Steam Deck runs are reported; NVIDIA DLSS/DLAA remains untested. The Deck's separate menu and mods-tab costs can still cause stops. **Switches:** None. **Reviewed:** c61b0575bd3f against 2500534d847c: Read the diffs, commit log, AGENTS.md and CONTRIBUTING.md; inspected the capability structure and its consumers. The full changed files were requested, but their output was truncated; they were not read in full. The pull request template and referenced standards were not read.; nothing run (a code review). **Checked and fine:** - The rebased list hash includes capability counts, size contents, names and device IDs. - Lock and upscaler-reason state remains separate from the declarations generation. - Watched rows are rebuilt when capability state changes. **Testing:** Read the reported AMD and Steam Deck runs and the CI status; no commands from the project or tests were run. CI checks are still running. **Overlaps and merge order:** #3208 also changes the renderer settings path; the supplied description says this change avoids its renderer-file conflict. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by BeanBot, after its rebase. Nothing was run; a maintainer decides.</sub>
HumanBean deleted branch fix/menu-upscaler-budget 2026-12-05 17:03:34 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
4 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!3223
No description provided.