V100 research: guard/copy path, dropped draws, SV_Barycentrics (patches + data) #2519
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Joevy-1112 on 2026-11-29T13:48:42Z.
GTA6 (Xbox Series build) on V100 — findings and patches
Measured on 2× Tesla V100-SXM2-16GB (sm70, no mesh shaders, no fragment_shader_barycentric),
2× Xeon E5-2640v4, GE-Proton10-34 + vkd3d-proton master, victory (recompilation) fork.
Target: GTA6.Xbox.v1.0.2.1-CYBERLEEK. Baseline ~9.5-12.8 fps in-game; frame is CPU-bound in
the host-copy/guard path (GPU ~11-20% busy).
Patches (independently built + tested against main)
guard-word-ops.patchchange.patchGuards::opened_atevicts byrest()instead of a fixed 50 ms — a rest longer than 50 ms was silently truncated (found while measuring VICTORY_GUARD_REST; default 3000 unchanged).fault-unlocked-fix.patchVICTORY_FAULT_UNLOCKED=1still crashes for a deeper race; default path unaffected.bary-emulate.patchInvalid record, LLVM7.0.1, rc=-11; offline all 45 containers / 2987 runtime DXIL parse clean). Not deliverable yet.Reports
dropped-draws-feasibility.md— "800 dropped" is actually 4,834/frame (800 direct + 4,074 indirect);root cause: victory refuses mesh PSOs before creation (
Host::mesh_shaders()), because V100 lacksVK_EXT_mesh_shader. Mesh records are GPU-generated indirect (no fixed draw to pre-expand);fixed cacheable objects are pipelines, not draws. Compute expansion: shadow-only MVP ≈2-3 weeks,
full ≈5-8 weeks and fps −10..30%; not worth it. Turing+ GPU is the only real fix.
pso-diagnosis.md— the 40 refused VS+PS post-processing PSOs are all SV_Barycentrics(37 of 540 PS), rejected by vkd3d
d3d12_device_validate_shader_meta; state assumptionsexcluded (single-RT/no-depth/no-blend also refused).
guard-lock-structure.md— the 266 ms/frame guard lock wait is the sum of 7-8 asker threads'parallel waits, not the frame critical path. rest extension, whole-range lock hold, and
per-run merge all measured: no frame-time gain.
barycentrics-feasibility.md— 28/30 unique DXIL are manual perspective interpolation; formulaequivalent to hardware; the "one-line" fix is blocked by Flat+ExplicitInterpAMD signature
conflicts; signature sync is the right path (data-safe).
signature-sync.md— the 15-file implementation: 40→1 refused pipelines, draws 603→662,fps ~9.4 (unchanged), but long-run abort unresolved.
Reproduction
Everything was produced by a remote agent (dsh-superagent) with the game running on the V100;
each report carries the run logs, counters and scripts in its original ticket directory.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by github-actions[bot] on 2026-11-29T13:48:51Z.
Please attach both logs from the run that went wrong. Without them we can only guess. Paste
%LOCALAPPDATA%into the address bar of File Explorer to get there.%LOCALAPPDATA%\victory\logs\: the newestvictory-nvidia-play-<date>-<time>-<number>.log(fromvictory.exe) orvictory-nvidia-<date>-<time>.log(from the script launcher). The window shows its path at the start, on the lineLog: ....%LOCALAPPDATA%\VIctory\data\7952987A\crashes.log, and, if there is one from that run, the newestvictory-<date>-<time>-<number>.crash.login%LOCALAPPDATA%\VIctory\data\7952987A\temp\.Also say which GPU, Windows version (10 or 11)
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Joevy-1112 on 2026-11-29T13:51:37Z.
This is a research report, but here are the logs from the aborting run as requested.
Play log:
victory-nvidia-play-20261129-122813-32.log(5.1 MB, in%LOCALAPPDATA%\victory\logs\), run at 20:34 local.The abort is visible in the runner output, not the game log (the game log ends with its own Breakpad handler):
Note the stage: compute, not the pixel/vertex shaders the experiment touches. That points at a corrupt entry in the shader/pipeline cache (
%LOCALAPPDATA%\victory\cache\pipelines\known-shaders.bin) rather than the SV_Barycentrics change itself — the same ticket also found and fixed anshader_cache::encode/decodefield-order bug that could have written such entries. I have cleared that cache and am re-running the 400 s validation; will report whether the abort disappears. Full logs/counters/scripts are in the ticket directories referenced by the reports.Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Joevy-1112 on 2026-11-29T14:13:01Z.
Update: the abort was the shader cache.
I backed up and cleared
%LOCALAPPDATA%\victory\cache\pipelines\known-pipelines.bin+known-shaders.bin, redeployed the signature-sync build, and it ran 998 s without aborting (fail=None). So theInvalid record (Producer: 'LLVM7.0.1' Reader: 'LLVM 7.0.1')came from corrupt cache entries — consistent with theshader_cache::encode/decodefield-order bug the same ticket found and fixed (that bug could write such entries). Not the SV_Barycentrics change itself.But the recovered picture has a real cost. With the cache cold the first load took ~11 min (full shader recompile), then in-scene:
So ~9.4 fps was the incomplete picture (post-processing/UI passes missing); ~2.0 fps is the complete one (the recovered passes actually render). The education hints ("使用 L 四处移动 / 使用 R 移动镜头") now appear, which confirms the UI passes are back.
Practical implication: the change is worth landing for correctness, but on this V100 it trades fps for completeness — the user should decide whether to keep it on by default. The cache-clear is not part of the patch; it is a one-time fix for installations with stale caches.