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
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory#2602
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?
@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
RockstarGamesInc.28872443D20A, TitleId7952987A,TargetDeviceFamily="Scarlett"VICTORY_WAVE64_EMULATE=emulate, plus both self-kill sites NOPed as described in #1118Pre-building the pipelines does remove the stalls
VICTORY_PREBUILD_EARLY_ONLYbuilds only the pipelines an earlier run drew with (<cache>/pipelines/early-pipelines.txt, 1924 entries) instead of the pack's 28,164:Effect at world entry, same profile, same GPU:
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:
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: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: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
root-view slots/frame 0looks 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
@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 logicI 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:andhost texture MBfrom 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 fieldsAI-assisted. One synthetic test passed. No title files or live title run.
@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 neitherVICTORY_WAVE64_EMULATEnorVICTORY_PREBUILD_EARLY_ONLY, and none of the five refusal messages you list, so the drop counts cannot be compared with main.evict_unusedincrates/victory-gpu/src/resource.rsgives 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:andhost texture MBdiagnostics 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