World renders black on RTX 3080 Ti: 32768 draws dropped for lack of dynamic descriptor slots #1496
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#1496
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?
@Ender1Dragon on GitHub · 2026-11-24 18:28 UTC · original
Environment
main@ 2026-11-24 (source zip), built withcargo build --release -p victory --features diagnosticsrust-toolchain.tomlpins1.98.1, which the mirror does not carry)v1.0.2.1Summary
The title boots, runs its menus, loads the world, and stays alive for a long time
(one run lasted 55 minutes). The world never draws anything visible: the
window is black apart from a thin column of coloured pixels at the left edge.
draws/framecounts in the thousands, so draws are being submitted - they arebeing dropped.
The dominant warning is not a shader-translation failure:
Load screens and 2D do render correctly (see What does render below), so the
texture, UI and present paths are fine. The gap is 3D only.
Reproduction
cargo build --release -p victory --features diagnosticsvictory.tomlwith onlygame_dirpointing at the dumptarget\release\victory.exe run "<dump>\game_scarlett_master.exe" --execute --unimplemented zeroMenus appear (black,
30 fps,10-11 draws/frame). With key presses(
VICTORY_KEYS=8:Enter,20:Enter,35:Enter) it proceeds into the world:Screen stays black. Within 60-180 s the host device is removed.
Evidence
Draws dropped for lack of dynamic slots
Per-frame profile (info level, first world frames)
So roughly half the draws have no host pipeline at all, and a further 32768 are
dropped for want of dynamic slots.
Shaders that do not translate (5, with hashes)
Device removal
31 command lists in one submission containing dozens of mesh pipelines exceeds
the 2 s TDR budget.
VICTORY_D3D12_WARP=1also ends inDEVICE_HUNG, so this isnot an NVIDIA driver defect.
Resource-state and PSO-library warnings
What does render
VICTORY_CAPTUREoutput across a run:That 1024th frame is a complete GTA VI loading illustration - sharp vector art,
gradients, decals, the lot. So the 2D/texture/present path works end to end; only
3D world rendering produces nothing.
What I tried (and it made things worse)
Since
descriptor/host.rsdocuments the cap:I raised them to
DYNAMIC = 1 << 20andPORTABLE_VIEWS = 4_000_000, expectingthe slot exhaustion to go away. Result:
30 fpsis not an improvement -10 draws/framemeans almost nothing is drawn.make(count + DYNAMIC)fails past the tier-3 limit of 1,000,000 shader-visibledescriptors, so both the
DYNAMICandMIN_DYNAMICpaths fail,HostHeap::newreturns
None, and every draw loses its heap. Reverting to the shipped constantsrestores the original behaviour.
So raising the constants is not the fix; the slot shortage needs more heaps or a
remapping layer, not a bigger single heap. Posting in case it saves someone else
the experiment.
Related
2^16 ran out seconds into the worldnote points at this sameexhaustion; this report adds a tier-3 NVIDIA data point and shows that raising
the constant fails on the 1,000,000 cap.
Minor:
rust-toolchain.tomlpins an unavailable toolchainrust-toolchain.tomlasks forchannel = "1.98.1", whichstatic.rust-lang.organd the Tsinghua mirror both return 404 for.
Cargo.tomlstatesrust-version = "1.88", so astabletoolchain builds the workspace fine(1.100.0 here). Changing the pin to
stable, or to a version that exists, wouldunblock anyone building from source.
Attachments
frame-1024.png- the loading illustration that does rendershot-world.png- the window at1 fps / 2645 draws/frame, world blackVICTORY_LOG=victory_gpu=debug,inforun log on request@pickles976 on GitHub · 2026-11-24 18:34 UTC · original
This report and the sibling project's deepest thread are two views of one state, and reading them together produces a test nobody has run yet. Your runtime hits "pipeline not compiled" 32,768 times during world render and survives by dropping the draws (black world, title alive); the sibling runtime's bind path, hitting the same state, waits until the build completes and the title's ~30 s fence turns that into a watchdog death. Same missing pipelines, two runtime philosophies, two symptoms — eternal black world vs polite null-write. The load-bearing fact yours establishes: the game actually binds these pipelines every frame (32,768 drops is proof of bind-time demand) — so "refusals are cosmetic" is dead on arrival: whatever xcl refuses is on the critical path by construction. Which gives the intersection test for free: ① your diagnostics build should be able to emit the identifiers (hashes/names) of the dropped pipelines — no content, policy-clean; ② the sibling has 19 named precompile refusals pending from its own reporter; ③ diff the two lists. A nonzero intersection names pipeline identities that kill one runtime and blacken the other, from existing logs, zero new runs — the fastest path from here to a targeted translator fix either side can merge. If the lists do not intersect, that is equally useful: your drops would then be slow-build transients, not refusals, and the two runtimes' problems stay separate.
@MichaelSmithAI on GitHub · 2026-11-24 18:51 UTC · original
The
no dynamic slots for its tables, dropped=32768line counts 32,768 rejected binds over the process lifetime. The binder already has a host pipeline when it reaches this counter. It increments once when a bind fails to reserve a contiguous range for a fresh descriptor table, then logs at powers of two. The per-frame “without a host pipeline” count in the report measures a separate failure. Intersecting the 32,768 milestone with a list of shader refusal hashes therefore cannot identify the missing draw. Counter and early return · Reservation failureFor a capture over the same world-frame window, the most useful numbers would be the requested contiguous span, the selected heap's dynamic capacity, total free slots, and the largest free span at failure. Those distinguish a full heap from a failed search with enough slots free. The pending/recovered slot counts in #911 would also show how many slots earlier declined binds retained.
@YaBulochka on GitHub · 2026-11-24 19:21 UTC · original
Linux/RADV confirmation that this is not NVIDIA-only: the same "world is black, UI draws" shape on AMD.
ffe310e+ #994 + #491The title reaches the intro (title cards draw) and the prologue's pause menu (28 draws/frame, 2 fps), but the 3D world is black while the 2D UI draws over it. The heap numbers match the report here: the title asks for 1,245,184 views, D3D12 gives 1,000,000, VIctory mirrors 934,464, so 310,720 slots are lost, and the warning names the range
index=934464..1245183. 61 draws are dropped "without a host pipeline", one line per pipeline.So the cap is not NVIDIA-specific: on RADV the portable limit is hit the same way.
I will build #1548 on this tree and report whether the world draws come back. If it helps, I can also give the two refused pipeline hashes with their stage and container size, since one of them (a small compute, 2556 bytes) is a candidate for the pass that assembles the presented frame.
@Ender1Dragon on GitHub · 2026-11-24 19:40 UTC · original
Your numbers close a loop - thanks for posting them.
count=1,245,184matches exactly what I measure on the NVIDIA side, from a completely different GPU, driver and OS. That number being identical across an RTX 3080 Ti on Windows and an RX 7600 XT under RADV means it is the title's fixed demand, not anything the driver talks it into.What your data settles
1. The cap is not vendor-specific. Agreed, and that is now demonstrated rather than assumed: same
PORTABLE_VIEWSmath, same lost tail, on a wave64-native driver.2. More importantly, you drop draws
without a host pipelinetoo - 61 of them. That is the part I did not expect. If the refusals came from a wave-size mismatch, RADV should refuse none, because RDNA runs 64-lane subgroups natively and vkd3d-proton acceptsrequiredSubgroupSize=64. It refuses anyway. So whatever produces those refusals is not lane width.There is a detail in the original #71 analysis worth flagging:
0x80070057isE_INVALIDARG, which is an argument validation failure, not a capability code. It has been read in that thread as evidence about hardware, and your result suggests it should not be.What would help most, in priority order
First, the exact refusal line for those 61 draws. Whatever VIctory prints per pipeline -
no host pipeline: <reason>or a translation error - with the stage and hash. If I can diff those against my 115 broken-out compute hashes, an intersection names a shared trigger; no intersection means the two problems are separate and both threads should stop cross-referencing.Second, and this is the fork I actually care about: for the two refused pipelines you mentioned, do you have the HRESULT and the failing descriptor index? Specifically:
E_INVALIDARGfor them too, then the wave-size reading of #71 is dead and both drivers are rejecting on the same non-hardware grounds.Either answer resolves it. A hash alone does not - it tells us which pipeline, not why.
Our #1548 result, so you know what to expect
I built the branch on the NVIDIA machine (RTX 3080 Ti, driver 32.0.16.2101, Windows 11 build 26300, release+diagnostics). For comparison, my instrumented main build reported the first slot failure as:
One short of the request, with 482 slots free but no run longer than 10 - fragmentation plus the shrunken
MIN_DYNAMICregion, not a full heap. After the PR:Bind rejections went from 32768 to zero, and captured frames grew from a 1.8 MB peak to 4.1 MB. The 3D world is still mostly black. So the heap cap was a real blocker and the PR removes it, but it is not what darkens the world - that stays on the refused-pipeline path.
Worth knowing before you rebuild: the PR lowers
countfrom 934,464 to 737,856 while raisingdynamicto 262,144 (same 1,000,000 total). The addressable window shrinks by 196,608, so more indices go through the remap path. On my run that was fine, but a tree with #994 + #491 might exercise indices mine never touches. If you see new out-of-range complaints after applying it, that rebalance is the first place to look.@Revens2 on GitHub · 2026-11-24 21:46 UTC · original
publish: branch for #1496
Branch: https://github.com/Revens2/VIctory/tree/work/issue-1496
Commit: 901584d5
Tests:
Refs #1496
Branch: https://github.com/Revens2/VIctory/tree/work/issue-1496
Commit: 901584d
Base:
70564aeupstream/mainTests (run on this machine):
AI-assisted: yes (harness victory-ops); reviewed by a second model before publishing.
Refs #1496
@Marvisak on GitHub · 2026-11-25 10:22 UTC · original
Automated triage for the maintainers.
Thanks for the run report (RTX 3080 Ti, driver 32.0.16.2101, Windows 11 26300, world reached and held, black, then
0x887A0006). The commit is missing, because a source zip has none. Please give it next time (git rev-parse --short HEAD, or the date and time of the zip).The
no dynamic slots for its tablesdrops come from the capped view heap.HostHeap::newincrates/victory-gpu/src/descriptor/host.rsfalls back to 1,000,000 views with only 2^16 (MIN_DYNAMIC) dynamic slots when the title asks for 1,245,184. That defect is confirmed and tracked in #747. Open PRs #1349, #1548 and #1751 address it, and your #1548 result (no slot drops, world still mostly black) is useful there. Slots kept by rejected binds are #911. The device removal after a multi-second submission is the NVIDIA world hang tracked in #71.The fork branch
work/issue-1496(901584d, on70564ae) was posted above. Pull requests are open to everyone. If it differs from #1548 and #1751, please open one.On the toolchain: many reports here build with the pinned 1.98.1 through rustup, so a mirror that lacks it is a mirror problem.
Generated by Claude Code