RTX 2080 (Turing): lit prison yard renders with VICTORY_SHADER_LOOP_LIMIT=32; without it the device is lost #5
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/fxceless--victory-fork#5
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?
@NuraadGit on GitHub · 2026-11-24 19:27 UTC · original
Data point for the device loss in the README's stability row, from an RTX 2080 (Turing, 8 GB, 32-lane waves, driver 616.56, Windows 11). Series X profile,
d279e69built unchanged (cargo build --profile diag -p victory --features diagnostics). Counts and log lines only, nothing from the game.It renders the lit prison yard here, but only with
VICTORY_SHADER_LOOP_LIMIT=32.0x887A0004, reason "The application made a call that is invalid", no breadcrumbsVICTORY_D3D12_DEBUG=1 VICTORY_D3D12_DRED=1DEVICE_HUNGat frame 2352; DRED: the list stopped at command 69 of 78, an indirect dispatch of computecabb87599722e59a(ptfx_CS_lightAtlas_NonLocalLights_Sprite)VICTORY_SHADER_LOOP_LIMIT=32cabb87599722e59abound since frame 1713; lit sky and sunlit structures, 4,500–6,500 draws/frame at 740–940 ms/frameThe debug-layer run points at a shader that doesn't leave a loop. (Edited: I first wrote that this is also what the plain run was. I haven't shown that: it reported "invalid call" at a different frame, and each row is a single run.) Possibly related to your
6a2d9f9(it came between578d459, which you say ran clean, and the trees that lose the device): it moved 51 programs off the approximate wave64 forms. If an exact form waits in a loop for lanes of its console wave that a 32-lane host runs elsewhere, it would spin until TDR, and a loop limit cuts it off. I haven't checked whethercabb87599722e59ais one of those 51.Two other things the debug layer reported on this card, in case they matter elsewhere:
CreateDescriptorHeapwith 1,000,001 and 1,507,328 shader-visible view descriptors: over NVIDIA's 1,000,000 limit, so both fail (severity error) before the fallback.CreateComputeShader: "Shader wants wave lane count of 64 but maximum wave lane count for device is 32" for the programs that stay wave64 after the 32-lane retries.Also for anyone on a fresh machine: the first world run is black for about 10 minutes while ~2,000 draws/frame are dropped waiting for pipelines (1,500+ being made). It fills in as the backlog drains; later runs start warm.
Thanks for the fork — this is the first lit world on Turing that I know of.
AI-assisted (Claude Code); counts only, nothing from the game attached.
cargo test --workspaceon 2119b0e, 496 passed, 0 failed; GPU tests ran on hardware #342@fxceless on GitHub · 2026-11-24 19:53 UTC · original
Thanks, this matches what we found on the RTX 4070: the hang was an indirect dispatch of the particle light-atlas programs (
2561af9577c47289,c06aa62112ffba4c,cabb87599722e59a,e8f6ae0597846841), which6a2d9f9had moved to a wave64 form with group barriers inside loops.e9765a7turns that form off by default (VICTORY_WAVE_WIDE=1asks for it again) and a plain run is clean here without lowering the loop limit. If you trye9765a7or later withoutVICTORY_SHADER_LOOP_LIMIT, a result from Turing would be useful. The descriptor-heap sizes over 1,000,000 are noted.@NuraadGit on GitHub · 2026-11-24 20:18 UTC · original · edited 2026-11-24 20:51 UTC
Turing result for
7b0f736withoutVICTORY_SHADER_LOOP_LIMIT, RTX 2080 8 GB (32-lane waves, driver 616.56, Windows 11, Series X profile, diag build unchanged, warm image cache). Thank you, this is a big step here: the room's interior, bunks, windows, yard and tower render, and the hair is right. With the limit at 32 ond279e69the hair flew apart. I changed the build and the limit together, but #18's A/B on one build points at the limit for the hair. (Edited: I also credited the walls here. In a later session without the limit the room's walls and floor were missing again, so that is the intermittent case your README describes, not the limit.)7b0f736cabb87599722e59ahang did not come back. Device removed at ~6.5 min, frame ~3040:0x887A0001"invalid call"VICTORY_D3D12_DEBUG=1 VICTORY_D3D12_DRED=1The invalid call is a separate problem from the hang. It also ended two runs on
d279e69here (with and without the limit). In all three, the last error is yourthe host device went while buffer views of the heap were made; one of: [...]. In two of the three lists there is a constant buffer view of 969,472 or 896,256 bytes, at an address like0x7fe8…(old contents of an unused slot, I think).makepasses that size on, and a probe on this card shows a constant buffer view over 64 KiB removes the device. The test and a one-line cap are in Marvisak/VIctory#1640 (the code is the same here, and you're welcome to take it). The third list has no such view, so it may not be the only cause, and I haven't yet run the cap in the title.One more from the debug layer, every frame in that run from a few minutes in:
CopyResourceintotexture 2560x1440 f19 flags 0x2while it is inCOPY_SOURCE(subresources 0 and 1). In three captured frames the title's ownCopyResourcecalls are between different resources, so it isn't the title copying a texture onto itself. I don't know whether it is a title copy or a twin copy.Counts and log lines only, nothing from the game attached. AI-assisted (Claude Code).