feat(gpu,play): show build version and RT mode in F3 overlay, title bar, and logs #380

Merged
Androtim merged 2 commits from upstream-pr/380 into main 2026-12-03 09:02:16 +00:00
Androtim commented 2026-12-03 08:47:24 +00:00 (Migrated from github.com)

Imported from Androtim/MiniVI. Originally posted by Androtim on 2026-12-03T08:47:24Z.


Summary

Embeds the compile-time build version (exact release tag e.g. 2026.12.03.04 on tagged CI builds, or 7-char git SHA on dev builds) and active ray-tracing mode (RT OFF / RT HW / RT SW) so screenshots and logs immediately identify the exact build and mode without needing follow-up questions.

Changes

  • crates/victory-gpu/build.rs: Resolves VICTORY_BUILD_VERSION in priority order: MINIVI_BUILD_VERSION -> GITHUB_REF_NAME (on
    efs/tags/*) -> git describe --tags --exact-match -> git rev-parse --short=7 HEAD -> CARGO_PKG_VERSION, with cargo:rerun-if-env-changed and .git/HEAD + refs watching (supports worktrees; never invalidates VICTORY_TRANSLATOR).
  • crates/victory-gpu/src/lib.rs & crates/victory-hle/src/lib.rs: Exposes pub const BUILD_VERSION: &str.
  • crates/victory-gpu/src/host/panel.rs:
    • Renders MINIVI (F3) ... F1: MENU dynamically within the existing 40-column box (LINES unchanged), uppercasing and sanitizing to supported 5x7 font glyphs.
    • Appends RT OFF / RT HW / RT SW to the FRAME GEN line.
    • Adds unit tests covering release tags, short SHAs, empty/overlong/unusual version strings, and all RT/FG combinations.
  • crates/victory-gpu/src/host.rs: Includes BUILD_VERSION in the window caption.
  • pps/victory/src/play.rs: Prepends ersion=<BUILD_VERSION> to log line 1 and startup console output.

Rig Specs Tested On

  • CPU: Intel Core i7-13700F
  • GPU & VRAM: NVIDIA GeForce RTX 4060 Ti 8 GB
  • System RAM: 32 GB
  • OS & GPU Driver: Windows 11 26300, NVIDIA 621.24

Verification

  • cargo clippy -p victory-gpu -p victory-hle -p victory --all-targets --locked -- -D warnings (0 warnings)
  • cargo clippy -p victory-gpu -p victory-hle -p victory --all-targets --all-features --locked -- -D warnings (0 warnings)
  • cargo test -p victory-gpu --lib host::panel (8 passed, 0 failed)
  • cargo xtask policy (sset policy: 349 files ok)
  • Live RTX 4060 Ti 1440 run verified crisp MINIVI 50E503C (F3) ... F1: MENU, FRAME GEN OFF RT OFF, and # version=50e503c ... on log line 1.
<!-- greyfinch-sync:Androtim/MiniVI:issue:5623072114 --> Imported from [Androtim/MiniVI](https://github.com/Androtim/MiniVI/pull/380). Originally posted by [Androtim](https://github.com/Androtim) on 2026-12-03T08:47:24Z. --- ## Summary Embeds the compile-time build version (exact release tag e.g. 2026.12.03.04 on tagged CI builds, or 7-char git SHA on dev builds) and active ray-tracing mode (RT OFF / RT HW / RT SW) so screenshots and logs immediately identify the exact build and mode without needing follow-up questions. ### Changes - **crates/victory-gpu/build.rs:** Resolves VICTORY_BUILD_VERSION in priority order: MINIVI_BUILD_VERSION -> GITHUB_REF_NAME (on efs/tags/*) -> git describe --tags --exact-match -> git rev-parse --short=7 HEAD -> CARGO_PKG_VERSION, with cargo:rerun-if-env-changed and .git/HEAD + refs watching (supports worktrees; never invalidates VICTORY_TRANSLATOR). - **crates/victory-gpu/src/lib.rs & crates/victory-hle/src/lib.rs:** Exposes pub const BUILD_VERSION: &str. - **crates/victory-gpu/src/host/panel.rs:** - Renders MINIVI <VERSION> (F3) ... F1: MENU dynamically within the existing 40-column box (LINES unchanged), uppercasing and sanitizing to supported 5x7 font glyphs. - Appends RT OFF / RT HW / RT SW to the FRAME GEN line. - Adds unit tests covering release tags, short SHAs, empty/overlong/unusual version strings, and all RT/FG combinations. - **crates/victory-gpu/src/host.rs:** Includes BUILD_VERSION in the window caption. - **pps/victory/src/play.rs:** Prepends ersion=<BUILD_VERSION> to log line 1 and startup console output. ## Rig Specs Tested On - **CPU:** Intel Core i7-13700F - **GPU & VRAM:** NVIDIA GeForce RTX 4060 Ti 8 GB - **System RAM:** 32 GB - **OS & GPU Driver:** Windows 11 26300, NVIDIA 621.24 ## Verification - [x] cargo clippy -p victory-gpu -p victory-hle -p victory --all-targets --locked -- -D warnings (0 warnings) - [x] cargo clippy -p victory-gpu -p victory-hle -p victory --all-targets --all-features --locked -- -D warnings (0 warnings) - [x] cargo test -p victory-gpu --lib host::panel (8 passed, 0 failed) - [x] cargo xtask policy (sset policy: 349 files ok) - [x] Live RTX 4060 Ti 1440 run verified crisp MINIVI 50E503C (F3) ... F1: MENU, FRAME GEN OFF RT OFF, and # version=50e503c ... on log line 1.
Sign in to join this conversation.
No reviewers
No labels
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.

Reference
Androtim/MiniVI!380
No description provided.