refactor(menu): move the Insert menu's logic out of the renderer into the game #3208

Merged
HumanBean merged 16 commits from HumanBean/Longshot:refactor/menu-out-of-renderer into main 2026-12-05 16:44:59 +00:00
Owner

Summary

The Insert menu's rows and frame were already Rust and TypeScript, but gpu/vk still held its open/close and input,
the device features behind its rows (audio, microphone, NFC, monitors, vibration, input recording, Restart/Quit), the
output size and aspect rules, the lock texts and Save my pipeline list. This moves all of that into the game
(game/crates/api, longshot-game), which calls the host directly. The renderer now knows no menu: it draws the UI's
draw list, reports GPU facts and reacts to the settings snapshot. It is meant to behave as before.

gpu/vk/vk_menu*, menu_module.h and gpu/vk/menu/ are gone. What stays is in gpu/vk/settings/ (settings
reactions, capabilities, status, the per-present tick, bug report) and in vk_stats, vk_startup, vk_drs,
vk_auto, vk_lang. MKWVK_API_VERSION is 96 and MKW_UI_VERSION 13.

Read first:

  • game/crates/api/src/services/menu_input.rs and game/crates/longshot-game/src/menu_input.rs: open/close and keys.
    The state is behind one mutex; the renderer calls in from one present at a time through MkwVkHost.ui_begin.
  • game/crates/api/src/services/devices.rs, output.rs, renderer_reasons.rs.
  • game/crates/longshot-game/src/pipeline_share.rs.
  • gpu/vk/vk_api.h and gpu/vk/settings/.

Overlaps open work-in-progress pull requests #3116 (renderer in its own process) and #3080 (renames across the
renderer): whichever merges second has to be rebased by hand.

Behaviour differences:

  • A key press opens or closes the menu in the same present, not one present later. The menu still decides from the
    previous present's UI state (text field has the keyboard, window has input).
  • Device lists are empty until the first game frame, and are enumerated on the game thread when the menu opens.
  • On Windows, the main screen used to widen 16:9 size labels comes from GetSystemMetrics.
  • After the window moves to another monitor, the aspect marks are worked out again from the run's start rules.
  • The Upscaler and Render resolution locks and their help lines are removed: they could never trigger. Ten unused
    help-line translations are removed from each language file.
  • The Output resolution log line is prefixed output:.
  • main's settingsHost.open (#3209, the pause menu's Longshot Options button) is taken by the game's menu state, not
    the renderer; ui_modal() stands in for menu_is_open() in #3202's HUD-less picture for DLSS Frame Generation.
  • Fixed, and already wrong on main: with two microphones of one name, picking the other did nothing.

Not moved, on purpose: the ReShade file list (the saved setting is a position in the renderer's list), the frame
generation clamp (it protects what goes to NGX and device creation) and the menu's language list (the renderer needs
it for font merging).

Seen on the way, already on main and not fixed here: the "DLAA only…" lock text is longer than LsLocked.why, so
it is cut off and probably never finds its translation.

Testing

Tested: Linux (CachyOS, kernel 7.3), RTX 3090, NVIDIA driver 0x9b118180, at 9f894d7aaee4 (before two later
rebases):

  • dev.py smoke, headless: PASS, in play from kokiri-start, 900 frames, the Insert menu opened and its page hosted.
    Smoke screenshots leave overlays out, so this does not show the menu drawn.
  • A visible session played by hand, with the game's sandbox off and HOS_SYSTEM_MODS_DIR set. The author reports it
    tested and looking good; the parts of the menu covered were not itemised.

