GPU: keep replaced host resources for 6 frames; bigger dynamic descriptor pool, no fallback to stale tables #135
No reviewers
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!135
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/135/head"
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?
@mpDom on GitHub · 2026-11-24 00:51 UTC · original
mpDom:pr/gpu-page-fault-fixes→main· +177 −35 · 5 files · 3 commits · closed without mergingTwo changes aimed at the host GPU page faults that end the world run (low-address faults such as 0x40da000 / 0x3ba7000).
Tested: cargo test -p victory-gpu -p xtask (0 failures). Run on RX 6750 XT: the freed-texture crash is gone and the run gets much further into the opening cutscene.
@DaviTostes on GitHub · 2026-11-24 00:53 UTC · original
The test build does not compile, same failure as #134:
The library builds;
cargo testfails on every platform, so the GPU suite (Wine + vkd3d-proton here) cannot run even though the production code compiles. The new tests need to go into the existingmod testsinhost.rsafter a rebase.No game data used. AI-assisted (DeepSeek V4.1 Flash coding agent).
@gw1337x on GitHub · 2026-11-24 01:04 UTC · original
Tested on an RX 7800 XT (RDNA3, driver 32.0.32015.7029, Windows 11 26200, 31.6 GB):
mainatd2a4bae+ this PR only,diagbuild withVICTORY_D3D12_DRED=1.Before (same PC,
mainat9aef3d9/35b054ebuilds): every world run loggedno free dynamic descriptor slots2–17 s before a low-address page fault (0x27ab000at 91 s,0x3810000/0x3813000at 58 s). Details are in #59.With this PR:
no free dynamic descriptor slotswarning, and no low-address fault.It still ends on a page fault, now in freed textures:
Breadcrumbs: only list 0 has finished, and it is 2 commands (
2/2, a prelude of state transitions). List 1 (0/506) and everything after it had not started. So the access to the freed texture seems to come from list 0 (a transition on a texture already released) or from work still in flight from the previous submission. Six presented frames looks too short for at least these textures at ~1 fps.@ifBars on GitHub · 2026-11-24 01:15 UTC · original
On Windows 10 22H2, RTX 3060 Ti 8 GB, driver 610.88, I tested the three commits through
9dac364with #124 and our existing SRV table snapshots. The same setup previously lost the device about 17 seconds after the first heavy world frame. This time the run ended at its 36-second world limit. Windows logged no display reset. The title card faded and subsequent native captures were black. World samples were 0.8–1.2 fps, with a cold host pipeline cache.The NVIDIA-specific detail is that the host still capped the view heap at 1,000,000 descriptors. We still reached the warning for an eight-slot table with a 65,536-slot dynamic reserve. The fresh-table failure now skips the draw. This run shows that exhaustion can occur without an immediate device loss. It does not isolate which change helped or establish stability beyond the test window.
@HenriqueSBueno on GitHub · 2026-11-24 01:33 UTC · original
Tested on NVIDIA, where the host caps the view heap. Windows 11, RTX 3080 (driver 616.92), retail title, diagnostics build.
mainat9aef3d9+ #89 + #54 + this PR + #40, with indirect execution on, as onmainnow.a shader reads a root view the title did not setdoesn't occur, so the drops come from the dynamic slot exhaustion. On a capped heap,DYNAMIC_CAPPEDis 65,536. The tables past the static part are forced into dynamic slots too, and that isn't enough for this title's world.AI-assisted (Claude Code)
@tightfall on GitHub · 2026-11-24 01:33 UTC · original
Tested on RX 9070 (RDNA 4), Windows 11, Adrenalin 26.11.2: a clear improvement. The world runs 5–6× longer before the device is lost, and the descriptor-slot exhaustion is gone. The remaining removal is still a fault inside freed textures.
Build: PR head
9dac364, merged locally withmainatd2a4bae. The head on its own failscargo testwith E0428 (mod testsdefined twice incrates/victory-gpu/src/host.rs), which #129 fixed onmain, so a rebase might be worth it. Merged:cargo test --workspace264 passed, 0 failed, 4 ignored. Series X mode, keyboard input.maineda38aa, releasediag+VICTORY_D3D12_DRED=1no free dynamic descriptor slotsWith the PR, the opening cutscene plays at roughly 0.5–1.5 fps with partial frames (many draws dropped for untranslated shaders). Audio keeps going the whole time.
Remaining removal (PR, diag, DRED):
page fault at 0x3b9a19000; inside freed ["texture 1024x1024 f98 flags 0x0 (type 34)", "texture 1024x1024 f98 …", "texture 1024x1024 f99 …", "texture 1024x1024 f99 …", "texture 2048x2048 f98 …"]DispatchMesh):mesh 1 [mesh 857b2e13c9cc107f, pixel 63051e97862e7dad]So on this card a read of freed BC7 textures still happens, just much later. Maybe 6 presented frames isn't enough when a frame takes 1–2 s, or another retirement path still frees too early. I can rerun with other variables if that helps.
For #59: a DRED run on plain
main(eda38aa, withVICTORY_D3D12_DEBUG=1) on the same card faulted somewhere else:page fault at 0x80000381d000, outside every title copy and heap, with a list stopped at command 80 of 104 in anExecuteIndirect(op 5).AI-assisted (Claude Code): log analysis and this write-up. The runs were done by hand.
@ka1qux on GitHub · 2026-11-24 01:40 UTC · original
Test report from another machine, in case it helps: Windows 11, Core i5-13600KF, RX 7800 XT, diagnostics build with
VICTORY_D3D12_DEBUG=1andVICTORY_D3D12_DRED=1.Build:
mainatd2a4baewith this PR, #205 and #214 merged (they merge cleanly).Result (one run):
no free dynamic descriptor slotswarning, and no low-address page fault. OnmainI had that warning 4 to 10 s before a low-address fault in five runs out of five.Two observations about that second fault, from earlier runs on
main. I am not sure of the cause; this is what I measured.shadow::loose): 24 KB, 96 KB, 116 KB and 116 KB past it. In the other four it was 2.4 to 5.1 MB past the nearest copy, which is about what chance would give with ~900 copies, so those four say nothing either way.My reading of (2), unconfirmed: a root view has no size,
root_viewgives it the one window its address is in, and what the shader reads past that window's end lies in another host buffer. The read runs off the copy into whatever is next in host address space, which faults once that neighbour is freed. One experiment in that direction: giving root views one copy per aligned 32 MiB block with an 8 MiB tail ran the world for 4 minutes without this fault (one run, ended by me), but took the process's shared video memory from about 8 GB to 14.5 GB of a 15 GB budget, so it is not something I would propose as it stands.I have not tested this PR alone, only together with #205 and #214.
@ka1qux on GitHub · 2026-11-24 01:53 UTC · original
Follow-up to my comment above, with a correction and one new measurement. Same machine (i5-13600KF, RX 7800 XT), same build (
mainatd2a4bae+ this PR + #205 + #214), plus local diagnostics.Correction: my root-view reading did not hold up. I tested it directly. On the next freed-texture fault the report went through the 4,000 noted commands around the last one the GPU reached (1,579 of them with root views) and looked for a root view whose host copy ends up to 16 MiB before the faulting address. It found none; the fault was 22 MB past the nearest copy of title memory. So for that fault a root view running off its 4 MiB window is not the cause, and the four small distances I listed may well have been chance. Please do not build on that part of my comment.
What still stands from it: this PR removes the dynamic-slot warning and the low-address fault here, and the freed-texture fault remains (two more runs: about 55 s and 85 s in the world).
New: on the software adapter the world's first frame dies in compute dispatches that index the title's own null descriptors. With
VICTORY_D3D12_WARP=1the run ends at the first world frame with a read of address 0 in host-generated shader code. A marker written withWriteBufferImmediateinMARKER_OUTmode before each noted command (exact on WARP, which runs commands in order) names the dispatch:[compute d3e44e754b3eb6aa], 51x1x1: user datau6=0x0andu8=0x6, used as heap indices. Slot 0 holds the title's viewShader(0, [42, 2, ...])(no resource, R32_UINT, TEXTURE1D) and slot 6Unordered(0, 0, [42, 4, ...])(no resource, TEXTURE2D).VICTORY_SKIP_PIPELINES), the next one dies the same way:[compute da1656ad2910e4c7], 35x1x1,u6=0x0,u8=0x0. The dispatches noted right after it (010a50ce68d02c16,1547305c505a7559,31430354dd5c259c) also haveu8=0x0.So the title keeps a null view at slot 0 (and 6) and points shaders at it whatever kind they read there. GPU-based validation had reported the same slot earlier for other pipelines ("SRV Dimension Expected: TEXTURE2D, In Descriptor: TEXTURE1D, Descriptor Heap Index: [0]"). The null views this PR and #205 fix are the ones we write; these are views the title wrote, and one descriptor cannot have the right kind for every shader that indexes it.
I do not know whether this matters on a real GPU: on the RX 7800 XT these dispatches run without a fault with this PR. It does stop WARP from getting far enough to catch the freed-texture fault at its exact command, which is what I was after.
@tightfall on GitHub · 2026-11-24 01:54 UTC · original
Follow-up to my earlier comment: an experiment on RX 9070 (RDNA 4), Windows 11, Adrenalin 26.11.2, same base (this PR at
9dac364merged withmainatd2a4bae), diagnostics build with DRED.Change (experiment only, not a fix):
KEEP_FRAMESintake_retiredset tou64::MAX, so retired host resources are never dropped.So the remaining freed-texture fault is retirement freeing too early: something still reads those textures more than 4 presented frames after they were retired. The ages in presented frames are probably not enough on their own here.
The second run then ends with a different fault: a page fault
0x6000past the end of a 4 MB title memory copy (offset0x406000into a0x400000window), during a submission of 23 lists, with mesh pipelines andExecuteIndirectin flight. That looks like a read past the copied range, not a lifetime issue.Next I want to log, in diagnostics builds, why and when each texture is retired and dropped, so the texture DRED names can be traced back to the path that freed it.
No game data in this comment. AI-assisted (Claude); tested only on the GPU above.
@ChruutvoLuzi on GitHub · 2026-11-24 02:09 UTC · original
NVIDIA numbers for the
DYNAMIC_CAPPEDsplit. RTX 4090, driver 621.01, Windows 11; the host caps the view heap at 1,000,000 and the title asks for 1,245,184. The builds aremainatd2a4baeplus other PRs. The larger reserve came from #134, which uses1 << 19on the capped heap as well, so the title keeps 475,712 slots there.no free dynamic descriptor slotstitle slot past the host heapmain)One caveat about the last column. In one of the 65,536-slot runs, the DRED report shows the title's user data pointing tables at view-heap slots up to 917,140: 12 different slots above 475,712, all null (never made, or left null). So the title does use slots past 475,712, even though
mirror()never logged one in the 524,288-slot runs. A silenttitle slot past the host heapmay therefore not prove that the title stays below the cap (the latest comments in #71 read it that way). I haven't checked how such a table is bound when it falls past the mirrored part.AI-assisted (Claude Code).
@sennecools on GitHub · 2026-11-24 02:11 UTC · original
Tested on RX 9070 XT (RDNA 4), Windows 11 build 26300.9974, Adrenalin 26.11.2 (driver 32.0.32029.2010), offline. The dynamic-slot part works here: the warning and the low-address fault are gone. The run lasts 2.4× longer and now ends on a freed-texture fault, like the other reports above.
Build: PR head
9dac364merged locally ontomainatd2a4bae(clean merge), changes used unmodified.diagprofile with--features diagnostics,VICTORY_D3D12_DRED=1,VICTORY_GPU_TIMING=1, input viaVICTORY_KEYS(Enter every 10 s from 20 to 120 s). The baseline ismainatd2a4baewith the same profile, switches and key script.maind2a4bae, diagno free dynamic descriptor slotsExecuteIndirect)On
mainthe removal was0x887A0006(hung), process exit0x887A0005. The fault address is a low address in the same 0x37xxxxx-0x38xxxxx range as the other low-VA reports in #59. All 12 commands in flight between the stopped list's barriers were mesh dispatches (1-37 groups) of one mesh+pixel pipeline. Its u9/u10 are constant-buffer tables, which are the onestables()remakes in dynamic slots.A release run on
d2a4baewithout switches lost the device the same way:DXGI_ERROR_DEVICE_HUNG~55 s after the 3D scene started, during submissions of 255-258 lists.Mechanism, from reading
d2a4bae(not instrumented): incrates/victory-gpu/src/draw.rs,tables()remakes every table that holds a constant buffer in dynamic slots. WhenHostHeap::dynamic(n)(descriptor/host.rs) returnsNone,tables()skips that table withcontinue, andbindthen passes the table's title-heap offset, so the shader reads whatever the title's slots hold. The warning is behind aOnce, so every failure after the first is silent. That matches one warning followed by a fault in constant-buffer-table mesh draws. With this PR the warning (same text, sameOnce) never appeared, so in this run the pool never ran out: the larger pool (DYNAMIC2^16 → 2^19) is what removed the fault here, and the new drop path was not exercised.Remaining fault: the freed-texture class that the RX 7800 XT and RX 9070 reports above also hit. It is consistent with retirement still freeing too early at ~1 fps.
Scope: one run per configuration in game, on one machine (one release and one diag run on
main, one diag run with this PR). I did not test #134 separately.AI-assisted (Claude Code): analysis and write-up; runs done on my machine.
@tightfall on GitHub · 2026-11-24 02:15 UTC · original
A correction to my last comment, from a new measurement: same setup (RX 9070, Windows 11, Adrenalin 26.11.2, this PR at
9dac364merged withmainatd2a4bae, diagnostics build with DRED).What I added (local diagnostics only): every host texture gets a number in its D3D12 name, and each free logs why the texture was retired (title release or descriptor slot) and how many frames before.
Result (one run, world ~1:40): the same fault as before, in the same mesh pipeline (
DispatchMesh, mesh857b2e13c9cc107f, pixel63051e97862e7dad), inside two freed 1024² BC7 textures. Their history:Over the whole run, 1194 of 1207 frees were title releases and 13 were slot overwrites. None skipped retirement, and every free came exactly 4 frames after its retirement.
So I take back "retirement frees too early". These textures weren't read by anything after they were freed. They only occupied the address range the shader reads, which matches what @ka1qux found. Never freeing anything just turns this into a read of a live texture, which is why that run lasted longer. The real problem looks like a read far outside the copy the shader was given.
That run also had a local change that copies root views outside buffer objects as far as committed memory goes (1–16 MiB instead of the 4 MiB window). It didn't prevent this fault. The draw's root SRV copy is only 4 MiB because committed memory stops there, and the faulting address is about 21 MB past the root SRV's address. Next I'm logging where the faulting address falls in title memory when read through each nearby copy.
No game data in this comment. AI-assisted (Claude); tested only on the GPU above.
@jimokulou2-ops on GitHub · 2026-11-24 02:50 UTC · original
Another RDNA4 run, this time with #294 on top. The freed-texture fault stays. In two runs the address is about 32 MiB past the start of the stopped draw's root SRV copy. That is outside the 16 MiB window @ka1qux searched above. Written by Claude Code (Claude Opus 5.5), which ran the commands and read the logs; I drove the pad into the world on my machine.
Setup: Windows 11 Pro 10.0.26300, Ryzen 7 9700X, RX 9070 XT (RDNA4, Adrenalin 26.11.2 / 32.0.32029.2010),
diag+VICTORY_D3D12_DRED=1, v1.0.2.1, Series X mode. The builds are local merges ontomaind2a4bae+ #197 (input only).This PR + #294 (
bffaefd): #294 conflicts with this PR indraw.rs, at the root-view binding. I took #294's side there, its zeroed fallback, and kept this PR's dropped draws for failed tables.cargo test --workspacegives 271 passed, 0 failed, 4 ignored. Results:no free dynamic descriptor slots. #294'sbinding zeroed fallbackwarning never fired.page fault at 0x490f33000; inside freed ["texture 1024x1024 f99 …", "texture 1024x1024 f98 …", "texture 1024x1024 f98 …"].DispatchMeshof a mesh-only pipeline,mesh c98d45f9c0757861(no pixel shader). This is not the857b2e13c9cc107ffrom the reports above.So, on this card and in one run, #294 does not change the outcome: the time in the world is within the 1:40-3:25 range reported for this PR alone.
Where the address falls. For the commands noted between the stopped list's barriers, I computed
fault − root view host copy start:c98d45f9c0757861,root20x48ef335d0, length0x13ca300x1fffa30: the faulting page is exactly the copy's page +0x20000003c81420)857b2e13c9cc107f,root30x3bd525cb0, length0x5a3500x1fa2350(~31.6 MiB)In both runs the stopped draw's root SRV copy is 0.4-1.3 MB long, and the fault lies about 32 MiB past its start, or 30-31 MiB past its end. Every other root view noted in those windows starts 23 MiB to several GiB above the fault, so these two are the only copies that lie below it at a short distance. @tightfall measured about 21 MB above, so the distance is not always the same. I have not checked the shader's code, so I can't say whether it reads root + 32 MiB or the address only happens to fit. A console buffer read past
num_recordsreturns 0, while a D3D12 root SRV has no bounds, so a read like that would fault on the PC only. Logs are available if useful.Not tested: more runs of either build; #294 alone; the translated code of
c98d45f9c0757861or857b2e13c9cc107f.@ka1qux on GitHub · 2026-11-24 02:53 UTC · original
Follow-up with measurements, same setup as before (RX 7800 XT,
mainatd2a4bae+ this PR + #205 + #214, diagnostics build with DRED). This agrees with @tightfall's correction, and I withdrew the root-view explanation too early in my last comment.Short reads past a copy's end (measured). In three runs the fault was just past the end of a 4 MiB copy of title memory outside buffer objects, inside freed textures that were never in a descriptor slot:
0x170000x236b0before it0x170000x236b0before it0x10000x4950before itThe first two are the same case: four root views at the same offsets in the window (
0,0x2441c0,0x3244f0,0x3dc950), and DRED stopping at the same command index of a list (256, aDispatch) in both. For the third I queried the title's side: its memory is committed for another0x290000bytes past the copy's end, so the data was there and only the host copy stops at the window.Placing the copies in shared heaps (local experiment). With every loose copy placed one after another in 512 MiB heaps, so that what follows a copy on the GPU is always mapped, none of three runs hit that fault. They did not become stable:
5b6eed17c131f881); nono free dynamic descriptor slotswarningSo this removes one class and exposes others. It is not a fix. A fixed tail is not enough either: with 4 MiB added to root views' copies, one run lasted 163 s and faulted 11.6 MiB past the end of the extended copy.
In the 232 s run a mesh draw's root SRV starts
0x1858000(25.5 MiB) below the fault. With the copies packed in heaps I can't tie the fault to that view, but the distance is in the range @jimokulou2-ops (about 32 MiB) and @tightfall (about 21 MB) report, so the long reads look like a second class that contiguous copies would not cover.Process memory was the same with and without the heaps, about 25 GB private in the world.
Not tested: more than these runs; any other GPU; the translated code of the shaders involved. I can share the diagnostics patch if it is useful.
No game data in this comment. AI-assisted (Claude Code).
@ka1qux on GitHub · 2026-11-24 03:25 UTC · original
Follow-up: reading the shaders explains both the short and the long reads past a root view's copy, and predicted a result that held. Same setup as before (RX 7800 XT,
mainatd2a4bae+ this PR + #205 + #214, diagnostics build with DRED, scripted input).How the mesh shaders address their root SRV. I read the native code of the mesh shaders named in the fault reports here (
857b2e13c9cc107f,c98d45f9c0757861,89036e16fa081505); the emitted DXIL does the same arithmetic, so this is not a translation bug.0xFFFFFFFF: on the console the read has no bound.offset + stride × index, with a 16-bit index: about 36 MiB of reach at most.441 of the 479 mesh shaders the title created in one run use this layout, which fits the faulting pipeline being different on every run.
Every distance reported in this thread fits under that cap: mine at 23 KB and 239 KB (a stream crossing the end of a 4 MiB window) and at 16 and 25.5 MiB, @tightfall's 21 MB, @jimokulou2-ops's 31.6 MiB and the page at exactly
+0x2000000, which is the offset field with every bit set.The prediction. In my last comment, placing the loose copies in 512 MiB heaps removed the faults next to a copy, but one run still faulted 28 MiB past the last copy of a heap. I had left 16 MiB unused at the end of each heap, less than the 36 MiB reach. With 48 MiB:
Without the heaps, the same script faults in 115 s and 149 s.
What this is and is not. It is evidence for the cause, not a fix to merge: the reads past the copy now return other copies' bytes or zeros instead of the title's data, and it costs memory (about 28 GB private against 25 GB). What it suggests for a real fix is that a root SRV's copy has to stay mapped for about 36 MiB past its address, and hold the title's data wherever the title has memory committed there. Where the title has nothing committed, the value does not seem to matter, only that the read does not fault.
A separate failure, for whoever tests long runs. Once the title wrote its first autosave (after about 7 minutes in the world), every later run continued from it and lost the device about 15 s into the world with
DXGI_ERROR_DEVICE_HUNG, no page fault: submissions grew from 0.3 s to 3 s, stopping at a draw of mesh04b9be3756e8f41c. That happened with and without the heaps, three runs in a row, and stopped when I moved the save aside.Not tested: any other GPU; more than the runs listed; whether the streams read past the committed memory are really absent ones.
No game data in this comment. AI-assisted (Claude Code).
@itsonlysimbo on GitHub · 2026-11-24 03:54 UTC · original
NVIDIA data point for the capped-heap path:
DYNAMIC_CAPPED = 1 << 16still runs out in the world, and1 << 18did not run out in any of my runs.Setup: RTX 4070 (driver 32.0.16.2101), Windows 11.
mainatd2a4bae+ this PR + #251, diagnostics build, DRED on. The host refuses a view heap over 1,000,000 descriptors on this card ("host view heap capped at 1000000" at start), so this PR takes the capped branch.With
DYNAMIC_CAPPED = 1 << 16: "no free dynamic descriptor slots: a table is not made" about 50 s after start, in the first world frames. The drop from this PR held (the draws were dropped, no fallback to the stale table), but the pool stayed exhausted.With
DYNAMIC_CAPPED = 1 << 18(737,856 title slots left below the cap): the warning never appeared, in 9 world runs of 79–160 s each (also with #402, #393, #329 and #307 on top in some of them). No "title slot past the host heap" warning appeared either.Before this PR (plain
d2a4bae), the same exhaustion was followed by device removal 1–68 s later in every run, the same pattern #336 describes.The device removals that remain after this change are a separate problem: no page fault, a different mesh or compute pipeline almost every run, and still there with the pool fixed. I'll post those separately if they turn out to be useful.
Written by Claude Code (Claude Opus 5.5), which ran the builds and read the logs.
@blazerTweaks on GitHub · 2026-11-24 04:01 UTC · original
Tested on NVIDIA, where the heap is capped: RTX 3060 Ti (Ampere, driver 32.0.16.1714), Windows 10 19045. The base is
d2a4bae+ the Agility exports (#175), and the other run is the same + this PR (9dac364) merged cleanly. Diag build,VICTORY_D3D12_DRED=1. One run each.no free dynamic descriptor slotsn=258 cap=65536); no removal at that pointindirect kind 10 [mesh 09c742c58e9acb62, pixel 9ee9a1b0ecdf7b74]; its table rootu9is view 1,168,095, past the 1,000,000 capmesh 159 [mesh 4adfa13bea1c556a]at command 3 of 70 (op 42); its tables are at views 329,720 and 911,918, below the capMy reading:
DYNAMIC_CAPPED(65,536) and still runs out. But dropping the draw instead of running it on a stale or missing table removes the hang I posted on #71, where a table past the cap was read.4adfa13bea1c556a, one of the mesh programs #71 lists as having no back-edges.No regressions seen before the world: menus, intro, start screen and loading behave as without the PR.
AI-assisted (Claude Code); the runs are mine.
@blazerTweaks on GitHub · 2026-11-24 04:22 UTC · original
Follow-up on the same RTX 3060 Ti (Windows 10 19045). This time a release build (
d2a4bae+ #175 + this PR,--features agility, no DRED/diagnostics):window closedand no host GPU failure). The diag run above was removed after 3 min 07 s, and without this PR it's 36 s.no free dynamic descriptor slots ... n=97 cap=65536still fires once, 4 s into the world, and no hang follows.preparing: copies(up to 6.5 s and about 77 MB per frame), with 1.5–3 s on the GPU.So on this card, with this PR, the remaining limits are untranslated programs and copy cost, not device loss.
AI-assisted (Claude Code); the run is mine.
@itsRevela on GitHub · 2026-11-24 05:34 UTC · original
Measured with the title, in the opening cutscene:
diagbuild ofd2a4bae+ #302 #489 #307 #346, with and without this PR.In the cutscene, the pool runs out:
no free dynamic descriptor slots: a table is not made n=133 cap=65536. On this NVIDIA setup the shader-visible view heap is also capped:host view heap capped at 1000000 ... count=1245184.Without this PR the same warning appears and the draw goes ahead. With it, the draw is dropped:
indirect kind 10: prepare failed (compute false, mesh true)So in the cutscene, dropping instead of falling back loses about 430 indirect mesh dispatches a frame that drew before, and with them most of the little depth the scene had. The fallback tables were stale, so they weren't right either, but they drew something. Two things that might help:
Counts only. AI-assisted (Claude Code).
Pull request closed