GTA VI (Xbox 1.0.2.1): a warm pipeline library removes the compile stalls, but 165 untranslatable shaders still drop 2534 draws/frame and the device is removed within minutes on a 3 GB card #2602

Open
opened 2026-11-26 05:10:07 +00:00 by github-bot · 2 comments
Owner

@⁠nnkmn on GitHub · 2026-11-25 16:35 UTC · original

Follow-up numbers to my comment on #1118 and to #2477. This is what the same Series X build looks like once the pipeline library is pre-built, on a host that has neither wave64 nor enough VRAM.

Environment

GPU GTX 1060 3 GB (driver 32.0.15.8278, no FL12_2, host waves 32 lanes)
CPU i7-8700 (6C/12T), 32 GB RAM, Windows 11 10.0.26300
Title 1.0.2.1 (930.048.020), Appx RockstarGamesInc.28872443D20A, TitleId 7952987A, TargetDeviceFamily="Scarlett"
Stack PR #189 tree (Wave64 emulation), VICTORY_WAVE64_EMULATE=emulate, plus both self-kill sites NOPed as described in #1118

Pre-building the pipelines does remove the stalls

VICTORY_PREBUILD_EARLY_ONLY builds only the pipelines an earlier run drew with (<cache>/pipelines/early-pipelines.txt, 1924 entries) instead of the pack's 28,164:

early only   1549 pipelines an earlier run drew with
pipelines    28164 in the pack, 203.3 s: 36 made, 992 already in the library

Effect at world entry, same profile, same GPU:

before prebuild after prebuild
draws/frame 31, rising to 316 over 8 min 741
dropped without a host pipeline 2754 2534
"(being made)" 995+ for over ten minutes 0 after ~2 min
frame time 3.7 s growing to 10.2 s 44.2 s
host textures 9741 MB (4004) 9724 MB (4026)

Startup cost is now zero: host pipeline library loaded bytes=407103334 ms=455, host pipeline created = 0, host pipeline refused = 0.

A second pre-build with warm caches takes 3 min 42 s in total, and none of it is compilation:

containers 25985 in 111.4 s: 25985 already cached, 0 translated, 0 refused
pipelines  28164 in 109.5 s: 0 made, 1041 already in the library

The remaining drops are 165 shaders that do not translate

dropped 2534 without a host pipeline (0 being made) - nothing is compiling, so those pipelines never will be:

 43 + 16 + 5  v_readfirstlane in divergent control flow is not supported
 32           a 64-lane wave ballot in divergent control flow is not supported
 39           LDS accesses without a uniform LDS fence in split wave64 is not supported
  3           a register joining a lane mask and data, read as data is not supported
  3           a wave reduction in divergent control flow is not supported

They cover the passes that draw the scene, so what is left on screen is HUD and post only: a black frame with a working audio track. Is #192 (LDS barriers plus the divergent-control-flow rewrite) the intended fix for all five, or is some of it expected to stay refused?

Device removed, minutes later

Three TDRs (nvlddmkm 153) in the same second, then:

host GPU device removed after a submission of 33 lists; no breadcrumbs (0x887A0004);
GPU is not responding to more commands (0x887A0007)
process exit = 0x887A0005 after 291 s

At that point host textures were 9724 MB on a 3 GB card and one frame took 44 s on the GPU. On this host the pipeline work is now free, so the wall is texture residency plus the 2 s TDR threshold, not translation. Is there a supported way to cap host texture residency (a mip drop, or a smaller streaming budget) that we should be using instead of raising TdrDelay?

Series S, for contrast

textures 1559 / 2671 MB   (fits the 3 GB)
draws 9~10, root-view slots/frame 0, 30 fps, black from boot

root-view slots/frame 0 looks like a separate issue: in that profile nothing is bound as a root SRV/UAV, so even the loading art never appears. If that is a known gap it probably deserves its own issue.

Reproduction

