NVIDIA capped view heap: 2^16 dynamic slots starve world tables; 2^18 removes the indirect/mesh drops #747
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#747
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?
@Vaximous on GitHub · 2026-11-24 09:27 UTC · original
On NVIDIA the shader-visible view heap is capped at 1,000,000. An RTX 4070 Ti on binding tier 3 refuses 1,000,001, so a bigger heap is not an option.
HostHeap::newthen falls back toMIN_DYNAMIC = 1 << 16dynamic slots (crates/victory-gpu/src/descriptor/host.rs). With GPU-driven world rendering that pool runs dry inside every submission. Most of the world's indirect draws and mesh dispatches are then dropped as "a descriptor table without dynamic slots", which leaves the G-buffer nearly empty. The comment onDYNAMICalready notes that 2^16 ran out on an RX 9070 XT (#59). On a capped heap that is still the amount it gets.Measured (RTX 4070 Ti, Windows 11, title build 1.0.2.1, local integration branch = main + many open PRs)
Proposed change
MIN_DYNAMIC = 1 << 18(or the capped path usesDYNAMIC). The cost is that bindless reads of title indices above about 672k land on the null/guard slot instead of above about 869k. In this title no draw was refused as past the heap after the change.A second, independent saving: a fresh table only needs slots from the first entry its shaders actually use, not from entry 0. Large tables (more than 64 entries, about 140 slots each) where shaders read a few entries made up about 90% of the demand.
I have this on a local branch with tests (
a_reserve_keeps_dynamic_slots_for_required_tables,fresh_tables_start_at_their_first_used_entry). I can't open a PR while PR creation is limited to collaborators, but I'm happy to provide the diff.Related: #16 (1M heap cap on NVIDIA), #336 (2^18 dynamic slots where the heap fits), #735 (a 1.31M heap on an RTX 4060 Laptop).
@FADZIII on GitHub · 2026-11-24 09:44 UTC · original
Another data point from an RTX 5060 Ti (driver 32.0.16.2135, Windows 11, title 1.0.2.1), on main at
8e79c80with no other patches, diag build with DRED. One run each, scenes not matched, so treat the averages as rough. This was tested and written with an AI assistant.1 << 16)MIN_DYNAMIC = 1 << 18Averages are over the log's fps lines in the world (14 and 8 samples).
The change removes the slot drops here too. Most indirect drops remain, and I have not separated out their causes. I did not compare image quality.
It does not fix the device removal: both runs ended with 0x887A0006 in the world. On main, nvlddmkm logged an SM Warp Exception (MMU Fault), and DRED pointed at mesh
ba9865c71b8d1947. A third run on main, skipping that shader, was also removed, with DRED pointing at an indirect mesh draw (09c742c58e9acb62), so it does not look like one shader. The1 << 18run and the third run logged nvlddmkm event 153 but no MMU fault.I can share logs if useful.
@LAKSHYA-cmd-tech on GitHub · 2026-11-24 10:00 UTC · original
Implemented and verified on branch:
https://github.com/LAKSHYA-cmd-tech/VIctory/tree/fix/gpu-descriptor-heaps-caps-and-dynamic-expansionMIN_DYNAMIC = 1 << 18(262,144) for capped view heaps.PORTABLE_VIEWS = 1,000,000).large_view_heap_is_capped_at_portable_limitverifying that dynamic slot capacity expands toMIN_DYNAMIC(2^18) while respectingPORTABLE_VIEWS.@YouKnowWh on GitHub · 2026-11-24 10:09 UTC · original
Independent RTX 5070 Ti comparison on the #439-based local diagnostic build. Both runs used the same executable, copies of the same initial game data and application caches, physical controller input and the 1,000,000-view cap. Only the dynamic reserve was switched: 65,536 (934,464 mirrored) vs 262,144 (737,856 mirrored).
The baseline logged at least 32,768 slot-exhaustion drops by its end. The larger reserve logged none, including zero at all three instrumented frame boundaries. The observer could see the Rockstar Presents title card in the larger-reserve run. The sample schedule was relative to the first frame with >=200 host draws; the runs were not aligned by camera or identical game frames.
At the third sample the small depth attachments contained 23,216 non-endpoint D16 samples across 5 attachments (baseline), vs 11,785 across 2 (larger reserve). These totals across attachments are not unique screen pixels. Our probe identified the main 2560x1440 depth views but did not decode their depth-plane layout. No claim of increased world geometry coverage. Both runs subsequently reported DEVICE_HUNG. This independently corroborates the dynamic-slot exhaustion result without establishing a hang or scene fix. AI-assisted measurements and report.
@desplmfao on GitHub · 2026-11-24 10:23 UTC · original
Same result on an RTX 5080 under Linux: AMD Ryzen 9 9950X3D, CachyOS, proton-cachyos 11.0 with vkd3d-proton, title 1.0.2.1. The stack was Marvisak/VIctory#185 merged with current
mainplus #493, #489, #178, #259, #177, #151. The log showshost view heap capped at 1000000 … count=1245184. I tried the split with a diagnostics-only switch that sets the capped heap's dynamic size and gives the title the rest:a draw or dispatch dropped: no dynamic slots for its tablesindirect kind 10: prepare failed (mesh true)What remains dropped after that are compute programs that don't translate (
a structured buffer of unknown stride,a root UAV or typed root view).One concern with 2^18, from matheushagedorn's comment on #71: shaders that index the view heap directly with title indices read dynamic slots for any index at or above the title portion. That boundary moves from 934,464 down to 737,856 with this split. In this title's writes I haven't checked how many indices fall between the two. The NVIDIA
Xid 109hang I see 30 s to 4 minutes into the world occurs with both splits, and there's noXid 13before it in my kernel log. So I can't tie it to either split, but a split that keeps the title's used range intact, or reclaiming slots as in #688, may be safer than a fixed 2^18.AI-assisted (Claude Code).
@NuraadGit on GitHub · 2026-11-24 11:23 UTC · original
Same result on an RTX 2080 (Turing), Windows 11: 2^18 dynamic slots fill the colour G-buffer in the world.
Build: diag of JMAN730's fork merged with #493 + #189 + #206 (the set that keeps the world up on NVIDIA, see #71), plus a low-4 GiB guard (#790). The only change between the two runs is
MIN_DYNAMIC = 1 << 18. Both runs:VICTORY_SHADER_LOOP_LIMIT=32, DRED, Enter-only input, 8 minutes, no device removal in either.no dynamic slots for its tablesdropsGetWriteWatchon this machine, so I'll measure that part again without it.caa78b8ca62bc3d6,28918b7150a7aad5), an address in an SGPR that is no root parameter (f6e47efa50226beb,3b90165a77d95cdf), and meshef5409053e14aa82(a lane mask read as data).+1 for merging the 2^18 split for capped heaps. On this card it's the difference between an empty G-buffer and a filled one.
AI-assisted (Claude Code): the builds, runs and image analysis were automated. The hardware, title copy and runs are the user's.
@dcastell1 on GitHub · 2026-11-24 11:34 UTC · original
Tried the change on this box (RTX 5090, driver 621.24, Windows 11 10.0.26300, Rust 1.98.1, debug):
MIN_DYNAMIC = 1 << 18incrates/victory-gpu/src/descriptor/host.rsbuilds, and with #334 and #24 applied the workspace is 346 passed, 0 failed, 6 ignored (main@ffe310e is 342). So the 2^18 path is clean on a Blackwell card that is not heap-capped — no assertion inHostHeap::newtrips and nothing else changes verdict.What I cannot report is the effect on the G-buffer: no retail package on this machine, so the draws/frame and the drop counts still have to come from a card that runs the title. If someone with a 5090 and the package runs it, the command line in #340 with
VICTORY_DUMP_TARGETS=1andVICTORY_GPU_TIMING=1gives exactly those numbers.AI-assisted (opencode).
@giacbiologicbomb on GitHub · 2026-11-24 11:44 UTC · original
RTX 5070 (Blackwell, 32-lane waves): world no longer hangs the GPU with #578 + 2^18 dynamic view slots, but most of the scene is still dropped
Setup
b99f876b74d4a77f03af5f878223b27bd647b5c35a79d5decd9f716504239e93mainatffe310effe310e+ #578 (applied from its patch) +MIN_DYNAMIC = 1 << 18indescriptor/host.rs(the change proposed in #747). Nothing else.ffe310e. Run B:--profile diag --features diagnosticsof the local branch,VICTORY_D3D12_DRED=1.cargo test -p victory-gpu --libon the local branch: 52 passed, 0 failed, 1 ignored.Result (same machine, same title)
ffe310e0x80070057DXGI_ERROR_DEVICE_HUNG(0x887A0006) about 5 min into the world;nvlddmkmevent 153 twiceno dynamic slotsdropsWhat is still missing in B: the screen shows only the prologue text/images, not the 3D scene. Per frame the host draws ~94–313 and drops ~580–1,025 "without a host pipeline", plus ~1,050–2,340 indirect. The two reasons logged once are a wave64 mesh program and a wave64 compute program on a host without 64-lane waves (
mesh d4111a6e6ea49d91/pixel c0a7fe77b1862e10,compute 13dfdd3b1136e407); the larger drop counts per hash are in the per-framedropped N/frame ... refused [mesh ...]lines.Not tested: #189, #233, #439 or any other wave64 emulation PR; the debug layer; GBV. I did not check the "GPU Loc Sig" crash from xcl#505 and this does not claim anything about it.
Logs available on request (they contain local paths, so I'm not attaching them as they are).
@MrCloudy2 on GitHub · 2026-11-24 11:50 UTC · original
Another NVIDIA data point, RTX 3060 12 GB under Linux (driver 620.73.04, CachyOS, Proton-CachyOS 11.0 wine with vkd3d-proton 3.2.0), own 1.0.2.1 copy. The log shows the same cap:
host view heap capped at 1000000 … count=1245184.Build: diag of
main8e79c80+ #151 #190 #454 #493 #579 #160 #539 #571 #393, #177's key fix, and the wave64 stack via #439. The only change between the two runs isMIN_DYNAMIC = 1 << 18. Both runs used scripted Enter-only input and the same caches. World frames are the host report lines with more than 300 draws:no dynamic slots for its tableslinesShort runs, so treat the averages as rough. The doubling of draws run matches the reports above. On this card frame time is dominated by the per-submission refresh work either way.
AI-assisted (Claude Code); run and measured on the machine above.
@undeadhuman37 on GitHub · 2026-11-24 12:28 UTC · original
RTX 4070 SUPER (driver 621.01, Windows 11 26200, i7-14700K) data point. With 2^18 dynamic slots and wave64 compute refused, the world no longer hangs. Release build of
mainatffe310e, plus the changes below. Same title build (1.0.2.1), same save, same machine for all three runs.main(65,536 dynamic slots on the capped heap)no dynamic slotswarnings (up to 4096 dropped), then a 5.2 s submission and device removed (0x887A0006) about 2 min in (around frame 1138)PORTABLE_VIEWS - DYNAMIC, DYNAMIC)no dynamic slots, but 118 slow submissions (~250-300 ms), then 5.2 s and device removed about 8 min in (around frame 1800)no dynamic slots, 0 slow submissions, no device removal after 14+ min. ~3 fps, ~420 draws/frameSo on this card the 2^18 reserve stops the drops, but by itself it only delays the hang. The remaining hang lines up with wave64 compute programs running as 32-lane waves. Host reports
wave lanes min=32 max=32.The third change, local only, in
wave_lanes_unsupported:This is a stopgap, not a fix: it drops that compute work, and the scene is still mostly missing. It does suggest wave64 compute on 32-lane hosts is the remaining cause of the NVIDIA world hang, after the dynamic slots.
(Tested with AI help. No game files or game-content logs attached.)
@AimLogin on GitHub · 2026-11-24 13:20 UTC · original · edited 2026-11-24 13:24 UTC
A patch for this issue, with synthetic tests that cover the capped case without requiring NVIDIA hardware: [AimLogin/VIctory#1](https://github.com/AimLogin/VIctory/pull/1) (in my fork, because upstream PRs are currently collaborator-only; meant for review and cherry-picking).
The heap layout is the standalone commit
[3e3b8c5](https://github.com/AimLogin/VIctory/commit/3e3b8c5841213fbd316a0875c06c5f85cb5200c2)onmainatffe310e, changing one file. The second commit[cc449ca](https://github.com/AimLogin/VIctory/commit/cc449ca941abea558dc56271c10f7ce0459ab66a)adds the bindless bounds discussed below and in #483.Thanks to @Vaximous for the diagnosis and the 2^18 proposal, to @hophaver for #336, which this builds on, and to everyone who measured it in the world: @FADZIII, @YouKnowWh, @desplmfao, @NuraadGit, @MrCloudy2, @giacbiologicbomb, @undeadhuman37, and @dcastell1 on an uncapped 5090. I have no world run of my own; the drop numbers in this thread are theirs.
Heap layout
view_layoutimplementationcount + 2^18retains the existing heap split.count + 2^16keeps the old split if the larger allocation fails.The difference from the alternative layouts linked here is that uncapped hosts and title heaps that fit are not unnecessarily cut. A test checks the new split against a copy of the old implementation for caps of 900k, 1M, 1.31M, 1.4M and no cap.
Measured on an RTX 4060 Ti (driver 621.01)
The device refuses 1,000,001 views. WARP accepts 2,000,000.
maingives 934,464 + 65,536; this gives 737,856 + 262,144 before guard reservation.-D warningspassed with and without--all-features.Four differential tests require an Xbox SDK compiler that was unavailable, so their actual differential checks were not performed.
Why it should land together with a bindless bound
Direct heap reads (
ResourceDescriptorHeap[i]with a title index) are not bounded on the testedmainrevision.On a 1M-capped host, title indices at or above the title-slot count can read dynamic slots holding other draws' tables. With this layout, that window starts at 737,856 instead of 934,464, the concern @desplmfao raised above.
A synthetic GPU readback test demonstrates such an access writing into another draw's UAV on both the RTX 4060 Ti and WARP.
The second commit bounds direct title accesses to the title-slot range and redirects out-of-range accesses to typed null guards. Table-rooted accesses remain bounded by the guard base, not by each individual table's length.
This builds on @Vaximous's guard scheme in #483. Further integration details are documented in the linked patch.
Known limitations
The patch is offered for review, integration or cherry-picking, whichever the maintainers prefer.
AI-assisted (Claude Code); the tests described above were run locally. No game files used.
@Machad3x on GitHub · 2026-11-24 13:53 UTC · original
Confirmation on an RTX 3080 Ti (fork Machad3x/VIctory, 32-lane waves, wave64 mesh allowed with a diagnostics switch, #452 merged): with MIN_DYNAMIC = 1 << 18 a 4-minute world run logs no 'no dynamic slots' drop (it logged 9 with 2^16 in a 5-minute run), 3545 draws per frame. About 4200 per frame are still dropped without a host pipeline and 128 'title slot past the host heap' warnings appear (indices 937169..945361 against count 934464 with 2^16; the 2^18 run still logs them), and the screen stays black.
@timorjay on GitHub · 2026-11-24 14:32 UTC · original · edited 2026-11-24 15:26 UTC
RTX 5090 D v2, Windows 11, retail 1.0.2.1. On this machine the 65,536-slot reserve filled during the first mission. With 262,144 slots reserved, the same game heap used up to 151,326 simultaneously and served every request through the end of the 112-present test.
One run per setting, larger reserve first. Both used the same executable, timed menu inputs, initially empty application data and shader caches, normal presentation, and the same diagnostic loop limit of 32. Host driver 32.0.16.1742, offline Windows Sandbox. Both runs logged a 1,245,184-entry title view heap capped at 1,000,000. Only the dynamic reserve at that fallback was switched. The source was main
8e79c80plus #493c48b240, #189d0fd9bf, #20605981dd, and #638ed63baa.A draw can request more than one table. The first world-culling bind was at frame 3346 with the smaller reserve and 3368 with the larger reserve. These align entry into the workload. The camera poses differ. At age +8 a 2560×1440 RGBA8 scene target had 1.05% and 6.70% of its sampled pixels more than 8 levels from the most frequent RGB in any channel. These describe individual snapshots. The change in scene coverage at an identical camera pose remains unmeasured.
The larger-reserve run showed a utility pole and overhead wires in an intermediate colour target. At age +112 a single-channel target showed wheel shapes, streetlights and small human silhouettes while the final output was black. The run exited normally at the planned stop. The 65,536-slot run's last recorded present was +87 and Windows Sandbox reported unexpected termination (
0x80370106). The cause of that exit remains open. Normal presentation did not show a controllable character in either sample.The per-present CSV, a build-checked portable counter patch, and the measurement method are available in the data and probe. Codex assisted with instrumentation, testing and the write-up.
First-mission follow-up on the same RTX 5090 D v2. I tested the copy-back changes from #991 in four launches with the 262,144-slot reserve. In baseline / candidate / candidate / baseline order, the first 48 world presents took 43.35 / 42.72 / 50.97 / 43.92 seconds. Draw and dispatch counts varied by launch. In a separate baseline observer, 15,653 accepted copy-back ranges over 61 completed presents compared 12.60 GiB. Grouping by buffer within each submission produced exactly the same byte total after taking the interval union. I found no additional overlap to remove in that capture. The PR also changes other costs.
The observer lost the D3D12 device after a 15.194-second wait. The host recorded a video-engine timeout. DRED placed the progress marker at operation 682 of 755 in a mesh dispatch region, while the current formatter listed only 610–632. A CPU-only test with synthetic labels and the observed interval boundaries confirmed that #279 includes operation 682. The original report leaves the shader at that location unresolved. Four timed runs and the observer all used normal presentation. I have not reached character control.
Per-present counters, observer results, board telemetry and test details.
@justlovett0 on GitHub · 2026-11-24 16:06 UTC · original
A data point on the proposed
MIN_DYNAMIC→DYNAMICchange, on a capped NVIDIA heap (RTX 3080 10 GB, driver 621.24, Windows 10 21H2 19044.7846; build =mainffe310e+ #175 + #994, retail GTA VI 1.0.2.1):The capped path fires as described: title view heap
count=1245184, host refuses above 1,000,000.So the constant alone shifts the starvation on this build: fresh tables get their slots, but the smaller mirrored range leaves more of the title's ~1.1M written slots outside it, and those bindless reads land on the guard slot. The world picture stayed black either way; with #994's
VICTORY_SHOW_TARGET=2560x1440-f28-3the G-buffer geometry is visible (street, moving assets) in both runs.This matches the note that your measurements were on an integration branch with more pieces: the second saving (fresh tables reserving from their first used entry) looks load-bearing – with ~90% of the demand gone, a smaller dynamic pool could coexist with a larger mirrored range – and the heap-index clamping PRs (#955 / #584 / #483) likely handle the high bindless indices.
If you can share the diff (you mentioned PR creation is collaborator-limited), I can test it on this machine and report the counts; happy to carry it into a PR with you as author if that's easier.
AI use: Qwen Code (underlying model name not disclosed by the tool) ran the builds, extracted the counts and drafted this comment at the user's request.
@FADZIII on GitHub · 2026-11-24 16:37 UTC · original
RTX 5060 Ti follow-up (driver 32.0.16.2135, Windows 11, title 1.0.2.1), tested and written with an AI assistant.
Build: diag of
ffe310e+ #578 +MIN_DYNAMIC = 1 << 18+ @undeadhuman37's stopgap (wave64 compute also refused on 32-lane hosts). Enter-only scripted input, DRED on, fresh caches.Result: no device removal in 12 minutes (about 11 in the world; I stopped it), no nvlddmkm events, 0
no dynamic slots. My three earlier runs on8e79c80were all removed with 0x887A0006.World averages over 119 log lines: 2.4 fps, 532 ms/frame (303 preparing, 56 on the GPU, 42 copying back), 274 draws/frame, 2,690 dropped without a host pipeline and 3,769 indirect.
One run, and I did not run unmodified
ffe310eor each change alone, so this does not separate their effects. I did not check image quality.@urattems on GitHub · 2026-11-24 17:32 UTC · original
RTX 5070 (desktop), Windows 11: #578 +
MIN_DYNAMIC = 1 << 18stops the world hang. Frame time is then mostly copies, not GPU.Setup
--profile diag --features diagnostics),VICTORY_D3D12_DRED=1, controller input, the same caches for every runhost wave lanes min=32 max=32;host view heap capped at 1000000 ... count=1245184(0x80070057)Before and after
mainatffe310effe310e+ #578 +MIN_DYNAMIC = 1 << 18(nothing else)no dynamic slots, 0past the host heap, 0slow host submission.DRED on
main(the hang)The list stopped at command 1506 of 1900 (op 5). The hanging command is an indirect mesh draw (kind 10, max 1) with
[mesh f5804c93b00ea73e, pixel 05d9b48068ff972a]. Its user-data heap indices arenullslots:u8heap 327680,u9heap 877882,u10heap 877878. Every list after it shows 0 commands done. This matches the "mesh draw reading null heap slots" pattern in #1216.World with the patch (107 report lines)
The GPU itself takes about 50 ms per frame. Most of the frame time is the copies of title memory before submission.
What you see on screen: the intro's credit cards and pre-rendered images render. There are no characters or scene geometry, and the screen eventually stays black.
What is still missing
shader does not translate. The most common reasons:image_gather4_lThese results match the earlier RTX 5070 report in this thread, which was on another machine (Ryzen 9900X, driver 32.0.16.2124).
Tested and written with an AI assistant.
@MrEjecutor on GitHub · 2026-11-24 17:58 UTC · original
RTX 5060 Ti, layer by layer on
ffe310e: #578 alone still hangs half the runs here; withMIN_DYNAMIC = 1 << 18on top, none of 4 didFollowing @FADZIII's run above (same card, all changes at once): the same stack, one layer at a time, plus #322, alternated runs, so each change's share shows. Branch with the layers as commits: https://github.com/MrEjecutor/VIctory/tree/nvidia-integration (
d1eadf9= #578,f4f27ee= + theMIN_DYNAMICchange,447757d= + #322).Setup: RTX 5060 Ti 16 GB, driver 621.24; Intel Core Ultra 5 225F; 32 GB; Windows 11 Pro 26200; diag builds (
--profile diag --features diagnostics), Rust 1.100.0 (not the pinned 1.98.1);--console series-x;VICTORY_KEYSEnter every 10 s from 14 s;VICTORY_D3D12_DRED=1on the layer runs; 240 s per run, stopped if still running. "World" = frame-rate lines under 5 fps after 20 s.mainffe310ed1eadf9MIN_DYNAMIC = 1 << 18f4f27ee447757d0x887A0006) both come right after a ~505 ms "slow host submission" of one list, and 12 compute pipelines are in both of those submissions:010a50ce68d02c16,1547305c505a7559,1ea7e2dbf731c8dc,25c5ee5063e1a41f,44bb2d65d51ba5d1,5b6eed17c131f881,5da83868971acee9,8080af82aaac33df,9aa3629668b8e7ab,ae83305f523f4b1b,e35b7de6a9d2bfd4,ee26678cdf63cf32. In the run with DRED on, every breadcrumb list reads2/2(done).cargo test --workspace --lockedonffe310e: 342 passed, 0 failed, 6 ignored (not rerun on the layers).copiesin some samples (53 ms vs ~215 ms) but not the median frame rate here.Not tested:
MIN_DYNAMICwithout #578; #322 without the other two; Series S; more than 2–4 runs per layer, so a hang rarer than that would not show; AMD.AI use: Claude Code (Claude Opus 5.5) built the layers, ran the title, summarised the log lines and wrote this; checked by mrejecutor.
@CrooLyyCheck on GitHub · 2026-11-24 18:01 UTC · original
RTX 5080 on native Windows 11 with the minimal stack (
ffe310e+ #578 +MIN_DYNAMIC = 1 << 18, nothing else): no hang in 844 s in the world. The 3D scene is still black.host wave lanes min=32 max=32andhost view heap capped at 1000000 ... count=1245184.d1eadf9(its head before the later push tofb7facd), merged locally ontomainffe310e;MIN_DYNAMICchanged to1 << 18. Diag build,VICTORY_D3D12_DRED=1, empty shader cache, Xbox Series 1.0.2.1 (build unknown (b99f876b…)), Series X mode.cargo test --workspace --locked: 344 passed, 0 failed, 6 ignored.ffe310e0x887A0006after 117 s in the world;nvlddmkm153 (TDR)ffe310e+ #5870x887A0006after 33 s in the world; TDRffe310e+ #578 +1 << 18nvlddmkmevent, no newcrashes.logentryWith the stack applied, in the world:
no dynamic slots, 0past the host heap, 0slow host submission.victory.exe: 13.8 GB working set, 25.6 GB private.On screen: the credit cards and dialogue subtitles render, and the story advances to the prologue's second time-skip card. The in-game pause menu, photo mode and settings open and work with pad input. There is no scene geometry: the 3D stays black, as others report above.
@neonbyte1 on GitHub · 2026-11-24 18:14 UTC · original
A data point from Linux: Wine 11.22 + vkd3d-proton (GE-Proton11-14), RTX 5090, driver 620.73.04, title build 930.048.020. The heap cap is the same there:
host view heap capped at 1000000 error=Invalid parameter. count=1245184.The change I applied is the second variant: the capped path uses
DYNAMIC(PORTABLE_VIEWS - DYNAMICtitle slots mirrored, i.e. 737,856, and 262,144 dynamic). The run before it used 2^16 dynamic slots.Each run lasted 7 minutes in the first mission, with a diagnostics build. The change landed together with #439, #953 and #1129, so these are only the slot-related lines:
indirect kind 2: prepare failed (compute true)indirect kind 1: prepare failedindirect kind 0: prepare failed(rectangles, not slots)The per-frame figures below are medians over frames with more than 1,000 draws; the other merges also contribute to them:
One difference from your result: the G-buffer here still shows only props (tables, lamps, power lines) in the first mission, not terrain or cliffs. That could be the area the camera is in, or drops that remain in this stack (mesh-stage and compute translation failures). I haven't narrowed it down yet.
AI-assisted (Claude); runs on my machine, no game data shared.
DXGI_ERROR_DEVICE_HUNG/0x887A0004/0x887A0006#1440DXGI_ERROR_DEVICE_HUNG/0x887A0004/0x887A0006#1440@ThomasHFWright on GitHub · 2026-11-24 18:54 UTC · original
Controlled Linux/RTX5090 comparison of the capped-path variant:
PORTABLE_VIEWS - DYNAMIC, DYNAMICin the fallback tuple, reserving262144 temporary slots instead of65536. This removes the allocation warnings here, but is not a complete rendering/stability fix.Setup: CachyOS7.3.6, NVIDIA620.73.04, Wine11.22, vkd3d-proton3.2.0
30b0eb9bc12dc9f, Rust1.98.1 MSVC cross-build. Baseproton-fixes993dff8+ #852 + #454 + #206, retained bounded-fence/timestamp/descriptor diagnostics. Both runs haveVKD3D_DISABLE_EXTENSIONS=VK_NV_raw_access_chains, default loop limit, no shader skips, debug pixel shader andVICTORY_SHOW_TARGET=2560x1440-f28-3. #1024 is not in these runs.no dynamic slotscounter reached32768The capped run's live thread samples identify the #774 lookup-spin signature: one title worker consumes about one CPU core, with instruction pointers at
title+0x50eb826and+0x50eb81fin separate read-only gdb attachments. Other threads mostly wait. So the600s lifetime is not600s of advancing world rendering. This does not establish that changing the pool caused the spin; #774 already reports it intermittently on other stacks.128 wave64 refusal messages remain, along with untranslated mesh/compute programs. Reducing allocation failures does not restore those producers. No controlled movement or normal shaded scene established. Diagnostic timing is not a benchmark.
Candidate checks: full Windows workspace347passed/2unchanged Wine harness failures/7ignored across14executables; diagnostics GPU58/0/1; all-target/all-feature Clippy -Dwarnings and native asset policy pass. Harness failures remain nested Linux cargo in load_probe and Linux git from Wine. Four shader differential tests still early-return without compiler tools.
Runtime extension workaround and baseline details: #844
AI-assisted with Codex; offline runs, app-only mute, read-only game input. No title code, shaders, buffers or screenshots attached.
@BitWuehler on GitHub · 2026-11-24 20:06 UTC · original
Linux + Proton + NVIDIA RTX 5080 (driver
620.73.04) data point forMIN_DYNAMIC = 1 << 18(PORTABLE_VIEWS - MIN_DYNAMIC=737,856mirrored slots,262,144dynamic slots):Setup: CachyOS (
Linux 7.3.6-1-cachyos), Ryzen 7 9800X3D, 60 GB RAM, RTX 5080 16 GB (host view heap capped at 1000000 ... count=1245184),GE-Proton11-14viaumu-run(VKD3D_DISABLE_EXTENSIONS=VK_NV_raw_access_chains), retail1.0.2.1,--console series-x,diagbuild,VICTORY_DEBUG_PS=1,VICTORY_SHOW_TARGET=2560x1440-f28-3,VICTORY_NO_WATCHDOG=1.(Note: between the two runs on this box,
#206was also swapped for#1260+#1267, so frame-time changes are combined; the slot drops and draw-count jump below directly reflect the2^18dynamic reserve.)draws >= 100)2^16dynamic (934,464mirrored)2^18dynamic (737,856mirrored)"no dynamic slots"warnings160draws/frame(median / max)1,076/4,6392,076/5,662title slot past the host heapwarnings310,720507,3280/0/00/0/0Visually, the debug-shaded world geometry is noticeably denser with
1 << 18, matching the ~2× increase in executed draws/frame, with no refused tables or device loss across ~4.5 min of active world rendering (before a silent title hang atframe=1443,0DRED/Xid events).AI-assisted log analysis and summary; built and run locally on my own retail copy, no game files or raw logs attached.
@adnanoos on GitHub · 2026-11-24 22:08 UTC · original
Confirming on an RTX 5060 Laptop GPU (Blackwell): with the 2^16 reserve, over 1,048,576 draws were dropped for lack of dynamic slots in ~5.5 minutes of world, and the G-buffer stayed nearly empty. With #1349's 2^18 reserve: 0 such drops, draws per world frame 897 → 2,401, and the G-buffer holds the scene (furniture, a sign, overhead lines). The final output is still unlit. Numbers and setup are on #1349.
@tatazildo on GitHub · 2026-11-25 00:26 UTC · original
Environment
3dce4baFull sequential workspace test results
All five failures were subsequently reproduced individually in separate processes using
--exact --test-threads=1 --nocapture.GPU test failures
descriptor::host::tests::dynamic_slots_are_held_until_releasedLocation:
descriptor/host.rs:1418Assertion:
memory::tests::lists_share_a_table_and_copies_keep_their_viewsLocation:
memory.rs:673Shader test failures
emit::stride_tests::a_heap_buffer_read_by_element_takes_the_views_strideLocation:
emit/stride_tests.rs:293emit::stride_tests::a_heap_buffer_read_where_no_buffer_view_is_reads_zerosLocation:
emit/stride_tests.rs:343emit::synthetic_tests::gathers_at_a_level_match_the_hardwareLocation:
emit/synthetic_tests.rs:261Additional observations
Both complete and isolated test logs are available.
AI disclosure: ChatGPT assisted with test procedures, diagnostic analysis and preparation of this report. All tests were performed on my own hardware.
@Marvisak on GitHub · 2026-11-25 03:50 UTC · original · edited 2026-11-25 21:45 UTC
Automated triage for the maintainers.
Still confirmed on current
main(61bfc77). Incrates/victory-gpu/src/descriptor/host.rs,HostHeap::newfalls back tomake(count + MIN_DYNAMIC)and then to thePORTABLE_VIEWScap withMIN_DYNAMIC = 1 << 16when the host refusescount + DYNAMIC(NVIDIA's 1,000,000-descriptor limit for a 1,245,184-slot title heap). The comment onDYNAMICitself records that 2^16 ran out in the world. The thread has independent measurements on many NVIDIA cards, on Windows and on Wine: with 2^18 on the capped path, theno dynamic slotsdrops go to zero and roughly twice as many draws run. It is not a hang fix by itself. Several runs still lost the device until wave64 programs were also refused on 32-lane hosts (#578, tracked with the NVIDIA hang in #71).Merges since the last triage do not change this: #1273 (placed unordered texture views now resolve to real UAVs through
placed_texture) and the other recentdescriptor/host.rscommits leave the capped split andMIN_DYNAMICas they were.Open PRs: #1349 (2^18 on capped heaps plus trimming fresh tables to their first used entry, linked here) and its rebase #2475 (which currently conflicts with
main), #1751 and #1548 (capped heaps keep the full dynamic range), #1779 / #2650, and #688 (reclaim slots from finished lists). New: a side-by-side unit-test run of the capped-heap PRs on an RTX 5080 under Wine compares #2683, #2682, #2650, #2461 and #2628. That run covers the three tests that fail on capped heaps (tracked in #1744), not the world-load drops this issue is about. One open question from the thread for review: the split moves the boundary where direct heap indices reach dynamic slots from about 934k to about 738k.Generated by Claude Code
E:\GTA\GTA6.Xbox(Series X 版,208.6 GiB… #855@Kajanos on GitHub · 2026-11-25 21:07 UTC · original
Side-by-side run of the open capped-view-heap PRs, on one machine (Linux / Wine / vkd3d-proton, NVIDIA)
Setup: Linux (Gentoo) / wine-proton 11.0.3 / vkd3d-proton 3.1, RTX 5080, NVIDIA 620.73.04. Cross-built with cargo-xwin for
x86_64-pc-windows-msvc(rustc 1.98.1), with natived3dcompiler_47anddxil.dllfrom DXC v1.9.2609. Each PR was merged locally ontomain13f91caee2, then I rancargo xwin test -p victory-gpu -p victory-shader.On
main, 3 tests fail here because of the heap cap:descriptor::host::tests::dynamic_slots_are_held_until_released(NumDescriptors >= HEAP_VIEWS)memory::tests::lists_share_a_table_and_copies_keep_their_views(past the dynamic slots)emit::stride_tests::a_heap_buffer_read_where_no_buffer_view_is_reads_zeros(dispatch failed: Invalid parameter)541a3203f8b53e4c6ce83e606d278600c9c5bb3946d530a9beb0fbdcb60ea9eca1430ae33b8bff82main"New failures" means failures outside the set that also fails on
mainin this environment. The other failures on every branch also fail onmain: the twopipeline::librarytests (fixed by #1722),draw::…placed_view(fixed by #2101), and two vkd3d-proton differences invictory-shader(stub_pipeline_is_created,rounding_matches_the_hardware).Not run: the retail title, so nothing here is about world-load behaviour. Not run on Windows.
AI-assisted (Claude Code)
@potatoe0100 on GitHub · 2026-11-26 14:21 UTC · original
A code comparison of the open PRs for this issue against
main63bcca4: what each gives a 1,245,184-slot title heap on a 1,000,000 cap. The world runs above show the "no dynamic slots" drops need about 2^18 dynamic slots.On an RTX 4060 (driver 621.14, Windows 11), #2461 fixes 3 of the 5 NVIDIA unit-test failures on
main. The other two are separate (#2178 / #2464, and the gather test). It is also the only PR here with A/B world runs of its own (RTX 2080 and RTX 5080: 0 dynamic-slot drops, no draw reading a left-out slot). So #2461 looks like the one to take. #2475's fresh-table trimming and #688's slot reclaim don't conflict with it in intent and could follow on top.#1760 (lowering the title's page count so its heap fits the cap whole) is a different lever. It relies on a title byte patch through #1059, so it is opt-in per title build rather than a host-side default. As written, #2461 would cut that 933,888-slot heap to 721,469; details and numbers are in the review on #2461.
AI-assisted (Claude). Unit tests and code reading only, no game data.
@MrEjecutor on GitHub · 2026-11-26 15:39 UTC · original
A world data point on the 2^18 question, from a mid-range Blackwell card. Caveat first: this is not
main. It is the fork trustno1-coder/VIctory-NVIDIA (7480e96), whose speed set includes a thinner submission path, so tables per frame are not directly comparable with the 2080/5080 runs above. On this machine plainmaindoes not get past the loading art within 15 minutes, so I cannot run the PRs in the table in the world.Setup: RTX 5060 Ti 16 GB (heap capped at 1,000,000 views), Windows 11, driver 621.24, title 1.0.2.1, Series S profile, the same scripted 600 s walk through the prologue's cell block, warm cache, two launches back to back.
VICTORY_DYNAMIC_SLOTS=524288(Per-frame means over the 5-second "recording per frame" lines, about 110 per run.)
So in these places 2^18 still left about one table in ten refused, and the higher frame rate without the extra slots comes from drawing about 11 % less. About half the heap brought refusals near zero. The fork's own comment on that switch reports up to 3,285 refused tables a frame at 2^18 in the title's bigger places, which fits.
Not tested:
mainor any PR in the table above in the world on this card (it does not reach the world here); other scenes; more than one launch per side.AI use: runs, numbers and this text were done with Claude Code.
@YouKnowWh on GitHub · 2026-11-26 16:56 UTC · original
RTX 5070 Ti 16 GB, Windows, driver 621.14. I tested main
63bcca4against #2461 (6544a52merged onto that same main). The PR reproduced the RTX 4060 result on this card: 3 of the 5 isolated hardware tests changed from fail to pass. Those were dynamic slot lifetime, shared tables retaining their views, and reading zeros from a missing heap buffer view. The buffer-stride and gather-at-level tests still failed.I also ran the PR build with the Series S profile, a copy of our local save data and a single scripted Enter press at 22 s. The cache came from an earlier PR launch; the runtime loaded a 69,491,074-byte pipeline library and continued building pipelines during this run. The host reported a 1,000,000-descriptor cap and kept 721,469 of the requested 1,245,184 title slots, with 262,144 dynamic slots. The window first reported at least 1,000 draws/frame at 89.2 s. We sampled for another 120 s, then closed normally (exit 0). Across 17 high-draw telemetry reports, the median was 1,981 draws/frame and the peak was 3,269. The entire log contained zero contiguous-slot allocation warnings, zero dynamic-table drop warnings and zero root-view allocation warnings. This was one low-throughput opening sequence on the PR. The 600-second scripted walk on the NVIDIA fork exercises a different workload. Peak slot occupancy and the effect of a larger reserve remain unmeasured on this setup.
One caveat for interpreting the high-slot diagnostic: this run logged 523,715 successive high-water indices, from 721,469 through 1,245,183, all with
for_draw=false, in the first two seconds after heap creation.HostHeap::mirroronly reports a new maximum. Once initialization has touched the final index, later draw-time accesses to that range can be silent. A separate counter incremented wheneverfor_draw && index >= self.count, before the high-water check, would count draw-time mirror requests even after initialization reaches the maximum. Shader-side indexed reads would need separate instrumentation.In this opening sequence, the median reported frame time was 4,010.8 ms and the median “on the GPU” field was 3,087.7 ms in those 17 reports. In this build the latter measures wall time around command submission and the fence wait. There were also a median 840 drops/frame attributed to missing host pipelines. These are separate from the dynamic-slot warnings. On this workload we observed no evidence of dynamic-slot exhaustion; it leaves the higher-throughput fork result open.
AI-assisted with Codex. No game files attached.