Probe the runtime adapter before warming the shader cache #815

Closed
github-bot wants to merge 2 commits from gh-pr/815/head into gh-pr/815/base
Owner

@⁠Kamiloj9 on GitHub · 2026-11-25 08:35 UTC · original
Kamiloj9:codex/warm-adapter-cache-key → main · +33 −8 · 4 files · 2 commits · closed without merging

Change

Probe the host adapter's wave size and view-heap limit before translate --warm starts worker threads. The default cache keys then match normal pipeline translation. Preserve explicit VICTORY_HOST_WAVE and VICTORY_VIEW_LIMIT overrides. When both values are supplied, warming works without initializing a local device.

Verification

  • Workspace check, asset policy and independent code review.
  • On RTX, two CLI runs over an isolated capture first translated the shader, then found it in the cache. A separate local title process with the same build and adapter read the exact prewarmed cache entry and created the compute PSO.
  • After the override follow-up, detected adapter facts and explicitly specified matching facts produced the same cache entry. Changing the specified wave size produced a distinct entry. The replay measured cache reuse only.
**@⁠Kamiloj9** on GitHub · 2026-11-25 08:35 UTC · [original](https://github.com/fxceless/victory-fork/pull/815) `Kamiloj9:codex/warm-adapter-cache-key` → `main` · +33 −8 · 4 files · 2 commits · closed without merging ## Change Probe the host adapter's wave size and view-heap limit before `translate --warm` starts worker threads. The default cache keys then match normal pipeline translation. Preserve explicit `VICTORY_HOST_WAVE` and `VICTORY_VIEW_LIMIT` overrides. When both values are supplied, warming works without initializing a local device. ## Verification - Workspace check, asset policy and independent code review. - On RTX, two CLI runs over an isolated capture first translated the shader, then found it in the cache. A separate local title process with the same build and adapter read the exact prewarmed cache entry and created the compute PSO. - After the override follow-up, detected adapter facts and explicitly specified matching facts produced the same cache entry. Changing the specified wave size produced a distinct entry. The replay measured cache reuse only.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:51:44 +00:00
github-bot closed this pull request 2026-11-26 03:51:44 +00:00
Author
Owner

@⁠MamaLeVrai on GitHub · 2026-11-25 10:12 UTC · original

Test report on real hardware: AMD RX 6950 XT (RDNA2), Windows 11, Rust 1.98.1, with a GPU present. I merged this PR's head edf81bc into main 9376fd6 in a throwaway tree (no conflict). cargo clippy --workspace --all-targets --locked -- -D warnings fails with exactly the errors main itself has on this machine (placed_filler_twins never used, depth_written never read, in victory-gpu); with --all-features it fails with the same number of errors as main (4). This PR adds none and removes none. cargo test --workspace --locked: 540 passed, 0 failed, 10 ignored, two runs (main alone: 540 passed, 0 failed, 10 ignored). The title was not run, so this says nothing about in-game effect. No game data.

AI-assisted (Claude Code); no game data.

**@⁠MamaLeVrai** on GitHub · 2026-11-25 10:12 UTC · [original](https://github.com/fxceless/victory-fork/pull/815#issuecomment-7159389826) Test report on real hardware: AMD RX 6950 XT (RDNA2), Windows 11, Rust 1.98.1, with a GPU present. I merged this PR's head `edf81bc` into `main` `9376fd6` in a throwaway tree (no conflict). `cargo clippy --workspace --all-targets --locked -- -D warnings` fails with exactly the errors `main` itself has on this machine (`placed_filler_twins` never used, `depth_written` never read, in `victory-gpu`); with `--all-features` it fails with the same number of errors as `main` (4). This PR adds none and removes none. `cargo test --workspace --locked`: 540 passed, 0 failed, 10 ignored, two runs (`main` alone: 540 passed, 0 failed, 10 ignored). The title was not run, so this says nothing about in-game effect. No game data. AI-assisted (Claude Code); no game data.

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.