NVIDIA (32-lane waves): four refused compute programs run, the whole structure builder has pipelines, xmem maps page runs as one view #823
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/fxceless--victory-fork!823
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-823"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@Felix2180 on GitHub · 2026-11-25 09:11 UTC · original
Felix2180:pr-nvidia-wave32→main· +264 −15 · 10 files · 3 commits · closed without mergingThree changes from testing this fork on an RTX 5070 12 GB (Blackwell, 32-lane waves, driver 32.0.16.1088), i7-14700KF, 32 GB, Windows 11. All measured in the first gameplay scene; diagnostics build,
VICTORY_RELAY=2,VICTORY_CARD_BUFFERS_MIN_MB=1,VICTORY_CARD_BUFFERS_MB=1024,VICTORY_TEXTURE_NO_WAIT=1.1. Four refused 64-lane compute programs now run on 32-lane hosts
On NVIDIA, seven of the title's compute programs stay in their 64-lane form, which the driver refuses (
E_INVALIDARG), so their dispatches are dropped every frame. Translated as for a 32-lane host with the wave-wide form allowed (VICTORY_HOST_MAX_WAVE=32 VICTORY_WAVE_WIDE=1, offline), four come out with 32-lane waves:5dc3b25986622949water_shading:CS_TransmissionVolumetrics_Tiled6f225b641c5b0708water_shading:CS_TransmissionVolumetrics_Tiled_LocalLights369cbe906ea72764GpuParticleUpdate:CS_Visibility2cc4c197ee29e291sr_tracing:CS_Tiling_Generate_OpaqueThe wave-wide form stays off globally (runs 121-124 lost the card with it). Instead
victory_shader::emit::with_wave_wideallows it for one translation, and the shader cache allows it for the containers inVICTORY_WAVE_WIDE_ONLY(default: those four;nonefor none).Visible effect: a band of blocky garbage across the lower third of the screen (floor, reflective surfaces) in the prison window shot was present in earlier runs and gone in 3 of 3 captured frames of the same shot after the change. That fits the reflection pass tracing with a stale tile list while its tiling dispatch was dropped. A 15-minute run in the world: no device loss.
Still refused (they need the wave-wide form in groups of several console waves):
2da4beb386509b77(alpha transmission prefilter),02384a60fda6f2d0and6b82bc7d22016cb5(vfx triangle clip).2. The whole structure builder has host pipelines
Three of the 52 builder programs did not translate for 32-lane waves: a first-lane read where not every lane runs. Their scans read a sum of scalars, the same in every lane of the console wave, which is where
VICTORY_FIRSTLANE_OWN=1is exact.with_firstlane_ownallows it per translation, and the cache allows it forVICTORY_FIRSTLANE_OWN_ONLY. The default list holds the three programs both by the hashes the title passes (39321a95223001ed,77360df21e12ea43,9fc111d3be79364f) and by the hashesvictory translatefinds in the DLL.With
VICTORY_BVH_BUILDER=1the log now says the ray-tracing structure builder runs: all of its programs have host pipelines pipelines=53. The title then dies within ~9 s, with and withoutVICTORY_BVH_QUARANTINE=1. Registers in the handled exceptions just before hold half-float bounding-box patterns (0x7c00fc00fc00), and the title follows a null pointer (read 0x28). This is the run-98 picture: some stage still stores outside its structure. No memory-by-address faults were logged. The builder stays off by default; its "stays off" warning now names the pipelines that have no host pipeline.Both lists go into the cache key next to the translator's fingerprint, and the offline warm-up translates with them as runs do.
3. xmem: a page-mapping copy maps runs of pages as one view
map_aliasmapped page by page (VirtualFree+MapViewOfFile3+VirtualAllocper 64 KiB) under the remapping lock that in-place texture reads wait on. While the world streams in, that wait was most of the frame line's "textures" (up to ~2 s a frame). Runs of consecutive slices of one section are now one view, after joining the per-page placeholdersunmapleaves (MEM_COALESCE_PLACEHOLDERS), and page by page when that is refused or the ranges overlap. New test:a_page_mapping_copy_maps_a_run_as_one_view.Also
scripts/play-nvidia.ps1: the switches above for a 12 GB NVIDIA card.main(-D warnings, both configurations).Checks
cargo clippy --workspace --all-targets [--all-features] --locked -- -D warnings: clean.cargo test --workspace --lockedon the RTX 5070: 541 passed, 0 failed, 10 ignored.🤖 Generated with Claude Code
@iGoldenNinja on GitHub · 2026-11-25 09:34 UTC · original · edited 2026-11-25 09:52 UTC
Independent RTX 5080 check on
aaf658a40f3e512550165e489a0f0c411e3c9544, driver 617.14, Windows 11 Pro 25H2 (26200.9974). All seven matched compute programs emitted and validated offline withVICTORY_HOST_MAX_WAVE=32. The parent and PR both created 0/7 withVICTORY_WAVE_WIDE=0. The PR withVICTORY_WAVE_WIDE=1created 4/7, exactly the four hashes listed in the PR. The same three controls still returned the invalid-parameter error.The Series X title run used the default per-program allowlist and default relay, readback and builder settings. It logged successful creation of those same four and reached controllable prison. Distinct D3D12 pipeline refusals fell from eight to four versus the earlier parent replay. Blocky tiles below the courtyard window persisted in two stationary captures. The post-retreat shot showed some brighter divider and floor detail, and stepped character edges persisted.
One 90-second run per revision measured 3.56 FPS / 470.38 ms P99 on the parent and 2.97 FPS / 552.72 ms on the full PR. Startup shader-cache behavior differed and the PR had more draws. Neither run logged device removal. Pinned test and measurements
Same-executable follow-up on
aaf658awith identical cache seeds and page-mapping code. SettingVICTORY_WAVE_WIDE_ONLY=nonemade all four targeted pipelines returnE_INVALIDARGagain. Both 90-second routes reached controllable prison, with courtyard tiling and stepped character edges in both settings. The enabled setting had more lit detail on the divider and floor in the comparable post-retreat view. Enabled measured 2.97 FPS / 552.72 ms P99 and disabled measured 3.59 FPS / 517.43 ms P99. Each setting ran once, with enabled first, and draw counts differed. Same-build comparison@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
aaf658aintomain9376fd6in a throwaway tree (no conflict).cargo clippy --workspace --all-targets --locked -- -D warnings: clean, and the same with--all-features: clean.mainitself fails both on this machine (dead code invictory-gpu), so this PR is the one of those I tested that makes clippy pass.cargo test --workspace --locked: 541 passed, 0 failed, 10 ignored, two runs (mainalone: 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.
@SkillIssueXO on GitHub · 2026-11-25 11:38 UTC · original
I tested the selective wave translation from
a416e39on an RTX 5070 Ti, withf85101bplus the same local compute-group split in both builds. Series X at 1080p, builder off, async submit and copy-queue readback active, refetch on, andVICTORY_FILL_WAIT=1from startup in both runs. Two previously refused ordinary compute programs created and bound host pipelines in the prison scene.Across the same 149 presents at the window, the control averaged 5.05 FPS (185.3 ms median, 293.2 ms p95). The wave build averaged 4.83 FPS (206.7 ms median, 216.6 ms p95). The control had a roughly 952 ms outlier. This is one matched pair. In both endpoint captures the wave build showed block-shaped shadows on the left wall and bright blue patches on the lower right that were absent in the control. Both builds rendered the character and yard. I tested the shader changes separately from the xmem commit.
AI-assisted testing and analysis. Asset-free measurements only.
@VibeClauding on GitHub · 2026-11-25 12:10 UTC · original
An A/B that isolates the two water programs in the wave-wide list, on an RTX 3070 8 GB (driver 610.88), Series S, held view at the cell window.
Setup:
8dd30ab+ #220 #648 #670 #705 #346 #646 #834 + #294's first two commits; builder off;VICTORY_SHADER_OPT=0 VICTORY_PAGE_WRITES=1.5dc3b25986622949and6f225b641c5b0708(the two water volumetrics) are inVICTORY_WAVE_WIDE_ONLY.2cc4c197ee29e291and369cbe906ea72764are in it in both runs.Before the water programs go into the default list, it may be worth checking the transmission volumetrics' output in the wide form against the 64-lane form. That's the form WARP runs, if the offline path allows it there. It could be a whole-wave step that the wide form doesn't keep.
I can't tell from these runs whether the blue patches and blocks others saw come from the same two programs.
AI-assisted (Claude Code); my runs with my own copy; measurements only.
@Ortomanic on GitHub · 2026-11-25 15:39 UTC · original
Independent result for part 1 on an RTX 5080 under Linux (CachyOS, Wine 11.22, vkd3d-proton 3.1.r64, driver 620.73.04,
--console series-s): the same four programs run and the same three stay refused.I did not run this branch. I reached the same place with a different selection rule on
0b0074eplus our Linux patches: a 29-line change that addsVICTORY_WAVE_WIDE=last, which trieswidenonly for a one-wave wave64 compute program that every other form has failed on a 32-lane host. No hash list. Branch:Ortomanic/victory-forkfx/wave-wide-last(3282163), not opened as a PR since it overlaps this one and #695.In game, one run each, first room:
E_INVALIDARG)02384a602cc4c1972da4beb3369cbe905dc3b2596b82bc7d6f225b64VICTORY_WAVE_WIDE=last02384a602da4beb36b82bc7df133e35e, cascade shadows, two console waves)369cbe90,2cc4c197,5dc3b259and6f225b64each log a host pipeline and a first bind. That is your list of four, and the three left are your three.Offline, which may help if the default list is extended. Over the shader pack on a 32-lane host (25,985 containers, each validated with dxv and converted with dxil-spirv),
lastmoves 20 programs fromWaveSize(64)to 32 and makes 5 more translate; none is lost and no validation or conversion result changes. 27 programs need 64-lane waves before, 7 after. Beyond your four, the 16 that move are:GpuParticleEmit:18d957e6407eca66ae0deeaf5e3dd99e9fe7115657f1b81da40ae275shadowmaskhair:2889c213888af37avfx_proj_decal_trail:ffa3a764aeac9d88a4cb3ce598fef92fa09f0c1ff38f8343water_shading:CS_TransmissionVolumetrics_VolumePortals…:a10179aband
water_shading:CS_TransmissionVolumetrics6871d6e4and…Submerged926c46bastart translating. None of these 18 was bound in my run, so they are checked offline only. Still at 64 lanes:2da4beb3,3b02415f,1d434307,22338086,02384a60,6832a9da,6b82bc7d(groups of 128 to 1,024 threads).AI-assisted (Claude Code); built and run locally.
@tippythetaidum on GitHub · 2026-11-25 16:47 UTC · original
Tested on an RTX 5080 16 GB under Windows 11 (driver 621.14, Series X profile): part 1 works here too.
Build: diagnostics build of
main3973179+ #24 + #927, then the same with this PR's three commits on top. Default settings, including the defaultVICTORY_WAVE_WIDE_ONLY.Refused compute pipelines:
02384a60…,2cc4c197…,2da4beb3…,369cbe90…,5dc3b259…,6b82bc7d…,6f225b64….02384a60…,2da4beb3…,6b82bc7d…, as described above.Visible change: the floor of the common room after the corridor shows reflections (a wet look) that it doesn't have without the PR.
Stability: three 10-minute runs with the PR (one alone on the base, two with more PRs on top): no errors and no device loss.
Two notes:
AI-assisted (Claude Code, Claude Opus 5.5). Counts and descriptions only, nothing from the game attached.
@tippythetaidum on GitHub · 2026-11-25 19:49 UTC · original
What each of the four wide programs does to the picture and the frame rate, from runs on an RTX 5080 16 GB (driver 621.14, Windows 11, Ryzen 7 9800X3D, Series X profile).
Build: release build of
ca8829fwith this PR, #927, #834, #1007, #1031, #917 and others,VICTORY_LEVELS_ON_DEMAND=1,VICTORY_AMBIENT=0.6. 600-second runs through the prologue. The shader cache was warmed offline for eachVICTORY_WAVE_WIDE_ONLYvalue, so no run started cold.VICTORY_WAVE_WIDE_ONLYnone2cc4c197ee29e291(the screen-space reflection tiling)So the four cost about a quarter of the frame here, and on these numbers the reflection tiling isn't the expensive one.
Picture, compared shot by shot with console footage of the same scenes:
none: eyes, frames and floors are clean, but close characters lose their light and shadows and look flat, and hair sometimes turns grey.My reading is that the tiling program is right and needed, and that what it schedules is the problem. The passes behind it walk ray-tracing structures that the builder never built (it is off), so reflection rays land on whatever is in memory or miss to the sky. That fits the sky in eyes and glass. With
VICTORY_BVH_HOLD=1those walks are held back: the corridor floors lose their oily look, but most of the indirect light goes too (numbers in #1088). That run had no close-up clear enough to check the eyes. The structure builder in #994 looks like the real fix. I'm trying that stack next and will report.No errors and no device loss in any of these runs.
AI-assisted (Claude Code, Claude Opus 5.5). Descriptions and counts only, nothing from the game attached.
@Dathinel on GitHub · 2026-11-25 21:01 UTC · original · edited 2026-11-25 21:10 UTC
One reproducible cache-key collision in the selective translation path. I applied the three translator/cache files to our local Windows test tree and ran a fresh process for each environment, calling the actual
listedand shader-cachebuild()for the particle hash:noneAn unset variable selects the built-in list, while the empty list selects nothing. The cache key hashes zero value bytes in both cases. This can reuse the other configuration's translation in a shared cache. The documented
nonespelling already gives a distinct key and is suitable for an A/B today.A local one-byte presence marker inside the
Some(value)arm of the cache-key loop separated all four tested keys (including an explicit particle hash) while preserving all four selection results. The same loop coversVICTORY_FIRSTLANE_OWN_ONLY. This checks policy and key generation, not frame rate or game output.Separate hardware result on the exact PR head (
aaf658a, Windows, RTX 3050 Laptop 4 GB). The scalar condition join retry checks only the global switch. With global widening explicitly off, a selected synthetic Wave64 compute shader still failed at offset 0x20 (“a lane mask read as data”). The ordinary widening retry already honors the per-container override. Applying that same override in the scalar join retry created a Wave32 pipeline and produced 14/14 expected hardware readbacks; the unselected control still refused. This fixture checks lane 63 after seven different lane masks and two scalar comparison outcomes.Minimal change and synthetic regression against
aaf658aWith
VICTORY_WAVE_WIDE=0andVICTORY_WAVE_LOCAL=0, runcargo test -p victory-shader --lib wave64_scalar_join_reads -- --ignored --nocapture. The fixture invokes the same per-container override that the cache sets after its hash lookup.AI-assisted (Codex).
@wildheathen on GitHub · 2026-11-25 21:43 UTC · original
A data point for section 3, since fxceless's README (
d510ee4) says a similar change gave black or red faces in 3 launches of 3.Machine: RTX 5080 16 GB (driver 621.24), Ryzen 7 9800X3D, Windows 11, Series X profile.
What I ran: my own version of the same idea on
ca8829f, not this PR's head. Afterunmap,[to, to + len)is joined withMEM_COALESCE_PLACEHOLDERS. Each run of consecutive source pages within one pool view is then mapped as one view, falling back page by page if that is refused. It ran together with a range-based remap lock like #95, #868, and placed host textures like #903.Counts: 657,352 pages were mapped with 347,266 views over 400,000
map_aliascalls in one 480 s run. That is about 1.9 pages a view, close to the README's 1.8–4.2.Picture: captured frames from four launches with it on (cinematic and first scenes, close-ups of both leads at 1,500–3,000 frames) show no black or red faces and no garbage. Faces and skin look the same as in a launch with everything of mine off, compared shot by shot. The red-lit car interior is red with everything off too: it's the scene's light. This is a check by eye on four launches, so it does not rule out what fxceless saw.
Frame rate: in single runs, not an A/B of this change alone, adding it took the world mean from 878 to 615 ms and the frame-rate lines over 1 s from 17 to 10.
The remap lock and the placed textures may matter here: with the lock per range, a texture read no longer waits behind a remap elsewhere. Whether that changes what fxceless saw, I can't tell.
@LeonardoS11 on GitHub · 2026-11-25 23:44 UTC · original
A report from an RTX 3080 Ti 12 GB (32-lane waves), Windows 11 26200, taken when this was first carried over an integration branch: frame time about doubled in the prologue room and the image broke, so we left it out (in our branch the wide forms are opt-in). I see the pool-page mapping part was since taken back for breaking faces; we have not re-measured after that, and will say so here when we do.
Written with Claude Code.
@TheGrayOrange on GitHub · 2026-11-26 07:55 UTC · original
I reproduced two integrity regressions in the mapping-only commit
0315f1aon Windows build 26300, using identical CPU-only tests against its parent9376fd6.When replacing the middle page of a three-page grouped view:
A separate test also confirmed that grouping can coalesce two independently reserved adjacent placeholders into one native view.
Parent: 3 passed, 0 failed.
Candidate: 1 passed, 2 failed.
The apparent cause is whole-view unmapping followed by reconstruction of retained pages through the normal read-write mapping path.
I suggest retaining per-page mapping where partial replacement is possible or reservation boundaries are uncertain. Generalized grouping would need to preserve retained-page protections, watch state and logical invalidation boundaries.
I have a reproducible test patch available. These findings do not yet establish the cause of the previously reported rendering corruption.
Investigation and testing were performed with Codex assistance.
Pull request closed