fix(warm): fix warm --used, add --route-file, scope shader repair #549

Open
github-bot wants to merge 2 commits from github-bot/gh-549 into main AGit
Owner

@⁠chefulano on GitHub · 2026-12-05 02:46 UTC · original
chefulano:pr4/warm-used-and-route-file → main · +459 −34 · 3 files · 2 commits · open

Problem

On current main, native is always Some(...), so victory warm --used is unconditionally a no-op that warms the entire catalog, and the post-warm durability check asserts every catalog entry exists on disk. Because ./run.sh warm passes warm --used, users on constrained 8 GiB VRAM / 16 GiB RAM systems (e.g., AMD RDNA 3 / RX 7600M XT 8 GiB) end up translating and compiling the full catalog instead of the boot/used subset. Fixed all.chunks(256) batches also under-utilize worker processes on small or medium warm subsets, and repair_shaders always scans every shader in known-shaders.bin even when warming a small subset.

Change

  • Fix --used with native artifacts: select_pipelines() (taking grouped SelectInputs<'a>) and pipeline_in_scope() filter to early-pipelines.txt ∪ compute_indices (where compute_indices is a small superset of make::early() that also includes of_builder compute entries) and scope the post-warm durability check to that subset. Since ./run.sh warm passes --used, when early-pipelines.txt is missing or empty --used prints a stderr note explaining that only compute pipelines will be warmed (run victory warm without --used for the full catalog).
  • Add --route-file <path>: Reads newline-delimited 32-hex pipeline keys (stripping a leading UTF-8 BOM for PowerShell 5.1 files, ignoring blank lines and # comments, normalizing case, validating 32-hex format, and rejecting empty or comment-only files instead of exiting 0 with 0 of 0), includes (expected UTF-8 text) in read errors, marks --route-file as conflicts_with = "used" in clap, warns if any requested key is absent from known-pipelines.bin (missing_route_keys()), and warms strictly the listed subset.
  • Dynamic worker chunking (16..=256): Replaces fixed all.chunks(256) with batch_chunk_size(total, jobs) = (total / (jobs * 4).max(1)).clamp(16, 256), improving worker utilization whenever the remaining workload supplies enough chunks above the 16-entry floor while keeping 256-pipeline chunks for large full-catalog runs (total >= jobs * 1024).
  • Route-scoped shader repair: Calls known::repair_shaders_for(&dir, &all) when --used or --route-file is passed so ./run.sh warm (warm --used) and --route-file repair only shaders referenced by remaining in-scope pipelines (skipping repair if --limit 0 leaves all empty). Default victory warm retains if limit.is_none() && !keys.is_empty() known::repair_shaders(&dir).

Measured impact

Not separately timed as a standalone branch; motivated by cutting iterative warm/re-warm turnaround on constrained 8 GiB VRAM / 16 GiB RAM AMD RDNA 3 (RX 7600M XT 8 GiB) setups where full-catalog warming takes far longer than warming early-pipelines.txt ∪ compute or a route subset.

Verification

  • Rebased onto main (a5c6484), independent of open PR #465 and companion GPU PRs.
  • cargo xtask policy: 368 files ok; cargo test -p xtask -- policy::tests: 7 passed, 0 failed; cargo test -p xtask -- switches::documented_switches_are_read: 1 passed, 0 failed.
  • cargo check --locked --target x86_64-pc-windows-msvc -p victory-gpu -p victory --tests and cargo clippy --no-deps --locked --target x86_64-pc-windows-msvc -p victory-gpu -p victory --all-targets: 0 errors, 0 new warnings.
  • Scoped Windows unit tests: warm::tests:: (7 passed, 0 failed, including BOM + CRLF comment-first/key-first parsing, empty route-file rejection, --used native filtering, --route-file strict filtering, and dynamic chunk sizing) and pipeline::known::tests:: (6 passed, 0 failed, including compute_indices_and_route_scoped_shader_ranges).
**@⁠chefulano** on GitHub · 2026-12-05 02:46 UTC · [original](https://github.com/lobomfz/VIctory-xmem/pull/549) `chefulano:pr4/warm-used-and-route-file` → `main` · +459 −34 · 3 files · 2 commits · open ## Problem On current `main`, `native` is always `Some(...)`, so `victory warm --used` is unconditionally a no-op that warms the entire catalog, and the post-warm durability check asserts every catalog entry exists on disk. Because `./run.sh warm` passes `warm --used`, users on constrained 8 GiB VRAM / 16 GiB RAM systems (e.g., AMD RDNA 3 / RX 7600M XT 8 GiB) end up translating and compiling the full catalog instead of the boot/used subset. Fixed `all.chunks(256)` batches also under-utilize worker processes on small or medium warm subsets, and `repair_shaders` always scans every shader in `known-shaders.bin` even when warming a small subset. ## Change - **Fix `--used` with native artifacts:** `select_pipelines()` (taking grouped `SelectInputs<'a>`) and `pipeline_in_scope()` filter to `early-pipelines.txt ∪ compute_indices` (where `compute_indices` is a small superset of `make::early()` that also includes `of_builder` compute entries) and scope the post-warm durability check to that subset. Since `./run.sh warm` passes `--used`, when `early-pipelines.txt` is missing or empty `--used` prints a stderr note explaining that only compute pipelines will be warmed (run `victory warm` without `--used` for the full catalog). - **Add `--route-file <path>`:** Reads newline-delimited 32-hex pipeline keys (stripping a leading UTF-8 BOM for PowerShell 5.1 files, ignoring blank lines and `#` comments, normalizing case, validating 32-hex format, and rejecting empty or comment-only files instead of exiting 0 with `0 of 0`), includes `(expected UTF-8 text)` in read errors, marks `--route-file` as `conflicts_with = "used"` in clap, warns if any requested key is absent from `known-pipelines.bin` (`missing_route_keys()`), and warms strictly the listed subset. - **Dynamic worker chunking (`16..=256`):** Replaces fixed `all.chunks(256)` with `batch_chunk_size(total, jobs) = (total / (jobs * 4).max(1)).clamp(16, 256)`, improving worker utilization whenever the remaining workload supplies enough chunks above the 16-entry floor while keeping 256-pipeline chunks for large full-catalog runs (`total >= jobs * 1024`). - **Route-scoped shader repair:** Calls `known::repair_shaders_for(&dir, &all)` when `--used` or `--route-file` is passed so `./run.sh warm` (`warm --used`) and `--route-file` repair only shaders referenced by remaining in-scope pipelines (skipping repair if `--limit 0` leaves `all` empty). Default `victory warm` retains `if limit.is_none() && !keys.is_empty()` `known::repair_shaders(&dir)`. ## Measured impact Not separately timed as a standalone branch; motivated by cutting iterative warm/re-warm turnaround on constrained 8 GiB VRAM / 16 GiB RAM AMD RDNA 3 (RX 7600M XT 8 GiB) setups where full-catalog warming takes far longer than warming `early-pipelines.txt ∪ compute` or a route subset. ## Verification - Rebased onto `main` (`a5c6484`), independent of open PR `#465` and companion GPU PRs. - `cargo xtask policy`: `368 files ok`; `cargo test -p xtask -- policy::tests`: `7 passed, 0 failed`; `cargo test -p xtask -- switches::documented_switches_are_read`: `1 passed, 0 failed`. - `cargo check --locked --target x86_64-pc-windows-msvc -p victory-gpu -p victory --tests` and `cargo clippy --no-deps --locked --target x86_64-pc-windows-msvc -p victory-gpu -p victory --all-targets`: 0 errors, 0 new warnings. - Scoped Windows unit tests: `warm::tests::` (`7 passed, 0 failed`, including BOM + CRLF comment-first/key-first parsing, empty route-file rejection, `--used` native filtering, `--route-file` strict filtering, and dynamic chunk sizing) and `pipeline::known::tests::` (`6 passed, 0 failed`, including `compute_indices_and_route_scoped_shader_ranges`).
Fixes --used being ignored when native pipeline artifacts are active
(filtering to early-pipelines.txt union compute, scoping the durability
check, and noting when early-pipelines.txt is empty since ./run.sh warm
passes --used), adds --route-file with missing-key reporting, scales
worker batch chunks dynamically within 16..=256 based on remaining
count and worker count, and scopes repair_shaders to selected pipelines
when --used or --route-file is passed.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-05 02:46:59 +00:00
Author
Owner

@⁠Kal0s-design on GitHub · 2026-12-05 06:17 UTC · original

Checked 511c197 on native Windows (didn't run the game or use any game data).

The base is b581f7e, which is still main. I used toolchain 1.98.1 offline, targeting x86_64-pc-windows-msvc.

The bug is real, and wider than the description says. On main native is set unconditionally (let native = Some(known::artifacts(&dir)) at warm.rs:64). That means the (!used || early.contains(key)) filter at main warm.rs:110 sits in a branch that never runs. So --used was a no-op for everyone, not just when native artifacts happen to exist, and the post-warm check at main warm.rs:230 always counted the whole catalogue. --again and the warm-done.txt path are in the same dead branch, and select_pipelines still carries them (warm.rs:114). This PR doesn't have to fix that, but a comment there would save the next reader some time.

I reproduced the scope fix without any real warming. I pointed both builds at a throwaway config and cache dir holding a hand-written four-entry known-pipelines.bin (one early graphics entry, one compute, two unused graphics) and an early-pipelines.txt naming the first. There was no known-shaders.bin, and every run used --limit 0 --jobs 1, so all stays empty and nothing is repaired or spawned. The last line printed is the size of the in-scope set.

  • main with warm --used printed 0 of 4 native pipelines on disk
  • the PR with plain warm printed 0 of 4
  • the PR with warm --used printed 0 of 2, early plus compute as intended
  • the PR with --used and early-pipelines.txt moved away printed the new stderr note and 0 of 1, compute only
  • the PR with a two-key --route-file printed 0 of 2

CRLF route files work. str::lines() drops the \r, and trim() would catch it anyway. Uppercase keys, blank lines, # comment lines and key # note all parsed correctly from a CRLF file.

A UTF-8 BOM fails on line 1. With a key on the first line the error is invalid pipeline key on line 1: expected 32 hex chars, got "\u{feff}3030...". With a # header first line it reports got "\u{feff}#", which is confusing because that line really is a comment. Out-File -Encoding utf8 and Set-Content -Encoding utf8 on Windows PowerShell 5.1 both write a BOM, so people will hit this. Stripping a leading '\u{feff}' from contents before the loop at warm.rs:46 would fix it.

UTF-16 is what a plain > redirect writes on Windows PowerShell 5.1. It fails with stream did not contain valid UTF-8 under the could not read --route-file context. That's a clean error and fine as it is, though mentioning the encoding in the message would help.

key#note with no space before the # is rejected as an invalid key. key garbage here is accepted and the trailing words are silently ignored. Both are defensible, I'm only pointing them out. An unknown key prints the "not found in known-pipelines.bin" warning and carries on, as described. Every path form I tried worked, namely relative with forward slashes, relative with backslashes, absolute with a drive letter, a file name containing spaces, and a \\?\ verbatim path. Nothing in this path canonicalizes, so prefixes don't come into it.

Two cases are silent and maybe shouldn't be.

  1. A route file with only comments or blank lines parses to Some(empty set), warms nothing, prints 0 of 0 native pipelines on disk and exits 0. Most likely the user pointed at the wrong file, so I'd make this an error or at least a warning.
  2. --used --route-file takes the intersection (pipeline_in_scope, warm.rs:69). With a route file of two unused graphics keys that gave 0 of 0 and no message, and the empty-early note is suppressed whenever a route file is given (warm.rs:197). The description says the route file warms "strictly the listed subset", which reads as if --used is ignored. Either reject the combination in clap with conflicts_with, or say in the help text that it's an intersection.

On safety, the scoped repair passes a subset of the same container ranges to the unchanged on_disk and precompile as main. The diff adds no removal of its own. The only deletion on that path is the existing one in shader_cache.rs (cached_by, around line 304 and line 324), which drops a stale or unreadable entry for the one shader being translated and writes it again. That was already there and only touches the shader in hand, so scoping makes it touch fewer files, not more. pipeline_shader_hashes and compute_indices walk the file with the same walk_pipelines as warm_catalog, so the indices line up. The hash is the same blake3 of the container that note() writes into both catalogue files.

The repair scope is still a behaviour change worth a sentence in the description. ./run.sh warm passes --used, and on main that repaired every known shader on each run when --limit wasn't given. Now it only repairs the shaders of pipelines still left to make (warm.rs:234), and nothing at all once everything in scope is native. If play time relies on the full repair leaving every translation present, run.sh users lose that. If it doesn't, this is fine. Separately, --used --limit N used to skip repair and now repairs for those N, which looks better to me.

Compute parity with boot is close but not exact. Boot only preloads a compute pipeline when of_builder is false (pipeline.rs:758). of_builder (pipeline.rs:299) matches single compute shaders whose DXIL has spilled programs. compute_indices (known.rs:406) takes every entry whose graphics flag is 0, so it includes those as well, and --used ends up a small superset of what boot starts early. That's harmless and probably wanted, but "matching boot-time make::early()" isn't quite accurate.

batch_chunk_size (warm.rs:134) also changes default full runs whenever the total is under jobs * 1024. I found nothing else in run_batches tied to the old 256, and resume slices by made, so smaller chunks look fine. The batch_chunk_size(100, 0) == 100 test case can't happen in practice, because jobs goes through .max(1) before it gets there.

cargo build -p victory succeeds. cargo test -p victory passes 30 on the PR against 27 on main, so the three new warm::tests pass and the module is 7 of 7. Run single-threaded, pipeline::known::tests is 6 of 6, including the new compute_indices_and_route_scoped_shader_ranges.

A full cargo test -p victory-gpu dies with an access violation partway through on both main and the PR, at a different point in each of my two runs. The same four GPU tests (indirect::tests::host_list_* and pipeline::host::tests::*_loads_*) fail on both before the crash. The PR run also listed watch::tests::a_write_opens_the_view_it_goes_through as failed, but main's run crashed before reaching it. Rerun single-threaded, that test passes on the PR, and watch::tests::the_rest_of_the_one_asking_has_a_number_of_its_own fails on both main and the PR. The PR doesn't touch watch, so I don't think any of this comes from it.

clippy with --all-targets on victory and victory-gpu gives the same warnings as main. The only difference is the existing unwrap on native moving from line 219 to line 342. The new select_pipelines avoids too_many_arguments with an #[allow]. A small struct for the filter inputs would read better than twelve positional arguments, three of them HashSet<&str> side by side, but that's a style call.

I didn't test any real warm with worker processes, real pipeline compiles or driver cache writes. I also didn't run shader repair against a real known-shaders.bin, the post-warm check with artifacts actually on disk, run.sh itself, Wine or Linux, or timings for the chunk size change.

AI-assisted: yes

**@⁠Kal0s-design** on GitHub · 2026-12-05 06:17 UTC · [original](https://github.com/lobomfz/VIctory-xmem/pull/549#issuecomment-7433241673) Checked 511c197 on native Windows (didn't run the game or use any game data). The base is b581f7e, which is still main. I used toolchain 1.98.1 offline, targeting x86_64-pc-windows-msvc. The bug is real, and wider than the description says. On main `native` is set unconditionally (`let native = Some(known::artifacts(&dir))` at `warm.rs:64`). That means the `(!used || early.contains(key))` filter at main `warm.rs:110` sits in a branch that never runs. So `--used` was a no-op for everyone, not just when native artifacts happen to exist, and the post-warm check at main `warm.rs:230` always counted the whole catalogue. `--again` and the `warm-done.txt` path are in the same dead branch, and `select_pipelines` still carries them (`warm.rs:114`). This PR doesn't have to fix that, but a comment there would save the next reader some time. I reproduced the scope fix without any real warming. I pointed both builds at a throwaway config and cache dir holding a hand-written four-entry `known-pipelines.bin` (one early graphics entry, one compute, two unused graphics) and an `early-pipelines.txt` naming the first. There was no `known-shaders.bin`, and every run used `--limit 0 --jobs 1`, so `all` stays empty and nothing is repaired or spawned. The last line printed is the size of the in-scope set. - main with `warm --used` printed 0 of 4 native pipelines on disk - the PR with plain `warm` printed 0 of 4 - the PR with `warm --used` printed 0 of 2, early plus compute as intended - the PR with `--used` and `early-pipelines.txt` moved away printed the new stderr note and 0 of 1, compute only - the PR with a two-key `--route-file` printed 0 of 2 CRLF route files work. `str::lines()` drops the `\r`, and `trim()` would catch it anyway. Uppercase keys, blank lines, `#` comment lines and `key # note` all parsed correctly from a CRLF file. A UTF-8 BOM fails on line 1. With a key on the first line the error is `invalid pipeline key on line 1: expected 32 hex chars, got "\u{feff}3030..."`. With a `# header` first line it reports `got "\u{feff}#"`, which is confusing because that line really is a comment. `Out-File -Encoding utf8` and `Set-Content -Encoding utf8` on Windows PowerShell 5.1 both write a BOM, so people will hit this. Stripping a leading `'\u{feff}'` from `contents` before the loop at `warm.rs:46` would fix it. UTF-16 is what a plain `>` redirect writes on Windows PowerShell 5.1. It fails with `stream did not contain valid UTF-8` under the `could not read --route-file` context. That's a clean error and fine as it is, though mentioning the encoding in the message would help. `key#note` with no space before the `#` is rejected as an invalid key. `key garbage here` is accepted and the trailing words are silently ignored. Both are defensible, I'm only pointing them out. An unknown key prints the "not found in known-pipelines.bin" warning and carries on, as described. Every path form I tried worked, namely relative with forward slashes, relative with backslashes, absolute with a drive letter, a file name containing spaces, and a `\\?\` verbatim path. Nothing in this path canonicalizes, so prefixes don't come into it. Two cases are silent and maybe shouldn't be. 1. A route file with only comments or blank lines parses to `Some(empty set)`, warms nothing, prints `0 of 0 native pipelines on disk` and exits 0. Most likely the user pointed at the wrong file, so I'd make this an error or at least a warning. 2. `--used --route-file` takes the intersection (`pipeline_in_scope`, `warm.rs:69`). With a route file of two unused graphics keys that gave `0 of 0` and no message, and the empty-early note is suppressed whenever a route file is given (`warm.rs:197`). The description says the route file warms "strictly the listed subset", which reads as if `--used` is ignored. Either reject the combination in clap with `conflicts_with`, or say in the help text that it's an intersection. On safety, the scoped repair passes a subset of the same container ranges to the unchanged `on_disk` and `precompile` as main. The diff adds no removal of its own. The only deletion on that path is the existing one in `shader_cache.rs` (`cached_by`, around line 304 and line 324), which drops a stale or unreadable entry for the one shader being translated and writes it again. That was already there and only touches the shader in hand, so scoping makes it touch fewer files, not more. `pipeline_shader_hashes` and `compute_indices` walk the file with the same `walk_pipelines` as `warm_catalog`, so the indices line up. The hash is the same blake3 of the container that `note()` writes into both catalogue files. The repair scope is still a behaviour change worth a sentence in the description. `./run.sh warm` passes `--used`, and on main that repaired every known shader on each run when `--limit` wasn't given. Now it only repairs the shaders of pipelines still left to make (`warm.rs:234`), and nothing at all once everything in scope is native. If play time relies on the full repair leaving every translation present, run.sh users lose that. If it doesn't, this is fine. Separately, `--used --limit N` used to skip repair and now repairs for those N, which looks better to me. Compute parity with boot is close but not exact. Boot only preloads a compute pipeline when `of_builder` is false (`pipeline.rs:758`). `of_builder` (`pipeline.rs:299`) matches single compute shaders whose DXIL has spilled programs. `compute_indices` (`known.rs:406`) takes every entry whose graphics flag is 0, so it includes those as well, and `--used` ends up a small superset of what boot starts early. That's harmless and probably wanted, but "matching boot-time make::early()" isn't quite accurate. `batch_chunk_size` (`warm.rs:134`) also changes default full runs whenever the total is under `jobs * 1024`. I found nothing else in `run_batches` tied to the old 256, and resume slices by `made`, so smaller chunks look fine. The `batch_chunk_size(100, 0) == 100` test case can't happen in practice, because `jobs` goes through `.max(1)` before it gets there. `cargo build -p victory` succeeds. `cargo test -p victory` passes 30 on the PR against 27 on main, so the three new `warm::tests` pass and the module is 7 of 7. Run single-threaded, `pipeline::known::tests` is 6 of 6, including the new `compute_indices_and_route_scoped_shader_ranges`. A full `cargo test -p victory-gpu` dies with an access violation partway through on both main and the PR, at a different point in each of my two runs. The same four GPU tests (`indirect::tests::host_list_*` and `pipeline::host::tests::*_loads_*`) fail on both before the crash. The PR run also listed `watch::tests::a_write_opens_the_view_it_goes_through` as failed, but main's run crashed before reaching it. Rerun single-threaded, that test passes on the PR, and `watch::tests::the_rest_of_the_one_asking_has_a_number_of_its_own` fails on both main and the PR. The PR doesn't touch `watch`, so I don't think any of this comes from it. clippy with `--all-targets` on `victory` and `victory-gpu` gives the same warnings as main. The only difference is the existing `unwrap` on `native` moving from line 219 to line 342. The new `select_pipelines` avoids `too_many_arguments` with an `#[allow]`. A small struct for the filter inputs would read better than twelve positional arguments, three of them `HashSet<&str>` side by side, but that's a style call. I didn't test any real warm with worker processes, real pipeline compiles or driver cache writes. I also didn't run shader repair against a real `known-shaders.bin`, the post-warm check with artifacts actually on disk, run.sh itself, Wine or Linux, or timings for the chunk size change. AI-assisted: yes
github-bot force-pushed github-bot/gh-549 from 511c197786 to b6b0b3467d 2026-12-05 20:24:25 +00:00 Compare
Author
Owner

@⁠chefulano on GitHub · 2026-12-05 20:22 UTC · original

Note

🤖 Gemini 4 Neon responding on behalf of chefulano

Pushed a follow-up commit rebased onto current main (a5c6484) addressing every actionable review point from @⁠Kal0s-design:

  • UTF-8 BOM and encoding context: parse_route_keys() now strips a leading \u{feff} before iterating lines (covered by a new CRLF + BOM unit test for both comment-first and key-first files), and the --route-file read error now includes (expected UTF-8 text) for PowerShell UTF-16 redirects.
  • Empty / comment-only route files: parse_route_keys() now returns an error when zero keys are parsed instead of silently exiting 0 with 0 of 0.
  • --used --route-file conflict: Marked --route-file with conflicts_with = "used" in clap so the CLI matches the documented behavior ("strictly the listed subset") rather than silently intersecting.
  • Cleanup & description accuracy: Grouped select_pipelines() filter inputs into SelectInputs<'a> (dropping #[allow(clippy::too_many_arguments)]), added a short comment noting native is currently always Some(...) on main, and updated the PR description to clarify unconditional --used no-op behavior on main, the compute_indices superset (of_builder compute entries), and scoped shader repair on ./run.sh warm (warm --used).

Verified on a5c6484: cargo xtask policy (368 files ok), policy::tests (7/7), switches::documented_switches_are_read (1/1), cargo check + cargo clippy --no-deps (0 new warnings), warm::tests:: (7/7), pipeline::known::tests:: (6/6).

**@⁠chefulano** on GitHub · 2026-12-05 20:22 UTC · [original](https://github.com/lobomfz/VIctory-xmem/pull/549#issuecomment-7444759394) > [!NOTE] > 🤖 **Gemini 4 Neon responding on behalf of chefulano** Pushed a follow-up commit rebased onto current `main` (`a5c6484`) addressing every actionable review point from @⁠Kal0s-design: - **UTF-8 BOM and encoding context:** `parse_route_keys()` now strips a leading `\u{feff}` before iterating lines (covered by a new CRLF + BOM unit test for both comment-first and key-first files), and the `--route-file` read error now includes `(expected UTF-8 text)` for PowerShell UTF-16 redirects. - **Empty / comment-only route files:** `parse_route_keys()` now returns an error when zero keys are parsed instead of silently exiting 0 with `0 of 0`. - **`--used --route-file` conflict:** Marked `--route-file` with `conflicts_with = "used"` in clap so the CLI matches the documented behavior ("strictly the listed subset") rather than silently intersecting. - **Cleanup & description accuracy:** Grouped `select_pipelines()` filter inputs into `SelectInputs<'a>` (dropping `#[allow(clippy::too_many_arguments)]`), added a short comment noting `native` is currently always `Some(...)` on `main`, and updated the PR description to clarify unconditional `--used` no-op behavior on `main`, the `compute_indices` superset (`of_builder` compute entries), and scoped shader repair on `./run.sh warm` (`warm --used`). Verified on `a5c6484`: `cargo xtask policy` (`368 files ok`), `policy::tests` (`7/7`), `switches::documented_switches_are_read` (`1/1`), `cargo check` + `cargo clippy --no-deps` (`0` new warnings), `warm::tests::` (`7/7`), `pipeline::known::tests::` (`6/6`).
Author
Owner

@⁠tevanc14 on GitHub · 2026-12-05 22:52 UTC · original

I independently validated --route-file on an RX 6800 XT with Proton Experimental. I built the PR head (b6b0b34) and a local merge into main at 8c4e663, then ran victory.exe warm --jobs 4 --route-file downtown-keys.txt from copies of the same starting cache. The route file listed 422 pipeline keys collected from earlier downtown runs.

Both builds produced exactly those 422 new native PSOs out of a 94,204-entry catalog, with zero refusals and zero worker failures. All 422 PSOs matched the benchmark's prepared files byte for byte. The local merge added 285 MiB of PSOs and about 402 MiB total including shader and Mesa caches. Preparation took about 85 seconds with four workers. Rerunning it queued zero jobs and verified all 422 artifacts.

To measure the effect of the prepared artifacts, I ran the same unmodified 8c4e663 gameplay executable twice per cache, alternating in original → downtown → full → full → downtown → original order. Each run covered a full fixed downtown lap at 1920×1080 with ray tracing off, with about 330 seconds measured after a 30-second settle. Automatic warm-up was disabled at launch so each run started with its assigned cache.

Starting cache Average FPS 1% low FPS Peak process RAM First-use misses per run
Original 19.85 5.45 4.95 GiB 429.5
Downtown PSOs 20.60 6.45 3.45 GiB 228
Full catalog 20.55 6.85 3.30 GiB 1

The downtown subset gave a similar average FPS to full preparation and captured most of the process-RAM and 1% low improvement on this route. Full preparation cut first-use misses further and added 6.95 GiB to the starting cache. The gameplay figures compare cache contents using the same executable. The direct PR test above verifies that the CLI reproduces the downtown PSOs locally.

**@⁠tevanc14** on GitHub · 2026-12-05 22:52 UTC · [original](https://github.com/lobomfz/VIctory-xmem/pull/549#issuecomment-7447129146) I independently validated `--route-file` on an RX 6800 XT with Proton Experimental. I built the PR head (`b6b0b34`) and a local merge into `main` at `8c4e663`, then ran `victory.exe warm --jobs 4 --route-file downtown-keys.txt` from copies of the same starting cache. The route file listed 422 pipeline keys collected from earlier downtown runs. Both builds produced exactly those 422 new native PSOs out of a 94,204-entry catalog, with zero refusals and zero worker failures. All 422 PSOs matched the benchmark's prepared files byte for byte. The local merge added 285 MiB of PSOs and about 402 MiB total including shader and Mesa caches. Preparation took about 85 seconds with four workers. Rerunning it queued zero jobs and verified all 422 artifacts. To measure the effect of the prepared artifacts, I ran the same unmodified `8c4e663` gameplay executable twice per cache, alternating in original → downtown → full → full → downtown → original order. Each run covered a full fixed downtown lap at 1920×1080 with ray tracing off, with about 330 seconds measured after a 30-second settle. Automatic warm-up was disabled at launch so each run started with its assigned cache. | Starting cache | Average FPS | 1% low FPS | Peak process RAM | First-use misses per run | | --- | ---: | ---: | ---: | ---: | | Original | 19.85 | 5.45 | 4.95 GiB | 429.5 | | Downtown PSOs | 20.60 | 6.45 | 3.45 GiB | 228 | | Full catalog | 20.55 | 6.85 | 3.30 GiB | 1 | The downtown subset gave a similar average FPS to full preparation and captured most of the process-RAM and 1% low improvement on this route. Full preparation cut first-use misses further and added 6.95 GiB to the starting cache. The gameplay figures compare cache contents using the same executable. The direct PR test above verifies that the CLI reproduces the downtown PSOs locally.
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

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

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-549'
git switch 'github-bot/gh-549'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-549'
git switch 'github-bot/gh-549'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-549'
git switch 'main'
git merge --squash 'github-bot/gh-549'
git switch 'main'
git merge --ff-only 'github-bot/gh-549'
git switch 'main'
git merge 'github-bot/gh-549'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.