fix(ux): move stats overlay to F3, add F1/F10 settings hotkeys, clean MiniVI v2.0 labels, and harden --preload teardown #449

Open
github-bot wants to merge 1 commit from github-bot/gh-449 into v2.0 AGit
Owner

@⁠Androtim on GitHub · 2026-12-06 02:29 UTC · original
Androtim:feat/v2.0-hotkeys-and-ux → v2.0 · +639 −254 · 35 files · 1 commits · open

Summary

  • Move Performance/Stats Overlay hotkey from F9 to F3: gameinput.rs now uses PERF_TOGGLE_VK (VK_F3 / 0x72) for the performance overlay, leaving F9 (VK_F9 / 0x78) completely untouched by the runtime so MiniVI-Launcher's PresentMon recording hotkey works without collision.
  • Support both F1 and F10 for the Settings Menu + mouse capture release: gameinput.rs maps both 0x70 (F1) and 0x79 (F10) to menu::TOGGLE, mouse.rs releases mouse capture on F1/F10 (WM_KEYDOWN/WM_SYSKEYDOWN) and when settings::is_open() is active, and settings/menu.rs skips both F1 and F10 during control rebinding. Updated user-facing hints, README.md, and docs/*.md.
  • Clean visible MiniVI v2.0 overlay labels (non-breaking): Updated all 9 locales/*.json overlay strings (look.title, look.default.layer_name, menu.title, F3/F1/F10 hints) so visible HUD titles display MiniVI / MiniVI v2.0 while preserving all LARP_* env vars, CLI flags, data/cache directory defaults, crate names, and NOTICE/LICENSE attributions.
  • Harden --preload teardown & exit thread spawns: Added coordinated shutdown signaling (pipeline::make::begin_shutdown / pipeline::exiting(), loader::is_exiting()) in preload_done so pipeline workers wake and exit without releasing HOLD, blob writes flush/stop cleanly, and background thread spawners (larp-loader, larp-gpu, xasync, apu, dsp, gameinput, lifecycle) guard against ERROR_ACCESS_DENIED (os error 5) panics once process exit begins.

Verification

  • Automated Checks (GNU toolchain 1.98.1-x86_64-pc-windows-gnu):
    • cargo xtask policy — asset policy: 504 files ok
    • cargo clippy --workspace --all-targets --locked -- -D warnings — passed (0 warnings)
    • cargo test --workspace --locked — passed (274 passed, 0 failed, 9 pre-existing ignored across workspace crates; doc-tests: 0 failed), including new unit tests covering F3 overlay dispatch, F1/F10 menu & mouse capture handling, F1/F10 rebind exclusion, and pipeline shutdown waking workers without releasing hold
  • Live GPU / Gate 2 & Gate 3: Pending CI / Command Center run.
**@⁠Androtim** on GitHub · 2026-12-06 02:29 UTC · [original](https://github.com/Androtim/MiniVI/pull/449) `Androtim:feat/v2.0-hotkeys-and-ux` → `v2.0` · +639 −254 · 35 files · 1 commits · open ## Summary - **Move Performance/Stats Overlay hotkey from `F9` to `F3`:** `gameinput.rs` now uses `PERF_TOGGLE_VK` (`VK_F3` / `0x72`) for the performance overlay, leaving `F9` (`VK_F9` / `0x78`) completely untouched by the runtime so `MiniVI-Launcher`'s PresentMon recording hotkey works without collision. - **Support both `F1` and `F10` for the Settings Menu + mouse capture release:** `gameinput.rs` maps both `0x70` (`F1`) and `0x79` (`F10`) to `menu::TOGGLE`, `mouse.rs` releases mouse capture on `F1`/`F10` (`WM_KEYDOWN`/`WM_SYSKEYDOWN`) and when `settings::is_open()` is active, and `settings/menu.rs` skips both `F1` and `F10` during control rebinding. Updated user-facing hints, `README.md`, and `docs/*.md`. - **Clean visible `MiniVI v2.0` overlay labels (non-breaking):** Updated all 9 `locales/*.json` overlay strings (`look.title`, `look.default.layer_name`, `menu.title`, `F3`/`F1`/`F10` hints) so visible HUD titles display `MiniVI` / `MiniVI v2.0` while preserving all `LARP_*` env vars, CLI flags, `data`/`cache` directory defaults, crate names, and `NOTICE`/`LICENSE` attributions. - **Harden `--preload` teardown & exit thread spawns:** Added coordinated shutdown signaling (`pipeline::make::begin_shutdown` / `pipeline::exiting()`, `loader::is_exiting()`) in `preload_done` so pipeline workers wake and exit without releasing `HOLD`, blob writes flush/stop cleanly, and background thread spawners (`larp-loader`, `larp-gpu`, `xasync`, `apu`, `dsp`, `gameinput`, `lifecycle`) guard against `ERROR_ACCESS_DENIED` (`os error 5`) panics once process exit begins. ## Verification - **Automated Checks (GNU toolchain `1.98.1-x86_64-pc-windows-gnu`):** - [x] `cargo xtask policy` — `asset policy: 504 files ok` - [x] `cargo clippy --workspace --all-targets --locked -- -D warnings` — passed (0 warnings) - [x] `cargo test --workspace --locked` — passed (`274` passed, `0` failed, `9` pre-existing ignored across workspace crates; doc-tests: `0` failed), including new unit tests covering `F3` overlay dispatch, `F1`/`F10` menu & mouse capture handling, `F1`/`F10` rebind exclusion, and pipeline shutdown waking workers without releasing hold - **Live GPU / Gate 2 & Gate 3:** Pending CI / Command Center run.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-06 02:34:17 +00:00
Author
Owner

@⁠Androtim on GitHub · 2026-12-06 02:55 UTC · original

Triage Review (0ba0556b -> v2.0)

  • CI (check): PASS
  • Mergeability: CONFLICTING against current v2.0 (eb8b84d5, likely on README.md / crates/larp-gpu/src/pipeline/).
  • Action needed: Rebase onto origin/v2.0, let CI pass green, and attach smoke/GPU verification (0 crashes/DRED).

Marked triage: needs rebase.

**@⁠Androtim** on GitHub · 2026-12-06 02:55 UTC · [original](https://github.com/Androtim/MiniVI/pull/449#issuecomment-7450311833) ### Triage Review (`0ba0556b` -> `v2.0`) - **CI (`check`):** **PASS** - **Mergeability:** **`CONFLICTING`** against current `v2.0` (`eb8b84d5`, likely on `README.md` / `crates/larp-gpu/src/pipeline/`). - **Action needed:** Rebase onto `origin/v2.0`, let CI pass green, and attach smoke/GPU verification (`0` crashes/DRED). Marked `triage: needs rebase`.
This pull request has changes conflicting with the target branch.
  • crates/larp-gpu/src/pipeline/make.rs
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/449/head:github-bot/gh-449'
git switch 'github-bot/gh-449'

Merge

Merge the changes and update on Forgejo.
git switch 'v2.0'
git merge --no-ff 'github-bot/gh-449'
git switch 'github-bot/gh-449'
git rebase 'v2.0'
git switch 'v2.0'
git merge --ff-only 'github-bot/gh-449'
git switch 'github-bot/gh-449'
git rebase 'v2.0'
git switch 'v2.0'
git merge --no-ff 'github-bot/gh-449'
git switch 'v2.0'
git merge --squash 'github-bot/gh-449'
git switch 'v2.0'
git merge --ff-only 'github-bot/gh-449'
git switch 'v2.0'
git merge 'github-bot/gh-449'
git push origin 'v2.0'
This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/Androtim--MiniVI!449
No description provided.