Checks on Linux, on main 7bc53f8413 (game-free, in the PC's job queue as builds). Nothing since 9f894d7aaee4 has
run in the game: the branch has been rebased three times since, and got the microphone fix, the two ports above and
their checks.

  • cargo fmt --check, schema-gen --check, ffi-gen --check: pass.
  • tests/run_all.py: 880 passed, 14 failed, 13 skipped, before the last fix (the HUD-less picture's compile). Two of
    the 14 (test_image_reaper_threads, test_prepare_stall) passed when run again, here and on main. The other 12
    also fail on main: test_present_acquire_ahead, test_present_held_image, test_present_geometry_trace,
    test_present_image_free, test_dlssg, test_no_game_title, test_sync_watch_event, test_ui_renderer,
    test_turf_budget, test_vk_draw_overhead_lean, test_lifter, test_no_map_reload. After the fix, those and the
    checks it touches were run again.
  • cargo test -p modtool: 273 passed, 1 failed: the menu mod's tests, which fail the same way on main (the developer
    page's layout on every run, a search frame over its script limit on some).
  • cargo test: the_repository_s_lock_and_the_table_agree, installed_versions_reuse_their_own_builds_with_one_profile
    and a_copy_links_the_builders_files_clones_the_rest_and_refreshes_in_place fail, as on main before this rebase.
    net-broker's two local endpoint tests failed in the full run and passed on a rerun.
  • clippy on api, host-sys and longshot-game passes with main's two lints allowed (large_const_arrays,
    needless_range_loop); without that, the workspace stops on them.
  • Linux: the renderer, host and game units compile, longshot_vk.so links; check_host_compile.py: 83 units, 0 failed.
  • Windows (llvm-mingw): the renderer's 345 units compile; check_host_compile.py: 81 units, 0 failed. The renderer DLL
    was not fully linked: the local link script lacks the generated font and zstd objects.

Tests removed or weakened: test_display_modes.py, test_fullscreen_monitor_menu.py, test_hos_ab_table.py,
test_menu_hit.cpp, test_menu_utf8.py and test_output_size_start.py are gone; their main cases are Rust tests
now. The compiled Menu size and cursor-mapping cases are now source checks or a Rust unit test, and the renderer's
Game language row choice is no longer tested since that code is gone.

Still to test:

  • Linux, a second pass worth having, since the session above was not itemised and ran before the rebase: F1, Insert,
    Esc, the pause menu's Longshot Options button, the controller and touchpad; text fields; devices and monitors; Output resolution and locked upscaler rows;
    Restart, Quit, Bug report; mod debug page, permission prompt and popped-out window (by hand).
  • Linux with HOS_SANDBOX=1: Restart, Bug report and Save my pipeline list (zip, clipboard, folder, issue page) (by hand).
  • Windows (NVIDIA, AMD, Intel): never run. Start, the menu with keyboard and controller, devices, monitors, Save my
    pipeline list, the Intel rows, ultrawide with FSR 4 shader preparation (@Beanstalk Windows, and by hand).
  • Linux, AMD: start, open the menu, change a Graphics setting (@Beanstalk Linux AMD).
  • Any PC with an RTX 40 or newer: DLSS Frame Generation with the menu open (by hand).

Measurements

Verdict: within the spread of main in the Market with the menu closed (one pair of runs).
The pair compares the two heads in the table. The later rebases bring main's own commits to both sides (#3202 only
acts with DLSS Frame Generation, off here; #3209 adds the pause menu's button). This branch's changes since are a
microphone check, an action that opens the menu when asked, and reading the menu's open flag in one DLSS Frame
Generation check, none of which does work in the measured setup, so it was not measured again.

Setup: Linux (CachyOS), RTX 3090, NVIDIA 0x9b118180; dev.py ab --scene market --seconds 30 on two runtimes over one
base, 1920x1080 output, Render resolution 100 %, upscaler and frame generation off, V-Sync off, uncapped. CPU-bound on
both sides (GPU time 5.0 ms in a frame of about 7.7 ms).

Before: main @ f7d6d3bf61 After: this PR @ aecd79eb07
fps 128.3 128.7
median frame 7.70 ms 7.68 ms
99th percentile frame 9.33 ms 9.42 ms
1% low 107.2 fps 106.1 fps

A second main run gave 126.9 fps, 7.80 ms median, 9.62 ms 99th percentile, 104.0 fps 1% low, so the differences above
are smaller than main's own run to run. The second run of this PR was cancelled: one pair was judged enough here. Not
measured: frame time with the menu open, Windows, other GPUs.

Risks

  • Input: every way of opening, closing and driving the menu is new code. A fault would show as a menu that does not
    open or close, or input reaching the game while it is open.
  • Devices: first selection and list refreshes moved from renderer start and presents to game frames.
  • Performance: measured only with the menu closed, one pair, one PC (above).
  • Windows: compiled only.
  • Saves, settings.toml keys and caches are unchanged. Mods see no API change. No switch is added or changed; 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 (the in-game runs were at
    9f894d7aaee4, before three later rebases and the fixes since).
  • 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 check under tests/ that reads changed source is updated, not weakened. (Left unticked: some compiled checks
    are now source checks or gone, as Testing says.)
  • MKWVK_API_VERSION bumped (MkwVkHost or MkwVkRenderer in gpu/vk/vk_api.h changed).
  • Host code builds on Windows (llvm-mingw) and Linux, with UTF-8 paths.
  • 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.

Assisted-by: Claude Code
Co-Authored-By: Claude Sonnet 5.5 [email protected]

🤖 Generated with Claude Code

https://claude.ai/code/session_017vw8dyXQMB7P1gWv5UhGHB

## Summary The Insert menu's rows and frame were already Rust and TypeScript, but `gpu/vk` still held its open/close and input, the device features behind its rows (audio, microphone, NFC, monitors, vibration, input recording, Restart/Quit), the output size and aspect rules, the lock texts and Save my pipeline list. This moves all of that into the game (`game/crates/api`, `longshot-game`), which calls the host directly. The renderer now knows no menu: it draws the UI's draw list, reports GPU facts and reacts to the settings snapshot. It is meant to behave as before. `gpu/vk/vk_menu*`, `menu_module.h` and `gpu/vk/menu/` are gone. What stays is in `gpu/vk/settings/` (settings reactions, capabilities, status, the per-present tick, bug report) and in `vk_stats`, `vk_startup`, `vk_drs`, `vk_auto`, `vk_lang`. `MKWVK_API_VERSION` is 96 and `MKW_UI_VERSION` 13. Read first: - `game/crates/api/src/services/menu_input.rs` and `game/crates/longshot-game/src/menu_input.rs`: open/close and keys. The state is behind one mutex; the renderer calls in from one present at a time through `MkwVkHost.ui_begin`. - `game/crates/api/src/services/devices.rs`, `output.rs`, `renderer_reasons.rs`. - `game/crates/longshot-game/src/pipeline_share.rs`. - `gpu/vk/vk_api.h` and `gpu/vk/settings/`. Overlaps open work-in-progress pull requests #3116 (renderer in its own process) and #3080 (renames across the renderer): whichever merges second has to be rebased by hand. Behaviour differences: - A key press opens or closes the menu in the same present, not one present later. The menu still decides from the previous present's UI state (text field has the keyboard, window has input). - Device lists are empty until the first game frame, and are enumerated on the game thread when the menu opens. - On Windows, the main screen used to widen 16:9 size labels comes from `GetSystemMetrics`. - After the window moves to another monitor, the aspect marks are worked out again from the run's start rules. - The Upscaler and Render resolution locks and their help lines are removed: they could never trigger. Ten unused help-line translations are removed from each language file. - The Output resolution log line is prefixed `output:`. - `main`'s `settingsHost.open` (#3209, the pause menu's Longshot Options button) is taken by the game's menu state, not the renderer; `ui_modal()` stands in for `menu_is_open()` in #3202's HUD-less picture for DLSS Frame Generation. - Fixed, and already wrong on `main`: with two microphones of one name, picking the other did nothing. Not moved, on purpose: the ReShade file list (the saved setting is a position in the renderer's list), the frame generation clamp (it protects what goes to NGX and device creation) and the menu's language list (the renderer needs it for font merging). Seen on the way, already on `main` and not fixed here: the "DLAA only…" lock text is longer than `LsLocked.why`, so it is cut off and probably never finds its translation. ## Testing **Tested:** Linux (CachyOS, kernel 7.3), RTX 3090, NVIDIA driver 0x9b118180, at 9f894d7aaee4 (before two later rebases): - `dev.py smoke`, headless: PASS, in play from `kokiri-start`, 900 frames, the Insert menu opened and its page hosted. Smoke screenshots leave overlays out, so this does not show the menu drawn. - A visible session played by hand, with the game's sandbox off and `HOS_SYSTEM_MODS_DIR` set. The author reports it tested and looking good; the parts of the menu covered were not itemised. Checks on Linux, on `main` 7bc53f841323 (game-free, in the PC's job queue as builds). Nothing since 9f894d7aaee4 has run in the game: the branch has been rebased three times since, and got the microphone fix, the two ports above and their checks. - `cargo fmt --check`, `schema-gen --check`, `ffi-gen --check`: pass. - `tests/run_all.py`: 880 passed, 14 failed, 13 skipped, before the last fix (the HUD-less picture's compile). Two of the 14 (`test_image_reaper_threads`, `test_prepare_stall`) passed when run again, here and on `main`. The other 12 also fail on `main`: `test_present_acquire_ahead`, `test_present_held_image`, `test_present_geometry_trace`, `test_present_image_free`, `test_dlssg`, `test_no_game_title`, `test_sync_watch_event`, `test_ui_renderer`, `test_turf_budget`, `test_vk_draw_overhead_lean`, `test_lifter`, `test_no_map_reload`. After the fix, those and the checks it touches were run again. - `cargo test -p modtool`: 273 passed, 1 failed: the menu mod's tests, which fail the same way on `main` (the developer page's layout on every run, a search frame over its script limit on some). - `cargo test`: `the_repository_s_lock_and_the_table_agree`, `installed_versions_reuse_their_own_builds_with_one_profile` and `a_copy_links_the_builders_files_clones_the_rest_and_refreshes_in_place` fail, as on `main` before this rebase. `net-broker`'s two local endpoint tests failed in the full run and passed on a rerun. - clippy on `api`, `host-sys` and `longshot-game` passes with `main`'s two lints allowed (`large_const_arrays`, `needless_range_loop`); without that, the workspace stops on them. - Linux: the renderer, host and game units compile, `longshot_vk.so` links; `check_host_compile.py`: 83 units, 0 failed. - Windows (llvm-mingw): the renderer's 345 units compile; `check_host_compile.py`: 81 units, 0 failed. The renderer DLL was not fully linked: the local link script lacks the generated font and zstd objects. Tests removed or weakened: `test_display_modes.py`, `test_fullscreen_monitor_menu.py`, `test_hos_ab_table.py`, `test_menu_hit.cpp`, `test_menu_utf8.py` and `test_output_size_start.py` are gone; their main cases are Rust tests now. The compiled Menu size and cursor-mapping cases are now source checks or a Rust unit test, and the renderer's Game language row choice is no longer tested since that code is gone. **Still to test:** - Linux, a second pass worth having, since the session above was not itemised and ran before the rebase: F1, Insert, Esc, the pause menu's Longshot Options button, the controller and touchpad; text fields; devices and monitors; Output resolution and locked upscaler rows; Restart, Quit, Bug report; mod debug page, permission prompt and popped-out window (by hand). - Linux with `HOS_SANDBOX=1`: Restart, Bug report and Save my pipeline list (zip, clipboard, folder, issue page) (by hand). - Windows (NVIDIA, AMD, Intel): never run. Start, the menu with keyboard and controller, devices, monitors, Save my pipeline list, the Intel rows, ultrawide with FSR 4 shader preparation (@Beanstalk Windows, and by hand). - Linux, AMD: start, open the menu, change a Graphics setting (@Beanstalk Linux AMD). - Any PC with an RTX 40 or newer: DLSS Frame Generation with the menu open (by hand). ## Measurements **Verdict:** within the spread of `main` in the Market with the menu closed (one pair of runs). The pair compares the two heads in the table. The later rebases bring `main`'s own commits to both sides (#3202 only acts with DLSS Frame Generation, off here; #3209 adds the pause menu's button). This branch's changes since are a microphone check, an action that opens the menu when asked, and reading the menu's open flag in one DLSS Frame Generation check, none of which does work in the measured setup, so it was not measured again. **Setup:** Linux (CachyOS), RTX 3090, NVIDIA 0x9b118180; `dev.py ab --scene market --seconds 30` on two runtimes over one base, 1920x1080 output, Render resolution 100 %, upscaler and frame generation off, V-Sync off, uncapped. CPU-bound on both sides (GPU time 5.0 ms in a frame of about 7.7 ms). | | Before: main @ f7d6d3bf611e | After: this PR @ aecd79eb07f6 | |---|---|---| | fps | 128.3 | 128.7 | | median frame | 7.70 ms | 7.68 ms | | 99th percentile frame | 9.33 ms | 9.42 ms | | 1% low | 107.2 fps | 106.1 fps | A second `main` run gave 126.9 fps, 7.80 ms median, 9.62 ms 99th percentile, 104.0 fps 1% low, so the differences above are smaller than `main`'s own run to run. The second run of this PR was cancelled: one pair was judged enough here. Not measured: frame time with the menu open, Windows, other GPUs. ## Risks - Input: every way of opening, closing and driving the menu is new code. A fault would show as a menu that does not open or close, or input reaching the game while it is open. - Devices: first selection and list refreshes moved from renderer start and presents to game frames. - Performance: measured only with the menu closed, one pair, one PC (above). - Windows: compiled only. - Saves, `settings.toml` keys and caches are unchanged. Mods see no API change. No switch is added or changed; a revert is enough. ## 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 (the in-game runs were at 9f894d7aaee4, before three later rebases and the fixes since). - [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 - [ ] A check under `tests/` that reads changed source is updated, not weakened. (Left unticked: some compiled checks are now source checks or gone, as Testing says.) - [x] `MKWVK_API_VERSION` bumped (`MkwVkHost` or `MkwVkRenderer` in `gpu/vk/vk_api.h` changed). - [x] Host code builds on Windows (llvm-mingw) and Linux, with UTF-8 paths. - [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. Assisted-by: Claude Code Co-Authored-By: Claude Sonnet 5.5 <[email protected]> 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_017vw8dyXQMB7P1gWv5UhGHB
gpu/vk/menu/ is renderer settings glue, not menu UI. No behaviour change.
settings_now() and settings_start() move to settings/settings.h, which the
renderer files that only read values include.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
The audio output, the microphone and its test, the fullscreen monitor, the NFC
tags, the vibration test and Restart/Quit move out of gpu/vk into
api services/devices.rs, which drives the host through game_host.h. Their lists
and status facts go into the renderer link's capabilities and status on the way
to the game, so the settings service and menu mod read them as before.
MkwVkHost drops the matching members (MKWVK_API_VERSION 95). Input recordings
were already Rust; their dead C++ is removed.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
The Upscaler and Render resolution locks and the help tables behind them could never show: Off is
always available and every full-size upscaler has a Native step.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
The menu's state is api services/menu_input.rs: its keys, the controller's button, chord and
touchpad, the page's Back and @close, the held close, the permission prompt, debug pages, the
compact key and RX_VK_MENU_SCRIPT. The renderer asks ui_begin what is hosted and which keys are
the game's, and draws UI's frame.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
settings/ (the snapshots, appliers, actions, capabilities and the per-present tick), vk_stats,
vk_startup, vk_drs, vk_auto and vk_lang; menu_ names and the MENU_ macros renamed.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
The menu's input checks are Rust tests (api services/menu_input) or read the new files.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
The renderer writes its list out and says what it alone knows (MkwVkRenderer.pipeline_list, LsPipelineList); the zip,
the template, Downloads, the clipboard and the opens are longshot-game pipeline_share.rs. One API version for the
whole change: 96.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
The UI input's hosted-page and menu fields (MKW_UI_VERSION 13), MkwVkHost.screen_size, fmt_text.h and renderer
functions nothing calls.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
MkwVkRenderer.pipeline_list is guarded; the translations of the renderer's old pipeline-share lines, which nothing
shows, are dropped.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
fix: what the review of the menu's move found
Some checks failed
beanstalk/approval can't be tested as asked: see the farm's comment
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
aecd79eb07
- the screens' display modes are read only when the window comes or its screen changes, outside the device lock
- the Output resolution's sizes are read again once the window is there
- the picture told to the renderer is widened before hos_main.c has made it, and is the Handheld profile's there
- Esc works when a debug page was asked for and nothing hosts it
- the saved microphone is told before the first frame, and not again every frame
- Ultrawide on in the pipeline list means the Aspect ratio is the screen's shape, as before
- the menu's other keys make the prompts name keys again, and the script switch is read once

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Author
Owner

Tested in game: Linux (CachyOS), RTX 3090, NVIDIA driver 0x9b118180, at 9f894d7aaee4 (before a clean rebase): headless dev.py smoke PASS (in play from kokiri-start, 900 frames, menu opened and page hosted), then a visible session played by hand with the sandbox off; the author reports it tested and looking good. Windows not run.

Tested in game: Linux (CachyOS), RTX 3090, NVIDIA driver 0x9b118180, at 9f894d7aaee4 (before a clean rebase): headless dev.py smoke PASS (in play from kokiri-start, 900 frames, menu opened and page hosted), then a visible session played by hand with the sandbox off; the author reports it tested and looking good. Windows not run.
Author
Owner

Still to test now names who runs each item.

Still to test now names who runs each item.
Member

Possibly related, for context:

  • issue #1493 Renderer rewrite — Renderer rework plan calls for splitting menu services from renderer
  • PR #2882 refactor(settings)!: settings flow one way: the game makes every rule, the renderer reads the snapshot and reports facts — Merged settings-flow change established game-owned settings snapshots
Possibly related, for context: - issue #1493 Renderer rewrite — Renderer rework plan calls for splitting menu services from renderer - PR #2882 refactor(settings)!: settings flow one way: the game makes every rule, the renderer reads the snapshot and reports facts — Merged settings-flow change established game-owned settings snapshots
Author
Owner

@Beanstalk Windows (NVIDIA, AMD, Intel) and Linux AMD: start the game, reach play, open the Insert menu with the keyboard and a controller if there is one, change a Graphics setting, close the menu, and check the game takes input again and the log has no FATAL line.

@Beanstalk Windows (NVIDIA, AMD, Intel) and Linux AMD: start the game, reach play, open the Insert menu with the keyboard and a controller if there is one, change a Graphics setting, close the menu, and check the game takes input again and the log has no FATAL line.
Member

Beanstalk test farm

Commit 72645c8 · approved by nobody yet · dashboard

A member of BigBeans can review this commit and comment @Beanstalk to test it.

<!-- beanstalk:sticky --> ### Beanstalk test farm Commit `72645c8` · approved by nobody yet · [dashboard](https://beanstalk.magicbean.dev/prs/3208) A member of `BigBeans` can review this commit and comment `@Beanstalk` to test it.
Author
Owner

Added a quick Market A/B against main (one pair, CPU-bound, menu closed): within main's run-to-run spread.

Added a quick Market A/B against main (one pair, CPU-bound, menu closed): within main's run-to-run spread.
HumanBean changed title from WIP: refactor(menu): move the Insert menu's logic out of the renderer into the game to refactor(menu): move the Insert menu's logic out of the renderer into the game 2026-12-04 23:49:36 +00:00
Author
Owner
@review
BeanBot left a comment

Recommendation: Request changes. Selecting a second microphone with the same name leaves the first one active. The moved menu paths also need the planned platform and in-game checks before their behavior can be considered verified.

The change moves menu input, device handling, output choices and pipeline sharing into the game, leaving the renderer responsible for drawing and reporting its state. It simplifies that boundary, but changes several platform and timing paths.

Blocking (1): must change before merging.

  1. L4: It conflicts with its base branch: bring it up to date (@​fix or @​rebase try first). (for the author)

Should fix (1): not blocking, but worth doing before merging.

  • L1 game/crates/api/src/services/devices.rs:163: A change between two microphones with the same saved name is ignored because the row index is only compared when the name is empty. (more on the line) Do: Handle a changed microphone row index even when the saved name is nonempty, and test switching between identically named devices in both directions.

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

  • L2: The moved input, device and output paths have not been exercised on Windows or Linux AMD, and the visible Linux session did not identify the menu features exercised. When: A platform-specific failure in opening the menu, changing a device or returning input to the game would affect players on those systems without appearing in the recorded compile checks. Do: Run the listed keyboard, controller, device, monitor and settings checks on Windows and Linux AMD, and record the results; include sandboxed Restart and pipeline sharing.
  • L3: The per-present changes have not been measured with the menu open or with frame generation enabled. When: Menu work now crosses the game and renderer boundary each present; a change to frame pacing while the menu is open or frame generation is active would not appear in the recorded menu-closed run. Do: Compare repeated interleaved base and head runs with the menu open, including an RTX 40 or newer run with DLSS Frame Generation, and record frame times and 1% lows.

@fix can do L1.

Checks: Still running: 11 checks.

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

Does it help: Not a performance change. One Linux RTX 3090 pair measured 128.3 versus 128.7 fps and 9.33 versus 9.42 ms p99 with the menu closed; the description reports a second base run but no second PR run, so this does not establish a performance difference.

Other systems: The change affects Windows and Linux device enumeration, menu input, output sizing, renderer settings, sandboxed pipeline sharing and frame generation. The recorded visible run was on Linux NVIDIA before the rebase; Windows and Linux AMD runs remain outstanding.

Switches: No switch is claimed to be added or changed. RX_VK_MENU_SCRIPT is moved into the game; its complete behavior was not independently verified.

Reviewed: aecd79eb07 against f7d6d3bf61: Read AGENTS.md, CONTRIBUTING.md, the pull request template, relevant standards, commit log, and portions of the diff and moved menu, device, output and pipeline-sharing code. The diff and changed files are too large to have been read completely in this pass; generated files, translations and recorded runs were not independently reviewed in full. docs/review-checklist.md does not exist.; nothing run (a code review).

Checked and fine:

  • The renderer API version is bumped to 96.
  • The commits shown record AI assistance.
  • The reported failures are described as also occurring on the base or passing with a fresh target folder.

Testing: No commands from the project were run, as requested. The supplied CI checks are still running.

Overlaps and merge order: The description identifies WIP pull requests #3116 and #3080; whichever merges second needs a manual rebase.


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

**Recommendation: Request changes.** Selecting a second microphone with the same name leaves the first one active. The moved menu paths also need the planned platform and in-game checks before their behavior can be considered verified. The change moves menu input, device handling, output choices and pipeline sharing into the game, leaving the renderer responsible for drawing and reporting its state. It simplifies that boundary, but changes several platform and timing paths. **Blocking (1)**: must change before merging. 1. **L4**: It conflicts with its base branch: bring it up to date (`@​fix` or `@​rebase` try first). *(for the author)* **Should fix (1)**: not blocking, but worth doing before merging. - **L1** `game/crates/api/src/services/devices.rs:163`: A change between two microphones with the same saved name is ignored because the row index is only compared when the name is empty. (more on the line) **Do:** Handle a changed microphone row index even when the saved name is nonempty, and test switching between identically named devices in both directions. **Testing before merging (2)** (runs on the systems it can change; it doesn't hold the recommendation) - **L2**: The moved input, device and output paths have not been exercised on Windows or Linux AMD, and the visible Linux session did not identify the menu features exercised. *When:* A platform-specific failure in opening the menu, changing a device or returning input to the game would affect players on those systems without appearing in the recorded compile checks. **Do:** Run the listed keyboard, controller, device, monitor and settings checks on Windows and Linux AMD, and record the results; include sandboxed Restart and pipeline sharing. - **L3**: The per-present changes have not been measured with the menu open or with frame generation enabled. *When:* Menu work now crosses the game and renderer boundary each present; a change to frame pacing while the menu is open or frame generation is active would not appear in the recorded menu-closed run. **Do:** Compare repeated interleaved base and head runs with the menu open, including an RTX 40 or newer run with DLSS Frame Generation, and record frame times and 1% lows. `@fix` can do L1. **Checks:** Still running: 11 checks. <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Not a performance change. One Linux RTX 3090 pair measured 128.3 versus 128.7 fps and 9.33 versus 9.42 ms p99 with the menu closed; the description reports a second base run but no second PR run, so this does not establish a performance difference. **Other systems:** The change affects Windows and Linux device enumeration, menu input, output sizing, renderer settings, sandboxed pipeline sharing and frame generation. The recorded visible run was on Linux NVIDIA before the rebase; Windows and Linux AMD runs remain outstanding. **Switches:** No switch is claimed to be added or changed. RX_VK_MENU_SCRIPT is moved into the game; its complete behavior was not independently verified. **Reviewed:** aecd79eb07f6 against f7d6d3bf611e: Read AGENTS.md, CONTRIBUTING.md, the pull request template, relevant standards, commit log, and portions of the diff and moved menu, device, output and pipeline-sharing code. The diff and changed files are too large to have been read completely in this pass; generated files, translations and recorded runs were not independently reviewed in full. docs/review-checklist.md does not exist.; nothing run (a code review). **Checked and fine:** - The renderer API version is bumped to 96. - The commits shown record AI assistance. - The reported failures are described as also occurring on the base or passing with a fresh target folder. **Testing:** No commands from the project were run, as requested. The supplied CI checks are still running. **Overlaps and merge order:** The description identifies WIP pull requests #3116 and #3080; whichever merges second needs a manual rebase. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.</sub>
@ -0,0 +160,4 @@
self.refresh_outputs();
}
let mic = mic_key(&c_text(&s.microphone_id));
if start || mic != self.mic_want || (mic.is_empty() && self.mic_setting != s.microphone) {
Member

L1 (should fix): A change between two microphones with the same saved name is ignored because the row index is only compared when the name is empty.

When: With two microphones both named USB Mic, selecting the second changes s.microphone but leaves microphone_id unchanged. The condition is false, so self.mic and the host selection remain on the first device.

Do: Handle a changed microphone row index even when the saved name is nonempty, and test switching between identically named devices in both directions.

**L1** (should fix): A change between two microphones with the same saved name is ignored because the row index is only compared when the name is empty. *When:* With two microphones both named USB Mic, selecting the second changes s.microphone but leaves microphone_id unchanged. The condition is false, so self.mic and the host selection remain on the first device. **Do:** Handle a changed microphone row index even when the saved name is nonempty, and test switching between identically named devices in both directions.
HumanBean force-pushed refactor/menu-out-of-renderer from aecd79eb07
Some checks failed
beanstalk/approval can't be tested as asked: see the farm's comment
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 2bb4bbc664
Some checks failed
beanstalk/approval not approved yet
PR description / Title and description (pull_request_target) Failing after 9s
CI / What the change needs (pull_request) Successful in 8s
CI / Third-party parts and guide screenshots (pull_request) Successful in 13s
CI / Lint (pre-commit, ShellCheck, actionlint) (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 01:20:33 +00:00
Compare
Author
Owner

Rebased onto main f359e26213 (old head aecd79eb07, new head 2bb4bbc664). Conflicts: the services module list (main replaced reload with restart_note), one Mods tab comment, and generated mod docs (regenerated). Also fixed the review's L1: picking another microphone of the same name now selects it; the same condition was on main in gpu/vk/menu/audio.cpp, so the bug predates this PR. Checks rerun (see Testing); not run in the game again, and not measured again (see Measurements).

Rebased onto main f359e2621315 (old head aecd79eb07f6, new head 2bb4bbc664c5). Conflicts: the services module list (main replaced reload with restart_note), one Mods tab comment, and generated mod docs (regenerated). Also fixed the review's L1: picking another microphone of the same name now selects it; the same condition was on main in gpu/vk/menu/audio.cpp, so the bug predates this PR. Checks rerun (see Testing); not run in the game again, and not measured again (see Measurements).
Author
Owner
@review
BeanBot left a comment

Recommendation: Approve. The code is ready: only testing is left. The microphone selection fix handles the reported same-name case, and the branch is mergeable. The moved menu paths and per-present costs still need the runs identified in L2 and L3. Recommend approval; not approved on the forge.

The change moves Insert menu input and device logic into the game while leaving rendering in the renderer. It simplifies that boundary at the cost of a broad behavior-preserving migration that still needs platform testing.

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

  • L2: The moved input, device and output paths have not been exercised on Windows or Linux AMD, and the visible Linux session did not identify the menu features exercised. When: A platform-specific failure in opening the menu, changing a device or returning input to the game would affect players on those systems without appearing in the recorded compile checks. Do: Run the listed keyboard, controller, device, monitor and settings checks on Windows and Linux AMD, and record the results; include sandboxed Restart and pipeline sharing.
  • L3: The per-present changes have not been measured with the menu open or with frame generation enabled. When: Menu work now crosses the game and renderer boundary each present; a change to frame pacing while the menu is open or frame generation is active would not appear in the recorded menu-closed run. Do: Compare repeated interleaved base and head runs with the menu open, including an RTX 40 or newer run with DLSS Frame Generation, and record frame times and 1% lows.

Since the last review (on aecd79eb07)
Resolved: L1 (A change between two microphones with the same saved name is ignored because the row index…); L4 (It conflicts with its base branch: bring it up to date (@​fix or @​rebase try first).)
Still open: L2 (The moved input, device and output paths have not been exercised on Windows or Linux AMD,…); L3 (The per-present changes have not been measured with the menu open or with frame generation…)

Checks: Still running: 11 checks.

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

Does it help: Not a perf change. One Linux RTX 3090 menu-closed pair measured 128.3 versus 128.7 fps and 107.2 versus 106.1 fps 1% lows; the author reports those differences within main's run-to-run spread. The menu-open and frame-generation costs remain unmeasured.

Other systems: The migration affects input, audio devices, monitors, output sizing and per-present work on Windows and Linux, across GPU vendors and frame-generation modes. Linux NVIDIA had an earlier visible run; Windows and Linux AMD have not run, and frame generation with the menu open has not been measured.

Switches: None added or changed, according to the pull request.

Reviewed: 2bb4bbc664 against f359e26213: Read devices.rs and its tests, the microphone selection change and test, the changed generated-document headers and Mods tab comment, repository guidance, and the commit list. The full pull request diff and remaining changed code were not read in full; the review relies on the earlier ledger for those areas.; nothing run (a code review).

Checked and fine:

  • The microphone test exercises both directions between same-name devices and checks that unchanged settings do not repeatedly select a device.
  • The recorded local check failures also occur on the base.

Testing: No commands from the project were run. The recorded in-game session predates the rebase and microphone fix; CI is still running.

Overlaps and merge order: WIP #3116 and #3080 overlap the renderer; whichever merges second needs a manual rebase.


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 microphone selection fix handles the reported same-name case, and the branch is mergeable. The moved menu paths and per-present costs still need the runs identified in L2 and L3. Recommend approval; not approved on the forge. The change moves Insert menu input and device logic into the game while leaving rendering in the renderer. It simplifies that boundary at the cost of a broad behavior-preserving migration that still needs platform testing. **Testing before merging (2)** (runs on the systems it can change; it doesn't hold the recommendation) - **L2**: The moved input, device and output paths have not been exercised on Windows or Linux AMD, and the visible Linux session did not identify the menu features exercised. *When:* A platform-specific failure in opening the menu, changing a device or returning input to the game would affect players on those systems without appearing in the recorded compile checks. **Do:** Run the listed keyboard, controller, device, monitor and settings checks on Windows and Linux AMD, and record the results; include sandboxed Restart and pipeline sharing. - **L3**: The per-present changes have not been measured with the menu open or with frame generation enabled. *When:* Menu work now crosses the game and renderer boundary each present; a change to frame pacing while the menu is open or frame generation is active would not appear in the recorded menu-closed run. **Do:** Compare repeated interleaved base and head runs with the menu open, including an RTX 40 or newer run with DLSS Frame Generation, and record frame times and 1% lows. **Since the last review** (on aecd79eb07f6) Resolved: L1 (A change between two microphones with the same saved name is ignored because the row index…); L4 (It conflicts with its base branch: bring it up to date (`@​fix` or `@​rebase` try first).) Still open: L2 (The moved input, device and output paths have not been exercised on Windows or Linux AMD,…); L3 (The per-present changes have not been measured with the menu open or with frame generation…) **Checks:** Still running: 11 checks. <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Not a perf change. One Linux RTX 3090 menu-closed pair measured 128.3 versus 128.7 fps and 107.2 versus 106.1 fps 1% lows; the author reports those differences within main's run-to-run spread. The menu-open and frame-generation costs remain unmeasured. **Other systems:** The migration affects input, audio devices, monitors, output sizing and per-present work on Windows and Linux, across GPU vendors and frame-generation modes. Linux NVIDIA had an earlier visible run; Windows and Linux AMD have not run, and frame generation with the menu open has not been measured. **Switches:** None added or changed, according to the pull request. **Reviewed:** 2bb4bbc664c5 against f359e2621315: Read devices.rs and its tests, the microphone selection change and test, the changed generated-document headers and Mods tab comment, repository guidance, and the commit list. The full pull request diff and remaining changed code were not read in full; the review relies on the earlier ledger for those areas.; nothing run (a code review). **Checked and fine:** - The microphone test exercises both directions between same-name devices and checks that unchanged settings do not repeatedly select a device. - The recorded local check failures also occur on the base. **Testing:** No commands from the project were run. The recorded in-game session predates the rebase and microphone fix; CI is still running. **Overlaps and merge order:** WIP #3116 and #3080 overlap the renderer; whichever merges second needs a manual rebase. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.</sub>
HumanBean force-pushed refactor/menu-out-of-renderer from 2bb4bbc664
Some checks failed
beanstalk/approval not approved yet
PR description / Title and description (pull_request_target) Failing after 9s
CI / What the change needs (pull_request) Successful in 8s
CI / Third-party parts and guide screenshots (pull_request) Successful in 13s
CI / Lint (pre-commit, ShellCheck, actionlint) (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 14a29409f0
Some checks failed
beanstalk/approval not approved yet
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 09:04:31 +00:00
Compare
Author
Owner

Rebased onto main 7bc53f8413 (old head 2bb4bbc664, new head 14a29409f0). Two things from main needed porting: #3209's settingsHost.open (the pause menu's button) is now taken by the game's menu state, with a test, and #3202's HUD-less check asks ui_modal() where it asked menu_is_open(), which did not compile here. Checks are in Testing. Not run in the game.

Rebased onto main 7bc53f841323 (old head 2bb4bbc664c5, new head 14a29409f008). Two things from main needed porting: #3209's settingsHost.open (the pause menu's button) is now taken by the game's menu state, with a test, and #3202's HUD-less check asks ui_modal() where it asked menu_is_open(), which did not compile here. Checks are in Testing. Not run in the game.
Author
Owner
@rebase
Member

I rebased this pull request onto main (0473f11e88): the new head is 72645c8af4.

Conflicts resolved

  • gpu/vk/settings/upscaler.cpp: Kept the reason-code refactor and removed the obsolete renderer help tables. The base branch’s updated help text is already in the game’s menu.

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` (0473f11e88e0): the new head is 72645c8af450. **Conflicts resolved** - gpu/vk/settings/upscaler.cpp: Kept the reason-code refactor and removed the obsolete renderer help tables. The base branch’s updated help text is already in the game’s menu. 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 refactor/menu-out-of-renderer from 14a29409f0
Some checks failed
beanstalk/approval not approved yet
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 72645c8af4
Some checks failed
beanstalk/approval not approved yet
PR description / Title and description (pull_request_target) Failing after 8s
CI / What the change needs (pull_request) Successful in 8s
CI / Third-party parts and guide screenshots (pull_request) Successful in 13s
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Failing after 16s
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Failing after 13m18s
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Failing after 1m19s
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Successful in 10m31s
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Successful in 10m29s
CI / Website build and checks (pull_request) Failing after 40s
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Failing after 46m22s
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Failing after 1h0m9s
2026-12-05 16:44:48 +00:00
Compare
HumanBean deleted branch refactor/menu-out-of-renderer 2026-12-05 16:45:00 +00:00
BeanBot left a comment

Recommendation: Approve. The code is ready: only testing is left. The refactor has had a Linux in-game session, but its affected menu paths still need identified Windows and Linux AMD runs. Menu-open and frame-generation performance measurements are also outstanding. Recommend approval; not approved on the forge.

Moves menu input, device and output logic from the renderer into the game, simplifying the renderer while preserving the intended menu behavior. The change touches platform-dependent input and device paths and adds work to the present path.

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

  • L2: The moved input, device and output paths have not been exercised on Windows or Linux AMD, and the visible Linux session did not identify the menu features exercised. When: A platform-specific failure in opening the menu, changing a device or returning input to the game would affect players on those systems without appearing in the recorded compile checks. Do: Run the listed keyboard, controller, device, monitor and settings checks on Windows and Linux AMD, and record the results; include sandboxed Restart and pipeline sharing.
  • L3: The per-present changes have not been measured with the menu open or with frame generation enabled. When: Menu work now crosses the game and renderer boundary each present; a change to frame pacing while the menu is open or frame generation is active would not appear in the recorded menu-closed run. Do: Compare repeated interleaved base and head runs with the menu open, including an RTX 40 or newer run with DLSS Frame Generation, and record frame times and 1% lows.

Since the last review (on 2bb4bbc664)
Still open: L2 (The moved input, device and output paths have not been exercised on Windows or Linux AMD,…); L3 (The per-present changes have not been measured with the menu open or with frame generation…)

Checks: Still running: 11 checks.

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

Does it help: Unproven: this is primarily a refactor. One Linux RTX 3090 Market run with the menu closed measured 128.3 fps before and 128.7 fps after; 1% lows were 107.2 and 106.1 fps. The differences were within the spread of a second main run, but there was only one PR run and no menu-open or frame-generation measurement.

Other systems: Windows, Linux AMD, controller input, devices, monitors and DLSS Frame Generation can follow changed paths. Windows and Linux host code compiled according to the PR, but Windows and Linux AMD have not been run, and the earlier Linux NVIDIA session did not identify the menu features exercised.

Switches: None added or changed, according to the PR.

Reviewed: 72645c8af4 against 0473f11e88: Read the repository guidance and pull request template, the changed menu-open and frame-generation paths and their surrounding code, and the commit and rebase summaries. The full pull request diff and all changed files were not read; generated files and translations were not individually reviewed. The repository review checklist and adjacent Tooling guidance were unavailable.; nothing run (a code review).

Checked and fine:

  • The pause-menu open action reaches the game menu state, and an open request is consumed without closing an already open menu.
  • The DLSS Frame Generation HUD-less check reads the UI modal state, which the game sets from the menu's open state.

Testing: No commands that build, test or run the project were executed. The reported earlier Linux NVIDIA session and compile checks are useful evidence; the requested platform runs and measurements remain outstanding. CI is still running.

Overlaps and merge order: #3116 and #3080 overlap; whichever merges second needs a manual rebase.


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 code is ready: only testing is left. The refactor has had a Linux in-game session, but its affected menu paths still need identified Windows and Linux AMD runs. Menu-open and frame-generation performance measurements are also outstanding. Recommend approval; not approved on the forge. Moves menu input, device and output logic from the renderer into the game, simplifying the renderer while preserving the intended menu behavior. The change touches platform-dependent input and device paths and adds work to the present path. **Testing before merging (2)** (runs on the systems it can change; it doesn't hold the recommendation) - **L2**: The moved input, device and output paths have not been exercised on Windows or Linux AMD, and the visible Linux session did not identify the menu features exercised. *When:* A platform-specific failure in opening the menu, changing a device or returning input to the game would affect players on those systems without appearing in the recorded compile checks. **Do:** Run the listed keyboard, controller, device, monitor and settings checks on Windows and Linux AMD, and record the results; include sandboxed Restart and pipeline sharing. - **L3**: The per-present changes have not been measured with the menu open or with frame generation enabled. *When:* Menu work now crosses the game and renderer boundary each present; a change to frame pacing while the menu is open or frame generation is active would not appear in the recorded menu-closed run. **Do:** Compare repeated interleaved base and head runs with the menu open, including an RTX 40 or newer run with DLSS Frame Generation, and record frame times and 1% lows. **Since the last review** (on 2bb4bbc664c5) Still open: L2 (The moved input, device and output paths have not been exercised on Windows or Linux AMD,…); L3 (The per-present changes have not been measured with the menu open or with frame generation…) **Checks:** Still running: 11 checks. <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Unproven: this is primarily a refactor. One Linux RTX 3090 Market run with the menu closed measured 128.3 fps before and 128.7 fps after; 1% lows were 107.2 and 106.1 fps. The differences were within the spread of a second main run, but there was only one PR run and no menu-open or frame-generation measurement. **Other systems:** Windows, Linux AMD, controller input, devices, monitors and DLSS Frame Generation can follow changed paths. Windows and Linux host code compiled according to the PR, but Windows and Linux AMD have not been run, and the earlier Linux NVIDIA session did not identify the menu features exercised. **Switches:** None added or changed, according to the PR. **Reviewed:** 72645c8af450 against 0473f11e88e0: Read the repository guidance and pull request template, the changed menu-open and frame-generation paths and their surrounding code, and the commit and rebase summaries. The full pull request diff and all changed files were not read; generated files and translations were not individually reviewed. The repository review checklist and adjacent Tooling guidance were unavailable.; nothing run (a code review). **Checked and fine:** - The pause-menu open action reaches the game menu state, and an open request is consumed without closing an already open menu. - The DLSS Frame Generation HUD-less check reads the UI modal state, which the game sets from the menu's open state. **Testing:** No commands that build, test or run the project were executed. The reported earlier Linux NVIDIA session and compile checks are useful evidence; the requested platform runs and measurements remain outstanding. CI is still running. **Overlaps and merge order:** #3116 and #3080 overlap; whichever merges second needs a manual rebase. </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>
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
3 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!3208
No description provided.