Americas - First dialogue - Black screen 1 fps, audio works - ffe310eb20 #1671

Open
opened 2026-11-26 04:40:57 +00:00 by github-bot · 3 comments
Owner

@⁠rubensegarravlc-prog on GitHub · 2026-11-24 20:39 UTC · original

PC:

  • CPU: i9 12900KS
  • GPU: RTX 3080
  • RAM: 32GB DDR4 3600MHz
  • OS: Windows 11

Build:

  • Commit: ffe310eb20
  • Commit message: Shaders: the console's waterfall loop over a first-lane table offset
  • Branch: main
  • Build type: target/debug
  • Renderer: Software renderer from the README

Result:

  • Americas menu: 27 fps, 37.1 ms/frame, 10 draws/frame, renders correctly
  • First Lucia + Jason dialogue: black screen, 1 fps, but audio keeps playing

Notes:

  • The title loads and plays dialogue audio, but does not render the 3D world.
  • With software rendering, the CPU does the work and drops to 1 fps.
Captura de pantalla 2026-11-24 204953 Captura de pantalla 2026-11-24 210418

victory-warn-error.txt

**@⁠rubensegarravlc-prog** on GitHub · 2026-11-24 20:39 UTC · [original](https://github.com/Marvisak/VIctory/issues/1671) PC: - CPU: i9 12900KS - GPU: RTX 3080 - RAM: 32GB DDR4 3600MHz - OS: Windows 11 Build: - Commit: ffe310eb2098e52169f4c44db5ffdabf43a72622 - Commit message: Shaders: the console's waterfall loop over a first-lane table offset - Branch: main - Build type: target/debug - Renderer: Software renderer from the README Result: - Americas menu: 27 fps, 37.1 ms/frame, 10 draws/frame, renders correctly - First Lucia + Jason dialogue: black screen, 1 fps, but audio keeps playing Notes: - The title loads and plays dialogue audio, but does not render the 3D world. - With software rendering, the CPU does the work and drops to 1 fps. <img width="1817" height="1016" alt="Captura de pantalla 2026-11-24 204953" src="https://github.com/user-attachments/assets/ceb1213f-1c48-41f4-8a3f-1ef4c516f0c6" /> <img width="1813" height="1016" alt="Captura de pantalla 2026-11-24 210418" src="https://github.com/user-attachments/assets/fa16dfc1-32ea-474e-9858-0c3e758d39e6" /> [victory-warn-error.txt](https://github.com/user-attachments/files/35374351/victory-warn-error.txt)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:40:57 +00:00
Author
Owner

@⁠fiestorra on GitHub · 2026-11-25 00:29 UTC · original

Measured instead of guessed: the frames the title presents on this machine, captured and counted

I have a reproducing setup for the black screen now (session 1, real window 3840×2160, main 70564ae plus the four fixes that stop the device removal: the UAV-format rule, the texture ladder, the sampler heap and the capped view heap; RTX 4090, driver 32.0.16.2124, diag build, VICTORY_CAPTURE=<folder>, VICTORY_KEYS pressing Enter every 6 s from 25 s). Frames are saved as PNG at half size; the numbers below are mean luminance, non-black pixels and distinct colours over a 4-pixel grid, and whether the file is byte-identical to the previous one.

frame mean luminance non-black distinct colours identical to
1 … 128 0.0 0.0% 1 each other — pure black
256 33.7 99.9% 50 the profile selector (dark screen, white "SELECCION DE PERFIL / PLAYER")
512 80.6 100.0% 75,654 — the loading artwork, fully drawn
1024 81.1 99.9% 921 —
2048 and 4096 79.5 100.0% 2,844 each other — the title waiting again

Three things that matter for this report:

  1. The host does render. Frame 512 carries 75,654 distinct colours and full-brightness detail: that is the title's own artwork through our translation, not a black screen. So on this machine, with the fixes above and input scripted, the picture is not the failure the report describes.
  2. A static image repeated for thousands of frames looks like a broken renderer and is not one. Frames 256 onwards were identical to each other in my first run, and 2048/4096 in this one, because the title sits waiting for a key. Without VICTORY_KEYS my earlier runs never left the profile selector: 2,048 frames of 13,312 draws was one screen drawn again and again. That is worth knowing before reading any fps number here as "the world runs at N".
  3. The first 128 frames are black by design: the title has not presented anything yet, the frame is the cleared back buffer.

What this does not settle: whether the 3D world draws, because reaching it needs the menu sequence driven further than Enter every 6 s, and that is the part I cannot yet script past. If someone can say which keys take the profile selector to the world on 1.0.2.1, I will script that and report the world frames the same way — that is the measurement this issue needs, and it is now cheap to produce.

The capture facility is VICTORY_CAPTURE in crates/victory-gpu/src/capture.rs, present in diagnostics builds; power-of-two frames are saved, and VICTORY_CAPTURE_FRAMES lists others. No game data is attached or uploaded: these are counts and statistics of my own run, and the one frame I described above is named by what it shows, not shared.

Written with an AI assistant.

**@⁠fiestorra** on GitHub · 2026-11-25 00:29 UTC · [original](https://github.com/Marvisak/VIctory/issues/1671#issuecomment-7148565224) **Measured instead of guessed: the frames the title presents on this machine, captured and counted** I have a reproducing setup for the black screen now (session 1, real window 3840×2160, `main` `70564ae` plus the four fixes that stop the device removal: the UAV-format rule, the texture ladder, the sampler heap and the capped view heap; RTX 4090, driver `32.0.16.2124`, `diag` build, `VICTORY_CAPTURE=<folder>`, `VICTORY_KEYS` pressing `Enter` every 6 s from 25 s). Frames are saved as PNG at half size; the numbers below are mean luminance, non-black pixels and **distinct colours** over a 4-pixel grid, and whether the file is byte-identical to the previous one. | frame | mean luminance | non-black | distinct colours | identical to | |---|---|---|---|---| | 1 … 128 | **0.0** | 0.0% | **1** | each other — pure black | | 256 | 33.7 | 99.9% | 50 | the **profile selector** (dark screen, white "SELECCION DE PERFIL / PLAYER") | | 512 | **80.6** | 100.0% | **75,654** | — the loading artwork, fully drawn | | 1024 | 81.1 | 99.9% | 921 | — | | 2048 and 4096 | 79.5 | 100.0% | 2,844 | **each other** — the title waiting again | Three things that matter for this report: 1. **The host does render.** Frame 512 carries 75,654 distinct colours and full-brightness detail: that is the title's own artwork through our translation, not a black screen. So on this machine, with the fixes above and input scripted, the picture is not the failure the report describes. 2. **A static image repeated for thousands of frames looks like a broken renderer and is not one.** Frames 256 onwards were identical to each other in my first run, and 2048/4096 in this one, because the title sits waiting for a key. Without `VICTORY_KEYS` my earlier runs never left the profile selector: 2,048 frames of 13,312 draws was one screen drawn again and again. That is worth knowing before reading any fps number here as "the world runs at N". 3. **The first 128 frames are black by design**: the title has not presented anything yet, the frame is the cleared back buffer. What this does *not* settle: whether the **3D world** draws, because reaching it needs the menu sequence driven further than `Enter` every 6 s, and that is the part I cannot yet script past. If someone can say which keys take the profile selector to the world on 1.0.2.1, I will script that and report the world frames the same way — that is the measurement this issue needs, and it is now cheap to produce. The capture facility is `VICTORY_CAPTURE` in `crates/victory-gpu/src/capture.rs`, present in diagnostics builds; power-of-two frames are saved, and `VICTORY_CAPTURE_FRAMES` lists others. No game data is attached or uploaded: these are counts and statistics of my own run, and the one frame I described above is named by what it shows, not shared. Written with an AI assistant.
Author
Owner

@⁠CruxRiajuu on GitHub · 2026-11-25 11:42 UTC · original · edited 2026-11-25 17:02 UTC

Run report: update 10 tree, NVIDIA RTX 4080 SUPER, VICTORY_ROOT_SRV_MB=0

A first run of the integration/testers tree (update 10, 4744af93d98a) with the
leaked retail executable, on an NVIDIA card. Two results: the root-SRV cap is the
single biggest lever on this hardware, and the world draws.

Machine

GPU NVIDIA GeForce RTX 4080 SUPER (Ada, 32-lane subgroups)
Driver 32.0.16.1742
Windows 11 Pro 26100
CPU AMD Ryzen 9 7950X (16C/32T)
RAM 63.1 GB
Commit limit ~125 GB (64 GB pagefile)
Tree r4tedx/VIctory integration/testers @ 4744af93d98a (update 10)
Build cargo build --profile diag -p victory --features diagnostics

Variables set

VICTORY_CONFIG=J:\Games\GTA\setup\victory.toml
VICTORY_SHADER_LOOP_LIMIT=32
VICTORY_D3D12_DRED=1
VICTORY_D3D12_DEBUG=1
VICTORY_PRESENT_1440P=1
VICTORY_ROOT_SRV_MB=0
VICTORY_CAPTURE=<dir>   VICTORY_DUMP_TARGETS=1
VICTORY_KEYS=<scripted Enter/Y>

VICTORY_NO_WATCHDOG was not set for this run.

The root-SRV cap is the lever (the VICTORY_ROOT_SRV_MB=0 comparison)

Two runs of the same tree on the same machine, the only difference the cap:

default (4 MB cap) VICTORY_ROOT_SRV_MB=0
a root SRV cut to its refresh cap warnings 1 0
dropped draws per frame (mean over the run) 65.7 20.6
distinct programs that dropped 62 103
total dropped draws over the run 39,168 99,973
fps report lines (how far the run got) 596 4,844
wall time to the first game artwork ~22 min ~1.4 min
render targets holding content at frame 2500 1 of 3 3 of 3
shader cache after the run 42 files / 118 MB 2,042 files / 570 MB

At the default the log carries
a root SRV cut to its refresh cap left=182190208 cap=4194304 - a 182 MB root SRV
truncated to 4 MB, so the world's shaders read zeros past the cap. With the cap
lifted the world draws and the dropped-draw rate falls by 3.2x.

The runs are of different lengths and reach different depths, so the per-frame
mean is the comparable figure, not the totals: 65.7 dropped draws per frame at the
default, 20.6 at VICTORY_ROOT_SRV_MB=0 over a run eight times longer, and 11.3
over a still longer run. The default run never reached the world at all - it was
still on the loading screen when it was stopped.

Cost: with the cap lifted every frame refreshes ~175-220 MB of root SRV
(refreshes 177.9 MB, watches 171.4 MB checked), which dominates the frame.
A middle value (VICTORY_ROOT_SRV_MB=64 etc.) may be worth measuring; the switch
accepts any MiB value and the tree only documents 0 and the 4 MB default.

The root-SRV cap: a middle value is not a free win

A third and fourth run with VICTORY_ROOT_SRV_MB=64 and =128 (the tree
documents only 0 and the 4 MB default; the switch accepts any MiB value):

4 MB (default) 64 MB 128 MB 0 (unlimited)
a root SRV cut to its refresh cap 1 1 1 0
copied per frame - 493 MB 480 MB 865 MB
draws/frame - 2,430 2,105 3,939
dropped for want of a host pipeline - 410-484 569-781 229
frame time - 5,402 ms 7,901 ms 8,631 ms

The cap bites at 64 MB and at 128 MB too - a root SRV cut to its refresh cap left=182190208 cap=134217728 - so the world's reads reach past 128 MB of the
182 MB root SRV as well as past 4 MB. Only 0 avoids the cut, and only 0 renders
the world in full
: the capped runs submit 1,800 fewer draws a frame and drop
twice to three times as many.

The copy volume stops growing once the cap is above what the title touches in a
frame (~480 MB either way at 64 and 128 MB, against 865 MB unbounded), so the
extra copy at 0 is what buys the correctness.

Caveat on the frame-time column: the runs are not camera-matched - each one
reaches a different point of the world - so the frame times and draw counts are
indicative rather than a controlled comparison. The cap-warning count and the
direction of the draw counts are not affected by that.

The cost is not the cap itself but the copy: with the cap lifted every frame
refreshes the whole 182 MB root SRV. The fix upstream is to copy only the
dirty pages of a host copy rather than all of it per bind, which is the
direction of #1993, #1978 and #1934. With that, a capped run would keep the
geometry and lose the copy cost.

Offline shader counts

victory translate --host-lanes 32-32 --validate --pipelines --list over the
whole package (update 10):

validator    C:\Program Files (x86)\Windows Kits\10\bin\10.0.22000.0\x64\dxil.dll
host waves   32-32 lanes
containers   26584 (614 duplicates skipped)
programs     26136 translated of 26136 (40647020 IR instructions)
structured   26136 of 26136 (32660093 vector instructions, 771261 guarded, 5459 on opaque masks; branches 797121 per lane, 361082 uniform)
resources    25941 of 26136 tracked (descriptors 2551802 loaded, 126513 built, 172791 constant; 1234617 scalar accesses; 213255 with a computed term)
used-resource entries 433230: 187 not traced {"Cbv via Constants": 17, "Cbv via Table": 33, "Sampler via ImmediateSampler": 22, "Srv via Table": 115};
I/O          14442 of 14442 vertex, geometry and pixel programs raised (178564 interpolations, 6888 vertex values; exports {"color": 29217, "depth": 1
DXIL         14165 emitted of 14429 vertex, geometry and pixel programs; 2690 validated, 14165 pipelines
2501 emitted of 2604 compute programs; 2501 validated, 2500 pipelines
8351 emitted of 8713 mesh programs; 2573 validated, 8351 pipelines
J:\Games\GTA\GTA6.Xbox.vthe build-CYBERLEEK\XboxBvhBuilder.dll@0x24b00 Cs  pipeline created

0 pipelines refused by the driver. On main the same measurement refuses
114-319 compute pipelines on this class of card; the wave64 stack in this tree
removes them.

Runtime: what does not translate

Occurrences Reason
30 converter shader.dxil v1: GFX10 code at 0x: an address not from a root parameter is not supported
24 converter shader.dxil v1: GFX10 code at 0x: a scalar memory read as data is not supported
20 converter shader.dxil v1: GFX10 code at 0x: a lane mask read as data is not supported
9 converter shader.dxil v1: GFX10 code at 0x: console wave64 lanes in a group of more than 64 threads on a host without 64-lane waves is not supported
8 converter shader.dxil v1: GFX10 code at 0x: an address from a phi is not supported
8 converter shader.dxil v1: GFX10 code at 0x: an address from a root parameter that is no address is not supported
4 converter shader.dxil v1: GFX10 code at 0x: a descriptor read from the first lane of computed VGPRs is not supported
3 converter shader.dxil v1: GFX10 code at 0x: an LDS write of bytes or halves is not supported
2 converter shader.dxil v1: GFX10 code at 0x: a whole-wave section step the simulation does not follow is not supported
2 converter shader.dxil v1: GFX10 code at 0x: the first half of an interpolation is not supported
2 converter shader.dxil v1: GFX10 code at 0x: a lane mask holding lanes elsewhere read as data is not supported
2 converter shader.dxil v1: GFX10 code at 0x: a descriptor neither loaded nor built is not supported
2 converter shader.dxil v1: GFX10 code at 0x: v_cvt_f32_f64 is not supported
1 converter shader.dxil v1: GFX10 code at 0x: a descriptor partly joined by control flow is not supported
1 converter shader.dxil v1: GFX10 code at 0x: an address in an SGPR that is no root parameter is not supported
1 converter shader.dxil v1: GFX10 code at 0x: a typed root view is not supported
1 converter shader.dxil v1: GFX10 code at 0x: a whole-wave section of a wave64 on a host without 64-lane waves is not supported
1 converter shader.dxil v1: GFX10 code at 0x: a descriptor's address or format read as data is not supported
1 converter shader.dxil v1: GFX10 code at 0x: a descriptor chosen by control flow is not supported
1 converter shader.dxil v1: GFX10 code at 0x: buffer_load_ushort is not supported
1 converter shader.dxil v1: GFX10 code at 0x: a descriptor read only as data is not supported
1 converter shader.dxil v1: GFX10 code at 0x: v_permlanex16_b32 is not supported

Dropped draws at runtime

Dropped/frame Stage Shader
3.0 compute 0ae69044bfd15035
3.0 compute 4e69dc8770bf27fc
3.0 compute df68734027b2d0c3
3.0 compute f09b1760a72a26af
3.0 compute a73284b60aa303ed
3.0 compute 36e010b53acffd77
3.0 compute f018c205b5199d39
4.0 pixel 398971d1222d8f95
4.0 compute 098fc28e44347a00
2.0 compute 0a5d4f9047b3dce4
5.0 compute a63e2dfc25ba3155
4.0 compute 190fbf0ebe040169
4.0 compute 7bb5b1b91d283a28
4.0 compute a197f50cd8481541
4.0 compute c85822de2e41cfaa
5.0 mesh 093c64546c55554e
8.0 mesh ef5409053e14aa82
6.0 compute a63e2dfc25ba3155
5.0 compute 190fbf0ebe040169
5.0 compute 7bb5b1b91d283a28

The world

[removed: description of the title's on-screen content]

Memory

The title's resident set grows as the world streams in: the run ended at ~23 GB
resident with the 2,333-shader cache warm. On a 63 GB machine with a 64 GB
pagefile the commit limit is ~127 GB, so this is comfortable, but a machine
running the port alongside other work can be pushed into commit limit - the
README's error 1455 case.

The texture content

Every texture in the world frame comes out as multicoloured banding - the
signature of an uninitialised or mis-swizzled texture buffer rather than a wrong
image. Geometry, silhouettes, depth and the lighting gradients are all correct, so
the geometry path works and the texture path does not.

The fault is localised

The 2D and streamed textures on the same run decode correctly: the menus
([removed], [removed], [removed] (Y) [removed]) and the
[removed] artwork at 3840x2160 both come out with the right colours, gradients
and text. Only the 3D world's textures are garbage.

That narrows it: general texture decoding works, and the fault is in the 3D
tiled-texture path - the GFX10 swizzle and the BCPack blocks the world is built
from - rather than in texture decoding as a whole. victory-formats carries
the BCPack decoder (crates/victory-formats/src/bcpack.rs) and the swizzle
tables (bcpack-tables.bin); both are in scope for this.

There are 115 open texture issues on main at the time of writing, and the
texture path is where this looks least finished. victory-formats carries the
BCPack decoder and bcpack-tables.bin; strict BCPack decoding is the default
and this tree ships no local calibration file.

integration/play: the upstream-main tree, on an NVIDIA card

r4tedx/VIctory integration/play at 08c1d3541 - "a playable candidate for
NVIDIA". Base: upstream main at 940d32f. It replaces integration/testers
(update 10, 4744af93d), which was based on ffe310e before the maintainer's
large drop of 2026-11-24 and is now frozen.

update 10 integration/play
frame time 8,631 ms 460 ms
copied per frame 865 MB 201 MB
draws (last presented frame) 44,050 86,137
dispatches 8,168 27,530
shader cache after the run 2,333 files 4,605 files
device removals 0 4

Every translation failure except wave64 is gone

On update 10 the failures were spread over seven reasons - "an address not from
a root parameter", "a scalar memory read as data", "a lane mask read as data",
"an address from a phi" and so on. On this tree the compute failures are
all one reason:

console wave64 lanes in a group of more than 64 threads on a host without 64-lane waves is not supported

That is the hardware limit, not a translator gap: the console is 64-lane and this
card is 32-lane. 45 programs still do not translate; 36 of them are wave64 compute
programs, the rest are three pixel programs (barycentrics read directly, two
a descriptor read of the first lane of computed VGPRs).

The wave64 stack (#223, #233, #320, #439) is not in this tree yet - the
branch's own note says it "goes in with the next check round". So this tree is
the best NVIDIA configuration available, and it is still not the whole port.

A reproducible device hang

This tree removes the device on an NVIDIA card. The breadcrumb names the draw:

ERROR victory_gpu::host: host GPU device removed after a submission of 1 lists
  ... command 1130 (op 6): dispatch 13x1x1 [compute caa78b8ca62bc3d6]
  D3D12: ID3D12Device::RemoveDevice: Device removal has been triggered for the
  following reason (DXGI_ERROR_DEVICE_HUNG: The Device took an unreasonable
  amount of time to execute its commands, or the hardware crashed/hung. As a
  result, the TDR (Timeout Detection and Recovery) mechanism has been triggered.

caa78b8ca62bc3d6 is not one of the programs that fail to translate - it
translated, and it hung the GPU. The branch's own risk list names the likely
cause:

"Translated shaders clamp descriptor-heap indices below 2^21, but NVIDIA caps
a shader-visible view heap at 1,000,000, so an index between the two still
passes the heap's end. Upstream #1777 aims at this but is not taken yet."

The dispatch's descriptor tables reference placed resources in several heaps, which
matches that description. TdrDelay=60 and TdrDdiDelay=60 were set and the
device still hung, so this is a hang rather than a slow frame.

The heap-index evidence

The title's own log names the fault - title slot past the host heap, one of the
lines INTEGRATION.md asks reporters for:

WARN victory_gpu::descriptor::host: title slot past the host heap index=1037365 count=934464 for_draw=false
title slot past the host heap warnings 151,990
host heap size actually in use (count=) 934,464
lowest index reported 934,464 (exactly the heap's end)
highest index reported 1,086,453
for_draw false in all of them
a root SRV without a bound view heap 0
a draw or dispatch dropped: no dynamic slots for its tables 0
a root SRV not on 16 bytes reads zeros 0

The host heap fell back to 934,464 descriptors - under NVIDIA's 1,000,000 cap - and
the clamp lets indices run from exactly the heap's end up to 1,086,453, past both
the heap's end and the cap. That is #1777's failure mode, with the highest index
for the report.

Relation to #1671

#1671 ("Americas - First dialogue - Black screen 1 fps, audio works") reports the
same symptom on an RTX 3080. That report used the software renderer from the
README, so the CPU did the work and the 3D world was never drawn.

This run is on the real GPU with VICTORY_ROOT_SRV_MB=0, and the world does
draw: 1,183-1,448 draws/frame late in the run, at 0.2-0.3 fps. The frame time is
dominated by the root-SRV refresh (1.6 s of a 4 s frame is copies), not by the
GPU (330 ms). On the software renderer of #1671 the same scene would be far slower
still, and the world would not appear at all.

If the black screen at the first dialogue is the 4 MB root-SRV cap truncating a
182 MB root SRV, VICTORY_ROOT_SRV_MB=0 is the switch that lifts it. On this
card it also cuts the dropped draws per frame from 65.7 to 20.6.

The descriptor-heap half of the black screen (#1620, #1627) is still present and
unfixed here: the title asks for 1,572,865 shader-visible descriptors and D3D12
caps that at 1,000,000, so the host view heap is capped and the excess is
dropped.

Other log lines worth reporting

Line Count
host view heap capped at 1000000 1
``NumDescriptors 1572865 over the 1000000 shader-visible limit 1
a root SRV not on 16 bytes reads zeros 1
a root SRV without a bound view heap 0
title slot past the host heap 0
a draw or dispatch dropped: no dynamic slots for its tables 0
the host has no 64-lane waves 1
``E_OUTOFMEMORY pipeline refusal 0
``nvgpucomp64.dll first-chance exception 0

PRs left out or added

None. The tree is integration/testers as published, at 4744af93d98a.

**@⁠CruxRiajuu** on GitHub · 2026-11-25 11:42 UTC · [original](https://github.com/Marvisak/VIctory/issues/1671#issuecomment-7161401290) · edited 2026-11-25 17:02 UTC # Run report: update 10 tree, NVIDIA RTX 4080 SUPER, `VICTORY_ROOT_SRV_MB=0` A first run of the `integration/testers` tree (update 10, `4744af93d98a`) with the leaked retail executable, on an NVIDIA card. Two results: the root-SRV cap is the single biggest lever on this hardware, and the world draws. ## Machine | | | |---|---| | GPU | NVIDIA GeForce RTX 4080 SUPER (Ada, 32-lane subgroups) | | Driver | 32.0.16.1742 | | Windows | 11 Pro 26100 | | CPU | AMD Ryzen 9 7950X (16C/32T) | | RAM | 63.1 GB | | Commit limit | ~125 GB (64 GB pagefile) | | Tree | `r4tedx/VIctory` `integration/testers` @ `4744af93d98a` (update 10) | | Build | `cargo build --profile diag -p victory --features diagnostics` | ## Variables set ``` VICTORY_CONFIG=J:\Games\GTA\setup\victory.toml VICTORY_SHADER_LOOP_LIMIT=32 VICTORY_D3D12_DRED=1 VICTORY_D3D12_DEBUG=1 VICTORY_PRESENT_1440P=1 VICTORY_ROOT_SRV_MB=0 VICTORY_CAPTURE=<dir> VICTORY_DUMP_TARGETS=1 VICTORY_KEYS=<scripted Enter/Y> ``` `VICTORY_NO_WATCHDOG` was **not** set for this run. ## The root-SRV cap is the lever (the `VICTORY_ROOT_SRV_MB=0` comparison) Two runs of the same tree on the same machine, the only difference the cap: | | default (4 MB cap) | `VICTORY_ROOT_SRV_MB=0` | |---|---|---| | `a root SRV cut to its refresh cap` warnings | 1 | **0** | | dropped draws per frame (mean over the run) | **65.7** | **20.6** | | distinct programs that dropped | 62 | 103 | | total dropped draws over the run | 39,168 | 99,973 | | fps report lines (how far the run got) | 596 | 4,844 | | wall time to the first game artwork | ~22 min | **~1.4 min** | | render targets holding content at frame 2500 | 1 of 3 | **3 of 3** | | shader cache after the run | 42 files / 118 MB | **2,042 files / 570 MB** | At the default the log carries `a root SRV cut to its refresh cap left=182190208 cap=4194304` - a 182 MB root SRV truncated to 4 MB, so the world's shaders read zeros past the cap. With the cap lifted the world draws and the dropped-draw rate falls by 3.2x. The runs are of different lengths and reach different depths, so the per-frame mean is the comparable figure, not the totals: 65.7 dropped draws per frame at the default, 20.6 at `VICTORY_ROOT_SRV_MB=0` over a run eight times longer, and 11.3 over a still longer run. The default run never reached the world at all - it was still on the loading screen when it was stopped. **Cost:** with the cap lifted every frame refreshes ~175-220 MB of root SRV (`refreshes 177.9 MB`, `watches 171.4 MB checked`), which dominates the frame. A middle value (`VICTORY_ROOT_SRV_MB=64` etc.) may be worth measuring; the switch accepts any MiB value and the tree only documents 0 and the 4 MB default. ## The root-SRV cap: a middle value is not a free win A third and fourth run with `VICTORY_ROOT_SRV_MB=64` and `=128` (the tree documents only 0 and the 4 MB default; the switch accepts any MiB value): | | 4 MB (default) | 64 MB | 128 MB | 0 (unlimited) | |---|---|---|---|---| | `a root SRV cut to its refresh cap` | 1 | 1 | 1 | **0** | | copied per frame | - | 493 MB | 480 MB | 865 MB | | draws/frame | - | 2,430 | 2,105 | **3,939** | | dropped for want of a host pipeline | - | 410-484 | 569-781 | **229** | | frame time | - | 5,402 ms | 7,901 ms | 8,631 ms | The cap bites at 64 MB and at 128 MB too - `a root SRV cut to its refresh cap left=182190208 cap=134217728` - so the world's reads reach past 128 MB of the 182 MB root SRV as well as past 4 MB. **Only 0 avoids the cut, and only 0 renders the world in full**: the capped runs submit 1,800 fewer draws a frame and drop twice to three times as many. The copy volume stops growing once the cap is above what the title touches in a frame (~480 MB either way at 64 and 128 MB, against 865 MB unbounded), so the extra copy at 0 is what buys the correctness. Caveat on the frame-time column: the runs are not camera-matched - each one reaches a different point of the world - so the frame times and draw counts are indicative rather than a controlled comparison. The cap-warning count and the direction of the draw counts are not affected by that. The cost is not the cap itself but the copy: with the cap lifted every frame refreshes the whole 182 MB root SRV. The fix upstream is to copy only the dirty pages of a host copy rather than all of it per bind, which is the direction of #1993, #1978 and #1934. With that, a capped run would keep the geometry and lose the copy cost. ## Offline shader counts `victory translate --host-lanes 32-32 --validate --pipelines --list` over the whole package (update 10): ``` validator C:\Program Files (x86)\Windows Kits\10\bin\10.0.22000.0\x64\dxil.dll host waves 32-32 lanes containers 26584 (614 duplicates skipped) programs 26136 translated of 26136 (40647020 IR instructions) structured 26136 of 26136 (32660093 vector instructions, 771261 guarded, 5459 on opaque masks; branches 797121 per lane, 361082 uniform) resources 25941 of 26136 tracked (descriptors 2551802 loaded, 126513 built, 172791 constant; 1234617 scalar accesses; 213255 with a computed term) used-resource entries 433230: 187 not traced {"Cbv via Constants": 17, "Cbv via Table": 33, "Sampler via ImmediateSampler": 22, "Srv via Table": 115}; I/O 14442 of 14442 vertex, geometry and pixel programs raised (178564 interpolations, 6888 vertex values; exports {"color": 29217, "depth": 1 DXIL 14165 emitted of 14429 vertex, geometry and pixel programs; 2690 validated, 14165 pipelines 2501 emitted of 2604 compute programs; 2501 validated, 2500 pipelines 8351 emitted of 8713 mesh programs; 2573 validated, 8351 pipelines J:\Games\GTA\GTA6.Xbox.vthe build-CYBERLEEK\XboxBvhBuilder.dll@0x24b00 Cs pipeline created ``` **0 pipelines refused by the driver.** On `main` the same measurement refuses 114-319 compute pipelines on this class of card; the wave64 stack in this tree removes them. ## Runtime: what does not translate | Occurrences | Reason | |---|---| | 30 | converter shader.dxil v1: GFX10 code at 0x<n>: an address not from a root parameter is not supported | | 24 | converter shader.dxil v1: GFX10 code at 0x<n>: a scalar memory read as data is not supported | | 20 | converter shader.dxil v1: GFX10 code at 0x<n>: a lane mask read as data is not supported | | 9 | converter shader.dxil v1: GFX10 code at 0x<n>: console wave64 lanes in a group of more than 64 threads on a host without 64-lane waves is not supported | | 8 | converter shader.dxil v1: GFX10 code at 0x<n>: an address from a phi is not supported | | 8 | converter shader.dxil v1: GFX10 code at 0x<n>: an address from a root parameter that is no address is not supported | | 4 | converter shader.dxil v1: GFX10 code at 0x<n>: a descriptor read from the first lane of computed VGPRs is not supported | | 3 | converter shader.dxil v1: GFX10 code at 0x<n>: an LDS write of bytes or halves is not supported | | 2 | converter shader.dxil v1: GFX10 code at 0x<n>: a whole-wave section step the simulation does not follow is not supported | | 2 | converter shader.dxil v1: GFX10 code at 0x<n>: the first half of an interpolation is not supported | | 2 | converter shader.dxil v1: GFX10 code at 0x<n>: a lane mask holding lanes elsewhere read as data is not supported | | 2 | converter shader.dxil v1: GFX10 code at 0x<n>: a descriptor neither loaded nor built is not supported | | 2 | converter shader.dxil v1: GFX10 code at 0x<n>: v_cvt_f32_f64 is not supported | | 1 | converter shader.dxil v1: GFX10 code at 0x<n>: a descriptor partly joined by control flow is not supported | | 1 | converter shader.dxil v1: GFX10 code at 0x<n>: an address in an SGPR that is no root parameter is not supported | | 1 | converter shader.dxil v1: GFX10 code at 0x<n>: a typed root view is not supported | | 1 | converter shader.dxil v1: GFX10 code at 0x<n>: a whole-wave section of a wave64 on a host without 64-lane waves is not supported | | 1 | converter shader.dxil v1: GFX10 code at 0x<n>: a descriptor's address or format read as data is not supported | | 1 | converter shader.dxil v1: GFX10 code at 0x<n>: a descriptor chosen by control flow is not supported | | 1 | converter shader.dxil v1: GFX10 code at 0x<n>: buffer_load_ushort is not supported | | 1 | converter shader.dxil v1: GFX10 code at 0x<n>: a descriptor read only as data is not supported | | 1 | converter shader.dxil v1: GFX10 code at 0x<n>: v_permlanex16_b32 is not supported | ### Dropped draws at runtime | Dropped/frame | Stage | Shader | |---|---|---| | 3.0 | compute | `0ae69044bfd15035` | | 3.0 | compute | `4e69dc8770bf27fc` | | 3.0 | compute | `df68734027b2d0c3` | | 3.0 | compute | `f09b1760a72a26af` | | 3.0 | compute | `a73284b60aa303ed` | | 3.0 | compute | `36e010b53acffd77` | | 3.0 | compute | `f018c205b5199d39` | | 4.0 | pixel | `398971d1222d8f95` | | 4.0 | compute | `098fc28e44347a00` | | 2.0 | compute | `0a5d4f9047b3dce4` | | 5.0 | compute | `a63e2dfc25ba3155` | | 4.0 | compute | `190fbf0ebe040169` | | 4.0 | compute | `7bb5b1b91d283a28` | | 4.0 | compute | `a197f50cd8481541` | | 4.0 | compute | `c85822de2e41cfaa` | | 5.0 | mesh | `093c64546c55554e` | | 8.0 | mesh | `ef5409053e14aa82` | | 6.0 | compute | `a63e2dfc25ba3155` | | 5.0 | compute | `190fbf0ebe040169` | | 5.0 | compute | `7bb5b1b91d283a28` | ## The world [removed: description of the title's on-screen content] ### Memory The title's resident set grows as the world streams in: the run ended at ~23 GB resident with the 2,333-shader cache warm. On a 63 GB machine with a 64 GB pagefile the commit limit is ~127 GB, so this is comfortable, but a machine running the port alongside other work can be pushed into commit limit - the README's error 1455 case. ### The texture content Every texture in the world frame comes out as multicoloured banding - the signature of an uninitialised or mis-swizzled texture buffer rather than a wrong image. Geometry, silhouettes, depth and the lighting gradients are all correct, so the geometry path works and the texture path does not. ### The fault is localised The 2D and streamed textures on the same run decode correctly: the menus (`[removed]`, `[removed]`, `[removed] (Y) [removed]`) and the [removed] artwork at 3840x2160 both come out with the right colours, gradients and text. Only the 3D world's textures are garbage. That narrows it: general texture decoding works, and the fault is in the 3D tiled-texture path - the GFX10 swizzle and the BCPack blocks the world is built from - rather than in texture decoding as a whole. `victory-formats` carries the BCPack decoder (`crates/victory-formats/src/bcpack.rs`) and the swizzle tables (`bcpack-tables.bin`); both are in scope for this. There are 115 open texture issues on `main` at the time of writing, and the texture path is where this looks least finished. `victory-formats` carries the BCPack decoder and `bcpack-tables.bin`; strict BCPack decoding is the default and this tree ships no local calibration file. ## `integration/play`: the upstream-main tree, on an NVIDIA card `r4tedx/VIctory` `integration/play` at `08c1d3541` - "a playable candidate for NVIDIA". Base: upstream `main` at `940d32f`. It replaces `integration/testers` (update 10, `4744af93d`), which was based on `ffe310e` before the maintainer's large drop of 2026-11-24 and is now frozen. | | update 10 | `integration/play` | |---|---|---| | frame time | 8,631 ms | **460 ms** | | copied per frame | 865 MB | **201 MB** | | draws (last presented frame) | 44,050 | **86,137** | | dispatches | 8,168 | **27,530** | | shader cache after the run | 2,333 files | **4,605 files** | | device removals | 0 | **4** | ### Every translation failure except wave64 is gone On update 10 the failures were spread over seven reasons - "an address not from a root parameter", "a scalar memory read as data", "a lane mask read as data", "an address from a phi" and so on. On this tree the compute failures are **all** one reason: > `console wave64 lanes in a group of more than 64 threads on a host without > 64-lane waves is not supported` That is the hardware limit, not a translator gap: the console is 64-lane and this card is 32-lane. 45 programs still do not translate; 36 of them are wave64 compute programs, the rest are three pixel programs (`barycentrics read directly`, two `a descriptor read of the first lane of computed VGPRs`). The wave64 stack (#223, #233, #320, #439) is **not** in this tree yet - the branch's own note says it "goes in with the next check round". So this tree is the best NVIDIA configuration available, and it is still not the whole port. ### A reproducible device hang This tree removes the device on an NVIDIA card. The breadcrumb names the draw: ``` ERROR victory_gpu::host: host GPU device removed after a submission of 1 lists ... command 1130 (op 6): dispatch 13x1x1 [compute caa78b8ca62bc3d6] D3D12: ID3D12Device::RemoveDevice: Device removal has been triggered for the following reason (DXGI_ERROR_DEVICE_HUNG: The Device took an unreasonable amount of time to execute its commands, or the hardware crashed/hung. As a result, the TDR (Timeout Detection and Recovery) mechanism has been triggered. ``` `caa78b8ca62bc3d6` is **not** one of the programs that fail to translate - it translated, and it hung the GPU. The branch's own risk list names the likely cause: > "Translated shaders clamp descriptor-heap indices below 2^21, but NVIDIA caps > a shader-visible view heap at 1,000,000, so an index between the two still > passes the heap's end. Upstream #1777 aims at this but is not taken yet." The dispatch's descriptor tables reference placed resources in several heaps, which matches that description. `TdrDelay=60` and `TdrDdiDelay=60` were set and the device still hung, so this is a hang rather than a slow frame. ### The heap-index evidence The title's own log names the fault - `title slot past the host heap`, one of the lines INTEGRATION.md asks reporters for: ``` WARN victory_gpu::descriptor::host: title slot past the host heap index=1037365 count=934464 for_draw=false ``` | | | |---|---| | `title slot past the host heap` warnings | 151,990 | | host heap size actually in use (`count=`) | 934,464 | | lowest index reported | 934,464 (exactly the heap's end) | | highest index reported | **1,086,453** | | `for_draw` | false in all of them | | `a root SRV without a bound view heap` | 0 | | `a draw or dispatch dropped: no dynamic slots for its tables` | 0 | | `a root SRV not on 16 bytes reads zeros` | 0 | The host heap fell back to 934,464 descriptors - under NVIDIA's 1,000,000 cap - and the clamp lets indices run from exactly the heap's end up to 1,086,453, past both the heap's end and the cap. That is #1777's failure mode, with the highest index for the report. ## Relation to #1671 #1671 ("Americas - First dialogue - Black screen 1 fps, audio works") reports the same symptom on an RTX 3080. That report used the software renderer from the README, so the CPU did the work and the 3D world was never drawn. This run is on the real GPU with `VICTORY_ROOT_SRV_MB=0`, and the world **does** draw: 1,183-1,448 draws/frame late in the run, at 0.2-0.3 fps. The frame time is dominated by the root-SRV refresh (1.6 s of a 4 s frame is `copies`), not by the GPU (330 ms). On the software renderer of #1671 the same scene would be far slower still, and the world would not appear at all. If the black screen at the first dialogue is the 4 MB root-SRV cap truncating a 182 MB root SRV, `VICTORY_ROOT_SRV_MB=0` is the switch that lifts it. On this card it also cuts the dropped draws per frame from 65.7 to 20.6. The descriptor-heap half of the black screen (#1620, #1627) is still present and unfixed here: the title asks for 1,572,865 shader-visible descriptors and D3D12 caps that at 1,000,000, so the host view heap is capped and the excess is dropped. ## Other log lines worth reporting | Line | Count | |---|---| | ``host view heap capped at 1000000`` | 1 | | ``NumDescriptors 1572865` over the 1000000 shader-visible limit` | 1 | | ``a root SRV not on 16 bytes reads zeros`` | 1 | | ``a root SRV without a bound view heap`` | 0 | | ``title slot past the host heap`` | 0 | | ``a draw or dispatch dropped: no dynamic slots for its tables`` | 0 | | ``the host has no 64-lane waves`` | 1 | | ``E_OUTOFMEMORY` pipeline refusal` | 0 | | ``nvgpucomp64.dll` first-chance exception` | 0 | ## PRs left out or added None. The tree is `integration/testers` as published, at `4744af93d98a`.
Author
Owner

@⁠Marvisak on GitHub · 2026-11-25 12:52 UTC · original

Automated triage for the maintainers.

Run report: RTX 3080, Windows 11, ffe310e debug build with VICTORY_D3D12_WARP=1 (the software adapter); menus at 27 fps, then a black world at 1 fps with audio. That is expected for that mode: the README notes WARP is far too slow to show the world, and the black NVIDIA world on the hardware adapter is tracked in #71. Please post a run on the hardware adapter (no VICTORY_D3D12_WARP) with current main there, with the driver version and Windows build.

On the comments:

  • The capture counts in the first comment show the host does draw the title's 2D screens; a repeated identical frame is often the title waiting for input.
  • The second comment tests a third-party integration branch, not main; its findings belong with that branch or in the PRs it names (for example #1777 for heap indices past the capped view heap). It also names where its copy of the title came from. Nothing about where copies come from, and no screenshots or other content from the title, may be posted here.

Generated by Claude Code

**@⁠Marvisak** on GitHub · 2026-11-25 12:52 UTC · [original](https://github.com/Marvisak/VIctory/issues/1671#issuecomment-7162982081) <!-- victory-issue-triage v1 verdict=tracked seen=2026-11-25T11:42:47Z at=2026-11-25T12:52:34Z --> Automated triage for the maintainers. Run report: RTX 3080, Windows 11, `ffe310e` debug build with `VICTORY_D3D12_WARP=1` (the software adapter); menus at 27 fps, then a black world at 1 fps with audio. That is expected for that mode: the README notes WARP is far too slow to show the world, and the black NVIDIA world on the hardware adapter is tracked in #71. Please post a run on the hardware adapter (no `VICTORY_D3D12_WARP`) with current `main` there, with the driver version and Windows build. On the comments: - The capture counts in the first comment show the host does draw the title's 2D screens; a repeated identical frame is often the title waiting for input. - The second comment tests a third-party integration branch, not `main`; its findings belong with that branch or in the PRs it names (for example #1777 for heap indices past the capped view heap). It also names where its copy of the title came from. Nothing about where copies come from, and no screenshots or other content from the title, may be posted here. --- _Generated by [Claude Code](https://claude.ai/code)_
This discussion has been locked. Commenting is limited to contributors.
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.

Dependencies

No dependencies set

Reference
github/Marvisak--VIctory#1671
No description provided.