RTX 2080 (Turing): lit prison yard renders with VICTORY_SHADER_LOOP_LIMIT=32; without it the device is lost #5

Open
opened 2026-11-26 03:34:28 +00:00 by github-bot · 2 comments
Owner

@⁠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, d279e69 built 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.

Run Result
defaults world reached (≈3,360 draws/frame, 620 ms/frame), then device removed at frame 3110: 0x887A0004, reason "The application made a call that is invalid", no breadcrumbs
defaults + VICTORY_D3D12_DEBUG=1 VICTORY_D3D12_DRED=1 DEVICE_HUNG at frame 2352; DRED: the list stopped at command 69 of 78, an indirect dispatch of compute cabb87599722e59a (ptfx_CS_lightAtlas_NonLocalLights_Sprite)
VICTORY_SHADER_LOOP_LIMIT=32 no device loss in a 30-minute run (stopped by my own time limit), frame 4352, cabb87599722e59a bound since frame 1713; lit sky and sunlit structures, 4,500–6,500 draws/frame at 740–940 ms/frame

The 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 between 578d459, 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 whether cabb87599722e59a is one of those 51.

Two other things the debug layer reported on this card, in case they matter elsewhere:

  • CreateDescriptorHeap with 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.

**@⁠NuraadGit** on GitHub · 2026-11-24 19:27 UTC · [original](https://github.com/fxceless/victory-fork/issues/5) 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, `d279e69` built 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`.** | Run | Result | |---|---| | defaults | world reached (≈3,360 draws/frame, 620 ms/frame), then device removed at frame 3110: `0x887A0004`, reason "The application made a call that is invalid", no breadcrumbs | | defaults + `VICTORY_D3D12_DEBUG=1 VICTORY_D3D12_DRED=1` | `DEVICE_HUNG` at frame 2352; DRED: the list stopped at command 69 of 78, an indirect dispatch of compute `cabb87599722e59a` (`ptfx_CS_lightAtlas_NonLocalLights_Sprite`) | | `VICTORY_SHADER_LOOP_LIMIT=32` | no device loss in a 30-minute run (stopped by my own time limit), frame 4352, `cabb87599722e59a` bound since frame 1713; lit sky and sunlit structures, 4,500–6,500 draws/frame at 740–940 ms/frame | The 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 between `578d459`, 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 whether `cabb87599722e59a` is one of those 51. Two other things the debug layer reported on this card, in case they matter elsewhere: - `CreateDescriptorHeap` with 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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:34:28 +00:00
Author
Owner

@⁠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), which 6a2d9f9 had moved to a wave64 form with group barriers inside loops. e9765a7 turns that form off by default (VICTORY_WAVE_WIDE=1 asks for it again) and a plain run is clean here without lowering the loop limit. If you try e9765a7 or later without VICTORY_SHADER_LOOP_LIMIT, a result from Turing would be useful. The descriptor-heap sizes over 1,000,000 are noted.

**@⁠fxceless** on GitHub · 2026-11-24 19:53 UTC · [original](https://github.com/fxceless/victory-fork/issues/5#issuecomment-7142725242) 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`), which `6a2d9f9` had moved to a wave64 form with group barriers inside loops. `e9765a7` turns that form off by default (`VICTORY_WAVE_WIDE=1` asks for it again) and a plain run is clean here without lowering the loop limit. If you try `e9765a7` or later without `VICTORY_SHADER_LOOP_LIMIT`, a result from Turing would be useful. The descriptor-heap sizes over 1,000,000 are noted.
Author
Owner

@⁠NuraadGit on GitHub · 2026-11-24 20:18 UTC · original · edited 2026-11-24 20:51 UTC

Turing result for 7b0f736 without VICTORY_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 on d279e69 the 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.)

Run on 7b0f736 Result
no switches, unattended world at 740–830 ms/frame, ~6,200 draws/frame. The cabb87599722e59a hang did not come back. Device removed at ~6.5 min, frame ~3040: 0x887A0001 "invalid call"
VICTORY_D3D12_DEBUG=1 VICTORY_D3D12_DRED=1 ~11.5 min until I closed it, 0 removals, 660–1,100 ms/frame in the parts I looked at

The invalid call is a separate problem from the hang. It also ended two runs on d279e69 here (with and without the limit). In all three, the last error is your the 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 like 0x7fe8… (old contents of an unused slot, I think). make passes 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: CopyResource into texture 2560x1440 f19 flags 0x2 while it is in COPY_SOURCE (subresources 0 and 1). In three captured frames the title's own CopyResource calls 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).

**@⁠NuraadGit** on GitHub · 2026-11-24 20:18 UTC · [original](https://github.com/fxceless/victory-fork/issues/5#issuecomment-7143336459) · edited 2026-11-24 20:51 UTC Turing result for `7b0f736` without `VICTORY_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 on `d279e69` the 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.)* | Run on `7b0f736` | Result | |---|---| | no switches, unattended | world at 740–830 ms/frame, ~6,200 draws/frame. The `cabb87599722e59a` hang did not come back. **Device removed at ~6.5 min, frame ~3040: `0x887A0001` "invalid call"** | | `VICTORY_D3D12_DEBUG=1 VICTORY_D3D12_DRED=1` | ~11.5 min until I closed it, 0 removals, 660–1,100 ms/frame in the parts I looked at | **The invalid call is a separate problem from the hang.** It also ended two runs on `d279e69` here (with and without the limit). In all three, the last error is your `the 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 like `0x7fe8…` (old contents of an unused slot, I think). `make` passes 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: `CopyResource` into `texture 2560x1440 f19 flags 0x2` while it is in `COPY_SOURCE` (subresources 0 and 1). In three captured frames the title's own `CopyResource` calls 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).
This discussion has been locked. Commenting is limited to contributors.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/fxceless--victory-fork#5
No description provided.