victory.exe translate --cache --pipelines --jobs 9      # VICTORY_PREBUILD_EARLY_ONLY=1, VICTORY_WAVE64_EMULATE=emulate
victory.exe run game_scarlett_master.exe --execute --console series-x
**@⁠nnkmn** on GitHub · 2026-11-25 16:35 UTC · [original](https://github.com/Marvisak/VIctory/issues/2602) Follow-up numbers to my comment on #1118 and to #2477. This is what the same Series X build looks like once the pipeline library is pre-built, on a host that has neither wave64 nor enough VRAM. ## Environment | | | |---|---| | GPU | GTX 1060 3 GB (driver 32.0.15.8278, no FL12_2, host waves 32 lanes) | | CPU | i7-8700 (6C/12T), 32 GB RAM, Windows 11 10.0.26300 | | Title | 1.0.2.1 (930.048.020), Appx `RockstarGamesInc.28872443D20A`, TitleId `7952987A`, `TargetDeviceFamily="Scarlett"` | | Stack | PR #189 tree (Wave64 emulation), `VICTORY_WAVE64_EMULATE=emulate`, plus both self-kill sites NOPed as described in #1118 | ## Pre-building the pipelines does remove the stalls `VICTORY_PREBUILD_EARLY_ONLY` builds only the pipelines an earlier run drew with (`<cache>/pipelines/early-pipelines.txt`, 1924 entries) instead of the pack's 28,164: ``` early only 1549 pipelines an earlier run drew with pipelines 28164 in the pack, 203.3 s: 36 made, 992 already in the library ``` Effect at world entry, same profile, same GPU: | | before prebuild | after prebuild | |---|---|---| | draws/frame | 31, rising to 316 over 8 min | 741 | | dropped without a host pipeline | 2754 | 2534 | | "(being made)" | 995+ for over ten minutes | 0 after ~2 min | | frame time | 3.7 s growing to 10.2 s | 44.2 s | | host textures | 9741 MB (4004) | 9724 MB (4026) | Startup cost is now zero: `host pipeline library loaded bytes=407103334 ms=455`, `host pipeline created = 0`, `host pipeline refused = 0`. A second pre-build with warm caches takes 3 min 42 s in total, and none of it is compilation: ``` containers 25985 in 111.4 s: 25985 already cached, 0 translated, 0 refused pipelines 28164 in 109.5 s: 0 made, 1041 already in the library ``` ## The remaining drops are 165 shaders that do not translate `dropped 2534 without a host pipeline (0 being made)` - nothing is compiling, so those pipelines never will be: ``` 43 + 16 + 5 v_readfirstlane in divergent control flow is not supported 32 a 64-lane wave ballot in divergent control flow is not supported 39 LDS accesses without a uniform LDS fence in split wave64 is not supported 3 a register joining a lane mask and data, read as data is not supported 3 a wave reduction in divergent control flow is not supported ``` They cover the passes that draw the scene, so what is left on screen is HUD and post only: a black frame with a working audio track. Is #192 (LDS barriers plus the divergent-control-flow rewrite) the intended fix for all five, or is some of it expected to stay refused? ## Device removed, minutes later Three TDRs (`nvlddmkm 153`) in the same second, then: ``` host GPU device removed after a submission of 33 lists; no breadcrumbs (0x887A0004); GPU is not responding to more commands (0x887A0007) process exit = 0x887A0005 after 291 s ``` At that point host textures were 9724 MB on a 3 GB card and one frame took 44 s on the GPU. On this host the pipeline work is now free, so the wall is texture residency plus the 2 s TDR threshold, not translation. Is there a supported way to cap host texture residency (a mip drop, or a smaller streaming budget) that we should be using instead of raising `TdrDelay`? ## Series S, for contrast ``` textures 1559 / 2671 MB (fits the 3 GB) draws 9~10, root-view slots/frame 0, 30 fps, black from boot ``` `root-view slots/frame 0` looks like a separate issue: in that profile nothing is bound as a root SRV/UAV, so even the loading art never appears. If that is a known gap it probably deserves its own issue. ## Reproduction ``` victory.exe translate --cache --pipelines --jobs 9 # VICTORY_PREBUILD_EARLY_ONLY=1, VICTORY_WAVE64_EMULATE=emulate victory.exe run game_scarlett_master.exe --execute --console series-x ```
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:10:07 +00:00
Author
Owner

@⁠Ingenioeren on GitHub · 2026-11-25 18:38 UTC · original

On 13f91ca, the stock texture eviction policy checks the process's DXGI local-memory budget before the first submission of each presented frame. After subtracting free space already held in texture heaps, it starts pressure-based eviction above 90% and targets 85%. It can give up textures whose contents can be reconstructed from title memory. Render targets, depth textures, UAVs and textures with a host copy or resolve written into them stay outside that set. The thresholds are constants in this build. Eviction logic

I checked that limit with synthetic WARP textures. One 64 KiB title-fed sampled texture was eligible. A host-written texture of the same shape, a render target, and a texture without a title-memory key were excluded. When the selector was asked to reclaim 65,537 bytes, it could select only 65,536. That is one way usage can stay above the target even when eviction is active.

For the 9,724 MB figure, the most useful comparison would be the diagnostics lines beginning video memory: and host texture MB from the same frame. The first gives the local DXGI usage and budget separately from system memory. The second separates GPU-written textures from those fed by title memory. Those counters can identify whether texture eviction has room to work on this run. Diagnostics fields

AI-assisted. One synthetic test passed. No title files or live title run.

**@⁠Ingenioeren** on GitHub · 2026-11-25 18:38 UTC · [original](https://github.com/Marvisak/VIctory/issues/2602#issuecomment-7171196512) On `13f91ca`, the stock texture eviction policy checks the process's DXGI local-memory budget before the first submission of each presented frame. After subtracting free space already held in texture heaps, it starts pressure-based eviction above 90% and targets 85%. It can give up textures whose contents can be reconstructed from title memory. Render targets, depth textures, UAVs and textures with a host copy or resolve written into them stay outside that set. The thresholds are constants in this build. [Eviction logic](https://github.com/Marvisak/VIctory/blob/13f91caee25f2fdf2c062be5f7a27f058e51cbca/crates/victory-gpu/src/resource.rs#L1539-L1654) I checked that limit with synthetic WARP textures. One 64 KiB title-fed sampled texture was eligible. A host-written texture of the same shape, a render target, and a texture without a title-memory key were excluded. When the selector was asked to reclaim 65,537 bytes, it could select only 65,536. That is one way usage can stay above the target even when eviction is active. For the 9,724 MB figure, the most useful comparison would be the diagnostics lines beginning `video memory:` and `host texture MB` from the same frame. The first gives the local DXGI usage and budget separately from system memory. The second separates GPU-written textures from those fed by title memory. Those counters can identify whether texture eviction has room to work on this run. [Diagnostics fields](https://github.com/Marvisak/VIctory/blob/13f91caee25f2fdf2c062be5f7a27f058e51cbca/crates/victory-gpu/src/host.rs#L2865-L2899) _AI-assisted. One synthetic test passed. No title files or live title run._
Author
Owner

@⁠Marvisak on GitHub · 2026-11-25 18:47 UTC · original

Automated triage for the maintainers.

Run report: GTX 1060 3 GB, driver 32.0.15.8278, Windows 11. Thanks for the numbers. These results come from the PR #189 tree, not main. Main (13f91ca) has neither VICTORY_WAVE64_EMULATE nor VICTORY_PREBUILD_EARLY_ONLY, and none of the five refusal messages you list, so the drop counts cannot be compared with main.

  • Host requirements: the README lists shader model 6.6 and mesh shaders for the world. A Pascal card has no mesh shaders (and no FL12_2), so on this host the world is below the stated requirements regardless of the wave64 work.
  • Texture residency: in main, evict_unused in crates/victory-gpu/src/resource.rs gives up title-fed textures past 90% of the DXGI local budget, down to 85% (BUDGET_HIGH/BUDGET_LOW). These are constants, with no user setting. Render targets, depth targets, UAVs and host-written textures are not evicted.

What would settle it: a run of unmodified current main on this card, with the commit, how far it gets, and the video memory: and host texture MB diagnostics lines from the frame before the removal. The Series S "root-view slots/frame 0" observation would be better as its own issue, against main.


Generated by Claude Code

**@⁠Marvisak** on GitHub · 2026-11-25 18:47 UTC · [original](https://github.com/Marvisak/VIctory/issues/2602#issuecomment-7171402784) <!-- victory-issue-triage v1 verdict=needs-info seen=2026-11-25T18:38:44Z at=2026-11-25T19:18:00Z --> Automated triage for the maintainers. Run report: GTX 1060 3 GB, driver 32.0.15.8278, Windows 11. Thanks for the numbers. These results come from the PR #189 tree, not main. Main (`13f91ca`) has neither `VICTORY_WAVE64_EMULATE` nor `VICTORY_PREBUILD_EARLY_ONLY`, and none of the five refusal messages you list, so the drop counts cannot be compared with main. - **Host requirements:** the README lists shader model 6.6 *and mesh shaders for the world*. A Pascal card has no mesh shaders (and no FL12_2), so on this host the world is below the stated requirements regardless of the wave64 work. - **Texture residency:** in main, `evict_unused` in `crates/victory-gpu/src/resource.rs` gives up title-fed textures past 90% of the DXGI local budget, down to 85% (`BUDGET_HIGH`/`BUDGET_LOW`). These are constants, with no user setting. Render targets, depth targets, UAVs and host-written textures are not evicted. **What would settle it:** a run of unmodified current main on this card, with the commit, how far it gets, and the `video memory:` and `host texture MB` diagnostics lines from the frame before the removal. The Series S "root-view slots/frame 0" observation would be better as its own issue, against main. --- _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#2602
No description provided.