feat(gpu,core): add opt-in startup hardware autotune probe and victory.toml (VICTORY_AUTOTUNE=1) #418

Closed
Vladimir-Human wants to merge 660 commits from upstream-pr/418 into main
Vladimir-Human commented 2026-11-28 15:22:37 +00:00 (Migrated from github.com)

Imported from TaynanGT/Vice-Tay. Originally posted by Vladimir-Human on 2026-11-28T15:22:37Z.


Implements item #3 from #401 strictly opt-in (VICTORY_AUTOTUNE=1 or VICTORY_AUTOTUNE_FILE, default OFF = 0).

Summary (0645c95)

  • Probes DXGI dedicated VRAM & budgets, display-output LUID mismatch risk, ReBAR (GPUUploadHeapSupported), D3D12_FEATURE_DATA_ARCHITECTURE1 UMA/cache-coherency, and CPU logical/P/E/NUMA/L3-domain topology at startup when opted in.
  • Reads/writes inspectable victory.toml (ram_budget_mb, vram_tier, hybrid_cpu, advisory uma_fast_path) using existing workspace deps (Cargo.lock untouched).
  • Invariants: default OFF executes zero probe/file I/O; explicit VICTORY_* environment variables strictly take precedence over victory.toml; generated profiles keep uma_fast_path = false (auto UMA activation stays disabled per Radeon 8060S finding).

Verification

  • cargo xtask policy: OK
  • cargo clippy -p victory-core -p victory-gpu --all-targets --locked -- -D warnings & --features diagnostics: 0 warnings
  • cargo test -p victory-core --locked: 15/15 passed
  • VICTORY_D3D12_DEBUG=1 & VICTORY_D3D12_WARP=1 cargo test -p victory-gpu --features diagnostics --locked --lib autotune: 14/14 passed on both
<!-- greyfinch-sync:TaynanGT/Vice-Tay:issue:5541661037 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/pull/418). Originally posted by [Vladimir-Human](https://github.com/Vladimir-Human) on 2026-11-28T15:22:37Z. --- Implements item #3 from #401 strictly opt-in (`VICTORY_AUTOTUNE=1` or `VICTORY_AUTOTUNE_FILE`, default OFF = `0`). ### Summary (`0645c95`) - Probes DXGI dedicated VRAM & budgets, display-output LUID mismatch risk, ReBAR (`GPUUploadHeapSupported`), `D3D12_FEATURE_DATA_ARCHITECTURE1` UMA/cache-coherency, and CPU logical/P/E/NUMA/L3-domain topology at startup when opted in. - Reads/writes inspectable `victory.toml` (`ram_budget_mb`, `vram_tier`, `hybrid_cpu`, advisory `uma_fast_path`) using existing workspace deps (`Cargo.lock` untouched). - **Invariants:** default OFF executes zero probe/file I/O; explicit `VICTORY_*` environment variables strictly take precedence over `victory.toml`; generated profiles keep `uma_fast_path = false` (auto UMA activation stays disabled per Radeon 8060S finding). ### Verification - `cargo xtask policy`: **OK** - `cargo clippy -p victory-core -p victory-gpu --all-targets --locked -- -D warnings` & `--features diagnostics`: **0 warnings** - `cargo test -p victory-core --locked`: **15/15 passed** - `VICTORY_D3D12_DEBUG=1` & `VICTORY_D3D12_WARP=1` `cargo test -p victory-gpu --features diagnostics --locked --lib autotune`: **14/14 passed** on both
TaynanGT commented 2026-11-29 11:35:43 +00:00 (Migrated from github.com)

Imported from TaynanGT/Vice-Tay. Originally posted by TaynanGT on 2026-11-29T11:35:43Z.


Thanks for keeping the hardware probe opt-in and explicit environment settings authoritative. Please preserve the no-probe/no-write behavior when disabled, and test invalid or stale victory.toml files and adapter changes. Automatic UMA activation should remain disabled pending hardware evidence.

<!-- greyfinch-sync:TaynanGT/Vice-Tay:comment:7255218266 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/pull/418#issuecomment-7255218266). Originally posted by [TaynanGT](https://github.com/TaynanGT) on 2026-11-29T11:35:43Z. --- Thanks for keeping the hardware probe opt-in and explicit environment settings authoritative. Please preserve the no-probe/no-write behavior when disabled, and test invalid or stale victory.toml files and adapter changes. Automatic UMA activation should remain disabled pending hardware evidence.
TaynanGT commented 2026-11-30 17:08:13 +00:00 (Migrated from github.com)

Imported from TaynanGT/Vice-Tay. Originally posted by TaynanGT on 2026-11-30T17:08:13Z.


main has moved to a new line of the code and everything is now named Vice-Tay, so this PR no longer applies as it is (details in #468). If you'd like this change in, please rebuild it on the current main and open a new PR; I'll review it there.

<!-- greyfinch-sync:TaynanGT/Vice-Tay:comment:7285775257 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/pull/418#issuecomment-7285775257). Originally posted by [TaynanGT](https://github.com/TaynanGT) on 2026-11-30T17:08:13Z. --- `main` has moved to a new line of the code and everything is now named Vice-Tay, so this PR no longer applies as it is (details in #468). If you'd like this change in, please rebuild it on the current `main` and open a new PR; I'll review it there.

Pull request closed

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
TaynanGT/Vice-Tay!418
No description provided.