15 refused wave64 compute programs run on 32-lane cards when widened by digest (allowlist patch offered). 205 left! #311

Open
opened 2026-12-01 12:11:21 +00:00 by NewbieSmash · 1 comment
NewbieSmash commented 2026-12-01 12:11:21 +00:00 (Migrated from github.com)
Contributor

Imported from readmet3xt-lab/foxhound. Originally posted by NewbieSmash on 2026-12-01T12:11:21Z.


<html>

Foxhound version:
v0.8.2 (2602512) built from source, plus one local commit (ca7ea3d): a 15-digest allowlist in crates/victory-shader/src/emit/mod.rs. The plain diff against v0.8.2 is attached as text (about 40 lines, one file). The comments name programs by role and hash only, as in 32a688a. Before opening any PR I'll rebase it on main and run cargo xtask policy.

GPU / CPU / RAM / Windows:
RTX 3060 Laptop GPU 6 GB (about 80 W), driver 621.24 / Ryzen 9 5900HS (8 cores, 16 threads) / 24 GB / Windows 11 build 26300

Launcher settings (resolution, DLSS, Frame Generation, VRAM limit):
Started with scripts\play-foxhound.ps1 -SeriesS -Dlss performance -Fps 30, plus VICTORY_FSR_FRAMEGEN=1 (DLSS Frame Generation is not available on RTX 30), VICTORY_FG_RECT=auto, VICTORY_FG_BARS_CLEAR=1, VICTORY_DISPLAY=fullscreen. VRAM limit: automatic (Windows' budget 5,226 MB). All other switches as the script ships them. Pipelines warmed with -PrepareOnly before play.

What happens, and when:
On a 32-lane host, v0.8.2 refuses 17 console wave64 compute programs with "no wave32 lowering for this wave64 program", so their dispatches are dropped every frame. With wave-wide branches (widen), 15 of them translate. The patch adds just those 15 container digests to the scene_kernel allowlist, matched for any group size as VICTORY_WAVE_WIDE=1 would, the same approach as 10c5f8b. The 15, by role and the 16-digit hash the run log uses:

  • decal trail programs (footprints, tyre and liquid trails), 9: ffa3a7645374474b, 98fef92f7a6d825e, aeac9d880daff3ba, a09f0c1fae2b5ca3, a4cb3ce527ad8569, 3b02415f67c6b0d8, 1d434307d981352a, f38f83439083b9ef, 22338086ea4c5364
  • GPU particle emitters from models, 3: 18d957e62926ed3e, 9fe711566bec0d0a, a40ae27594631121
  • hair screen-space shadow masks, 2: 2889c21328c69e58, 888af37a584acf98
  • light transmission through water, 1: 6871d6e4b3ac9a10

Still refused even with wave-wide branches: the two decal triangle-collection programs, 6832a9da15c2e584 and 6b82bc7d22016cb5.

Why not VICTORY_WAVE_WIDE=1: globally it also changes 35 programs that translate today, including the two particle light-atlas programs that the code comment ties to the lost-card runs 121-124. The allowlist touches only the 15.

How it was checked (victory translate --list over the whole title, VICTORY_HOST_WAVE=32, VICTORY_EARLY_DEPTH=1, scratch cache):

  • 15 programs newly emitted. Their DXIL is identical to what VICTORY_WAVE_WIDE=1 emits for them.
  • 0 of the 25,672 programs that already translated changed (compared by emitted shader hash).
  • All 15 pass the Windows SDK DXIL validator (translate --validate, dxil.dll 10.0.26100).
  • Preload: 205 programs don't translate instead of 220. After the warm, 7 pipelines have no host pipeline instead of 22.

In play (about 15 min each on the same route, compared with plain v0.8.2): just as fast, and no GPU timeouts, device removals or driver resets. The first run with the patch used a fresh cache dir with no host pipeline library yet, so ~2,300 pipelines were made during play and some faces were missing for a while, as the README describes for first runs. On the next run (library in place, ~2,500 started early, none made during play) no faces were missing. One character's body was invisible once, and I can't tie that to these programs. I haven't confirmed by eye yet that the restored effects show up (decal trails, hair shadows, light through water).

Log (summarised from the newest foxhound-*.log of each run; game folder would be <game>):

  | plain v0.8.2 | v0.8.2 + allowlist -- | -- | -- rendered fps, median (p10 / p90) | 11.6 (9.7 / 15.4) | 11.8 (9.7 / 15.1) shown fps, median (from FSR present counts) | 23.2 | 23.1 ms a frame: preparing / copies / copy back | 48.0 / 21.3 / 16.4 | 48.7 / 21.5 / 14.4 ms a frame on the GPU; card busy | 15.5; 91 % | 14.7; 91 % dropped draws a frame, median | 143 | 136 present stalls over 100 ms | 3 in 964 s | 3 in 885 s card memory in use, median (budget 5,226 MB) | 5,303 MB | 5,307 MB GPU timeouts / device removed | none | none

Only "does not translate" warning with the patch: 6b82bc7d22016cb5 (still refused, as above). The only ERROR in both runs: Streamline's "presentCommon() was not observed" at start.

Happy to open a PR if you want it, or to test anything else on this 6 GB card.

</html>
<!-- greyfinch-sync:readmet3xt-lab/foxhound:issue:6720016901 --> Imported from [readmet3xt-lab/foxhound](https://github.com/readmet3xt-lab/foxhound/issues/311). Originally posted by [NewbieSmash](https://github.com/NewbieSmash) on 2026-12-01T12:11:21Z. --- <html> <body> <!--StartFragment--><p dir="ltr"></p><p dir="ltr"><strong>Foxhound version:</strong><br>v0.8.2 (2602512) built from source, plus one local commit (ca7ea3d): a 15-digest allowlist in <code dir="ltr">crates/victory-shader/src/emit/mod.rs</code>. The plain diff against v0.8.2 is attached as text (about 40 lines, one file). The comments name programs by role and hash only, as in 32a688a. Before opening any PR I'll rebase it on main and run <code dir="ltr">cargo xtask policy</code>.</p><p dir="ltr"><strong>GPU / CPU / RAM / Windows:</strong><br>RTX 3060 Laptop GPU 6 GB (about 80 W), driver 621.24 / Ryzen 9 5900HS (8 cores, 16 threads) / 24 GB / Windows 11 build 26300</p><p dir="ltr"><strong>Launcher settings (resolution, DLSS, Frame Generation, VRAM limit):</strong><br>Started with <code dir="ltr">scripts\play-foxhound.ps1 -SeriesS -Dlss performance -Fps 30</code>, plus <code dir="ltr">VICTORY_FSR_FRAMEGEN=1</code> (DLSS Frame Generation is not available on RTX 30), <code dir="ltr">VICTORY_FG_RECT=auto</code>, <code dir="ltr">VICTORY_FG_BARS_CLEAR=1</code>, <code dir="ltr">VICTORY_DISPLAY=fullscreen</code>. VRAM limit: automatic (Windows' budget 5,226 MB). All other switches as the script ships them. Pipelines warmed with <code dir="ltr">-PrepareOnly</code> before play.</p><p dir="ltr"><strong>What happens, and when:</strong><br>On a 32-lane host, v0.8.2 refuses 17 console wave64 compute programs with "no wave32 lowering for this wave64 program", so their dispatches are dropped every frame. With wave-wide branches (<code dir="ltr">widen</code>), 15 of them translate. The patch adds just those 15 container digests to the <code dir="ltr">scene_kernel</code> allowlist, matched for any group size as <code dir="ltr">VICTORY_WAVE_WIDE=1</code> would, the same approach as 10c5f8b. The 15, by role and the 16-digit hash the run log uses:</p><ul dir="ltr"><li>decal trail programs (footprints, tyre and liquid trails), 9: ffa3a7645374474b, 98fef92f7a6d825e, aeac9d880daff3ba, a09f0c1fae2b5ca3, a4cb3ce527ad8569, 3b02415f67c6b0d8, 1d434307d981352a, f38f83439083b9ef, 22338086ea4c5364</li><li>GPU particle emitters from models, 3: 18d957e62926ed3e, 9fe711566bec0d0a, a40ae27594631121</li><li>hair screen-space shadow masks, 2: 2889c21328c69e58, 888af37a584acf98</li><li>light transmission through water, 1: 6871d6e4b3ac9a10</li></ul><p dir="ltr">Still refused even with wave-wide branches: the two decal triangle-collection programs, 6832a9da15c2e584 and 6b82bc7d22016cb5.</p><p dir="ltr">Why not <code dir="ltr">VICTORY_WAVE_WIDE=1</code>: globally it also changes 35 programs that translate today, including the two particle light-atlas programs that the code comment ties to the lost-card runs 121-124. The allowlist touches only the 15.</p><p dir="ltr">How it was checked (<code dir="ltr">victory translate --list</code> over the whole title, <code dir="ltr">VICTORY_HOST_WAVE=32</code>, <code dir="ltr">VICTORY_EARLY_DEPTH=1</code>, scratch cache):</p><ul dir="ltr"><li>15 programs newly emitted. Their DXIL is identical to what <code dir="ltr">VICTORY_WAVE_WIDE=1</code> emits for them.</li><li>0 of the 25,672 programs that already translated changed (compared by emitted shader hash).</li><li>All 15 pass the Windows SDK DXIL validator (<code dir="ltr">translate --validate</code>, dxil.dll 10.0.26100).</li><li>Preload: 205 programs don't translate instead of 220. After the warm, 7 pipelines have no host pipeline instead of 22.</li></ul><p dir="ltr">In play (about 15 min each on the same route, compared with plain v0.8.2): just as fast, and no GPU timeouts, device removals or driver resets. The first run with the patch used a fresh cache dir with no host pipeline library yet, so ~2,300 pipelines were made during play and some faces were missing for a while, as the README describes for first runs. On the next run (library in place, ~2,500 started early, none made during play) no faces were missing. One character's body was invisible once, and I can't tie that to these programs. I haven't confirmed by eye yet that the restored effects show up (decal trails, hair shadows, light through water).</p><p dir="ltr"><strong>Log</strong> (summarised from the newest <code dir="ltr">foxhound-*.log</code> of each run; game folder would be <code dir="ltr">&lt;game&gt;</code>):</p><div dir="ltr"><div>   | plain v0.8.2 | v0.8.2 + allowlist -- | -- | -- rendered fps, median (p10 / p90) | 11.6 (9.7 / 15.4) | 11.8 (9.7 / 15.1) shown fps, median (from FSR present counts) | 23.2 | 23.1 ms a frame: preparing / copies / copy back | 48.0 / 21.3 / 16.4 | 48.7 / 21.5 / 14.4 ms a frame on the GPU; card busy | 15.5; 91 % | 14.7; 91 % dropped draws a frame, median | 143 | 136 present stalls over 100 ms | 3 in 964 s | 3 in 885 s card memory in use, median (budget 5,226 MB) | 5,303 MB | 5,307 MB GPU timeouts / device removed | none | none </div></div><p dir="ltr">Only "does not translate" warning with the patch: 6b82bc7d22016cb5 (still refused, as above). The only ERROR in both runs: Streamline's "presentCommon() was not observed" at start.</p><p dir="ltr">Happy to open a PR if you want it, or to test anything else on this 6 GB card.</p><!--EndFragment--> </body> </html>
NewbieSmash commented 2026-12-01 13:56:41 +00:00 (Migrated from github.com)
Author
Contributor

Imported from readmet3xt-lab/foxhound. Originally posted by NewbieSmash on 2026-12-01T13:56:41Z.


Branch with the patch (one commit on v0.8.2): https://github.com/NewbieSmash/foxhound/tree/g14-wave64

<!-- greyfinch-sync:readmet3xt-lab/foxhound:comment:7313439577 --> Imported from [readmet3xt-lab/foxhound](https://github.com/readmet3xt-lab/foxhound/issues/311#issuecomment-7313439577). Originally posted by [NewbieSmash](https://github.com/NewbieSmash) on 2026-12-01T13:56:41Z. --- Branch with the patch (one commit on v0.8.2): https://github.com/NewbieSmash/foxhound/tree/g14-wave64
Sign in to join this conversation.
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
readmet3xt-lab/foxhound#311
No description provided.