VICTORY_LEVELS_ON_DEMAND=1 on an RTX 3080 Ti: buffers and walls fit on 12 GB; device removed in 1 launch of 3 #776

Open
opened 2026-11-26 03:50:52 +00:00 by github-bot · 8 comments
Owner

@⁠LeonardoS11 on GitHub · 2026-11-25 07:20 UTC · original

8dd30ab says VICTORY_LEVELS_ON_DEMAND=1 has not run on a card yet. Here are its first runs on one: it works, it is what makes buffers and walls fit together on 12 GB, and one launch of three lost the device while the world loaded.

Setup — Windows 11, RTX 3080 Ti 12 GB (tiled resources tier 3), 64 GB RAM, diag build with diagnostics of plain 8dd30ab. One checkpoint in the prologue (the room with the window onto the yard), 300 s a run, averages of the last 8 frame-rate lines, the window's contents saved at 245 / 275 / 295 s. The first run of the build warmed the shader cache.

switches ms a frame card copies of buffers card's own memory in use walls of the room
none (warm-up run) 275 95 copies, 937 MB 10,104 MB there, dark
none 410 38 copies, 490 MB 10,353 MB there
VICTORY_CARD_ROOM_FOR_BUFFERS=1 267 95 copies, 937 MB 9,976 MB there, dark
VICTORY_LEVELS_ON_DEMAND=1 269 97 copies, 941 MB 8,979 MB there, lit, with the posters and the shirt's print
both 269 97 copies, 941 MB 9,036 MB the same, the best picture this scene has had here
both, second launch device removed — — —

So with levels on demand the card has about 1 GB more room, the buffers get their card copies (the launch without them is the 410 ms one), and the picture is complete. The tiles line near the end of a good run: "1476 alive (4910 made so far), 255 MB of the card given to 7785 levels in all, 3137 MB of the card not allocated for levels the title does not hold … 911 uploads left a held level without memory (no room on the card, or no heap), 827 uploads were recorded again".

The device loss — second launch with both switches, about 10 s after the world's first frames (frames of 1.2–2 s at that point, "textures 315–440 ms" in the frame line):

ERROR victory_gpu::host: when the host device went: the submitting thread was preparing a submission (nothing of ours was running on the card), of 1 lists, for 5468.0 ms; …
ERROR victory_gpu::host: host GPU device removed after 25 submissions sent ahead (VICTORY_RELAY=1) of 175 lists; no breadcrumbs (… 0x887A0004); device removed: … (0x887A0006)
  6363.9 ms before, thread …: sweep: 610 host copies of textures the title fills let go (83008 KiB), each held by its title texture alone (no list, no slot)

The last tiles line before it: "1696 alive (4201 made so far), 416 MB of the card given to 6727 levels in all … the pool's heaps 704 MB (1 given back to the card so far) … 425 calls of UpdateTileMappings in 16392 microseconds … 919 uploads left a held level without memory, 654 uploads were recorded again". The good runs show "0 given back to the card so far" in the same line, so a guess — not verified — is the heap given back, or the 610 copies let go by the sweep, while a list sent ahead still used tiles from them.

Not done yet: a run with VICTORY_D3D12_DEBUG=1 / DRED to name the command. I can do that, or try a switch if there is one that keeps the pool's heaps, if it helps.

(Runs and screenshots by me on the hardware above; read from the logs and written with Claude Code.)

**@⁠LeonardoS11** on GitHub · 2026-11-25 07:20 UTC · [original](https://github.com/fxceless/victory-fork/issues/776) 8dd30ab says `VICTORY_LEVELS_ON_DEMAND=1` has not run on a card yet. Here are its first runs on one: it works, it is what makes buffers and walls fit together on 12 GB, and one launch of three lost the device while the world loaded. **Setup** — Windows 11, RTX 3080 Ti 12 GB (tiled resources tier 3), 64 GB RAM, `diag` build with `diagnostics` of plain 8dd30ab. One checkpoint in the prologue (the room with the window onto the yard), 300 s a run, averages of the last 8 frame-rate lines, the window's contents saved at 245 / 275 / 295 s. The first run of the build warmed the shader cache. | switches | ms a frame | card copies of buffers | card's own memory in use | walls of the room | |---|---|---|---|---| | none (warm-up run) | 275 | 95 copies, 937 MB | 10,104 MB | there, dark | | none | 410 | 38 copies, 490 MB | 10,353 MB | there | | `VICTORY_CARD_ROOM_FOR_BUFFERS=1` | 267 | 95 copies, 937 MB | 9,976 MB | there, dark | | `VICTORY_LEVELS_ON_DEMAND=1` | 269 | 97 copies, 941 MB | 8,979 MB | there, lit, with the posters and the shirt's print | | both | 269 | 97 copies, 941 MB | 9,036 MB | the same, the best picture this scene has had here | | both, second launch | device removed | — | — | — | So with levels on demand the card has about 1 GB more room, the buffers get their card copies (the launch without them is the 410 ms one), and the picture is complete. The tiles line near the end of a good run: "1476 alive (4910 made so far), 255 MB of the card given to 7785 levels in all, 3137 MB of the card not allocated for levels the title does not hold … 911 uploads left a held level without memory (no room on the card, or no heap), 827 uploads were recorded again". **The device loss** — second launch with both switches, about 10 s after the world's first frames (frames of 1.2–2 s at that point, "textures 315–440 ms" in the frame line): ``` ERROR victory_gpu::host: when the host device went: the submitting thread was preparing a submission (nothing of ours was running on the card), of 1 lists, for 5468.0 ms; … ERROR victory_gpu::host: host GPU device removed after 25 submissions sent ahead (VICTORY_RELAY=1) of 175 lists; no breadcrumbs (… 0x887A0004); device removed: … (0x887A0006) 6363.9 ms before, thread …: sweep: 610 host copies of textures the title fills let go (83008 KiB), each held by its title texture alone (no list, no slot) ``` The last tiles line before it: "1696 alive (4201 made so far), 416 MB of the card given to 6727 levels in all … the pool's heaps 704 MB (1 given back to the card so far) … 425 calls of UpdateTileMappings in 16392 microseconds … 919 uploads left a held level without memory, 654 uploads were recorded again". The good runs show "0 given back to the card so far" in the same line, so a guess — not verified — is the heap given back, or the 610 copies let go by the sweep, while a list sent ahead still used tiles from them. Not done yet: a run with `VICTORY_D3D12_DEBUG=1` / DRED to name the command. I can do that, or try a switch if there is one that keeps the pool's heaps, if it helps. (Runs and screenshots by me on the hardware above; read from the logs and written with Claude Code.)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:50:52 +00:00
Author
Owner

@⁠timorjay on GitHub · 2026-11-25 09:44 UTC · original · edited 2026-11-25 10:01 UTC

Another hardware result on fork main 9376fd60, release build, Series X profile. RTX 5090 D v2 (24 GB), NVIDIA 617.42, Ryzen 7 9800X3D, Windows Sandbox on Windows 11 Pro build 26300.

Each launch restored a separate copy of the same local checkpoint and started with its own empty VIctory cache. The Windows graphics driver cache was shared across the runs. I left the camera at the prison window for 90 seconds, beginning 20 seconds after the movement tutorial became visible, then backed up and turned to inspect Lucia in the window light. The reported FPS is the median of 1000 / the game window's ms per frame, sampled about once every 1.2 seconds.

Texture levels on demand Median FPS Memory left unallocated for absent levels¹ Lucia when turning away from the window
Off, first launch 3.27 — Eyes and teeth visible, face and neck missing.
On, first launch 3.36 3,140 MiB Face, skin and neck visible in profile.
On, second launch 3.38 3,212 MiB Eyes and teeth visible, face and neck missing.
Off, second launch 3.42 — Eyes and teeth visible, face and neck missing.

¹ Median of the layer's own tile counter in the same 90 seconds. Both enabled launches reported tier=4 on=true. The counter measures space the layer avoided allocating for unused texture levels.

The wall beside the window and the printed jumpsuit were present in these four runs. The two enabled runs produced different faces with the same executable, setting and save. I also saw dark blocks around the bunk in the run with intact skin. All four accepted movement and camera input and were stopped after inspecting the room. None logged device removal during that time.

I also copied just the compiled shaders and pipeline cache from the first enabled run into a fresh run with the same save and switch. The face and neck were visible again at 3.33 FPS, but the hair and cell were strongly orange and several details around the bunk were lost. Reusing those caches did not reproduce the first image in full.

Measured on my hardware with Codex assistance.

**@⁠timorjay** on GitHub · 2026-11-25 09:44 UTC · [original](https://github.com/fxceless/victory-fork/issues/776#issuecomment-7158737809) · edited 2026-11-25 10:01 UTC Another hardware result on fork main `9376fd60`, release build, Series X profile. RTX 5090 D v2 (24 GB), NVIDIA 617.42, Ryzen 7 9800X3D, Windows Sandbox on Windows 11 Pro build 26300. Each launch restored a separate copy of the same local checkpoint and started with its own empty VIctory cache. The Windows graphics driver cache was shared across the runs. I left the camera at the prison window for 90 seconds, beginning 20 seconds after the movement tutorial became visible, then backed up and turned to inspect Lucia in the window light. The reported FPS is the median of 1000 / the game window's ms per frame, sampled about once every 1.2 seconds. | Texture levels on demand | Median FPS | Memory left unallocated for absent levels¹ | Lucia when turning away from the window | |---|---:|---:|---| | Off, first launch | 3.27 | — | Eyes and teeth visible, face and neck missing. | | On, first launch | 3.36 | 3,140 MiB | Face, skin and neck visible in profile. | | On, second launch | 3.38 | 3,212 MiB | Eyes and teeth visible, face and neck missing. | | Off, second launch | 3.42 | — | Eyes and teeth visible, face and neck missing. | ¹ Median of the layer's own tile counter in the same 90 seconds. Both enabled launches reported `tier=4 on=true`. The counter measures space the layer avoided allocating for unused texture levels. The wall beside the window and the printed jumpsuit were present in these four runs. The two enabled runs produced different faces with the same executable, setting and save. I also saw dark blocks around the bunk in the run with intact skin. All four accepted movement and camera input and were stopped after inspecting the room. None logged device removal during that time. I also copied just the compiled shaders and pipeline cache from the first enabled run into a fresh run with the same save and switch. The face and neck were visible again at 3.33 FPS, but the hair and cell were strongly orange and several details around the bunk were lost. Reusing those caches did not reproduce the first image in full. Measured on my hardware with Codex assistance.
Author
Owner

@⁠m335671 on GitHub · 2026-11-25 10:19 UTC · original

The same on an RTX 4070 12 GB, on current main 9376fd6: VICTORY_LEVELS_ON_DEMAND=1 gives the complete picture of this room at about the same frame rate, and no device loss in my launches.

Setup

  • RTX 4070 12 GB (32-lane waves), driver 32.0.16.2124, Ryzen 9 7900, 32 GB, Windows 11 Pro 26300, Series X profile.
  • Diagnostics build, VICTORY_LATE_WAIT=3, otherwise the defaults.
  • Shader cache prewarmed (translate --warm all), pipeline library warm.
  • The room with the window onto the yard, idle once there, 10 minutes a launch.
  • Means of the last 30 host: lines.
9376fd6 fps ms/frame on the GPU copying back card in use host copies the title fills the room
defaults 4.6 218 92 161 9.8 GB 12,766, 5,011 MB cell walls black, the uniform dark, no wire mesh on the window
VICTORY_LEVELS_ON_DEMAND=1 4.4 225 99 171 8.8 GB 17,459, 3,667 MB lit walls and posters, the uniform's print, the wire mesh

On 8dd30ab, before a26859f, the defaults were much slower here, and the switch made the same difference:

8dd30ab fps on the GPU
defaults 1.8 360 ms
VICTORY_STALE_TEXTURES=overlap 4.6 (textures wrong) 99 ms
VICTORY_LEVELS_ON_DEMAND=1 4.6 (textures right) 104 ms

One switch at a time also ruled out VICTORY_VIEW_GUARD, VICTORY_HEAP_RECHECK and VICTORY_REUPLOAD_WHEN_FULL. a26859f's card room brought the default back to speed, but on this card the picture of this room is still only complete with levels on demand.

No device removal in any launch (one launch with the switch on each tree, so it says nothing against the loss you saw), and 0 refused dynamic slots.

Not tested: other scenes, whether some held-back levels come out blurry.

AI use: the runs were done on my machine. Claude Code (Claude Opus 5.5) planned and ran them, read the logs, worked out the figures and wrote this comment.

**@⁠m335671** on GitHub · 2026-11-25 10:19 UTC · [original](https://github.com/fxceless/victory-fork/issues/776#issuecomment-7159533377) The same on an RTX 4070 12 GB, on current `main` `9376fd6`: `VICTORY_LEVELS_ON_DEMAND=1` gives the complete picture of this room at about the same frame rate, and no device loss in my launches. **Setup** - RTX 4070 12 GB (32-lane waves), driver 32.0.16.2124, Ryzen 9 7900, 32 GB, Windows 11 Pro 26300, Series X profile. - Diagnostics build, `VICTORY_LATE_WAIT=3`, otherwise the defaults. - Shader cache prewarmed (`translate --warm all`), pipeline library warm. - The room with the window onto the yard, idle once there, 10 minutes a launch. - Means of the last 30 `host:` lines. | `9376fd6` | fps | ms/frame | on the GPU | copying back | card in use | host copies the title fills | the room | |---|---|---|---|---|---|---|---| | defaults | 4.6 | 218 | 92 | 161 | 9.8 GB | 12,766, 5,011 MB | cell walls black, the uniform dark, no wire mesh on the window | | `VICTORY_LEVELS_ON_DEMAND=1` | 4.4 | 225 | 99 | 171 | **8.8 GB** | 17,459, **3,667 MB** | lit walls and posters, the uniform's print, the wire mesh | **On `8dd30ab`, before `a26859f`**, the defaults were much slower here, and the switch made the same difference: | `8dd30ab` | fps | on the GPU | |---|---|---| | defaults | 1.8 | 360 ms | | `VICTORY_STALE_TEXTURES=overlap` | 4.6 (textures wrong) | 99 ms | | `VICTORY_LEVELS_ON_DEMAND=1` | 4.6 (textures right) | 104 ms | One switch at a time also ruled out `VICTORY_VIEW_GUARD`, `VICTORY_HEAP_RECHECK` and `VICTORY_REUPLOAD_WHEN_FULL`. `a26859f`'s card room brought the default back to speed, but on this card the picture of this room is still only complete with levels on demand. No device removal in any launch (one launch with the switch on each tree, so it says nothing against the loss you saw), and 0 refused dynamic slots. Not tested: other scenes, whether some held-back levels come out blurry. AI use: the runs were done on my machine. Claude Code (Claude Opus 5.5) planned and ran them, read the logs, worked out the figures and wrote this comment.
Author
Owner

@⁠VibeClauding on GitHub · 2026-11-25 11:46 UTC · original · edited 2026-11-25 11:58 UTC

Correction (same day): levels on demand is not the cause. The same crash, at the same driver offset (nvwgf2umx.dll+0x1a3084) with the same VIctory frames (texture::upload → CopyTextureRegion, from heap_textures in a dispatch), happened again without VICTORY_LEVELS_ON_DEMAND (run 83), about 43 s after the structure builder started. Both crashes came with the builder on. My guess is a texture freed, or never made, under the builder's memory pressure, but I haven't shown that. I'll follow up on #16, not here. Sorry for the noise.

Original comment

A crash with a stack, on an RTX 3070 8 GB (driver 610.88, Windows 11, 16 GB). It may be what removes the device in some launches.

Setup: VICTORY_LEVELS_ON_DEMAND=1 on 8dd30ab + #220 #648 #670 #705 #346 #646 #834 + #294 (first two commits), Series S, with the structure builder on. About 50 s after the builder started, the process died in the user-mode driver while recording a texture upload:

first-chance exception 0xc0000005 at nvwgf2umx.dll+0x1a3084 (read 0xc: nothing mapped there)
  #0-#13  nvwgf2umx.dll ...
  #14 D3D12Core.dll+0x206acf
  #15 ID3D12GraphicsCommandList::CopyTextureRegion
  #16 victory_gpu::texture::upload            texture.rs:680
  #17 victory_gpu::draw::readable             draw.rs:3334
  #18 victory_gpu::draw::State::heap_textures draw.rs:1978
  #19 victory_gpu::draw::State::bind          draw.rs:1113
  #20 victory_gpu::draw::State::dispatch_inner draw.rs:2142

Why I suspect levels on demand:

  • tiles.rs says such a texture is reserved with no memory, and upload copies every level every time. The tiles are given in a submission-time step, so when the copy is recorded, the destination level can have no heap mapped at all.
  • The D3D12 rules allow that, since the mapping is ahead of the copy on the queue. But this driver appears to look up the destination's memory at record time and reads a null.
  • The same setup without VICTORY_LEVELS_ON_DEMAND died differently: it ran out of memory (run 78), and in another run the title crashed in its own code after the builder (run 80, the #16 one).
  • One more launch with levels on demand lost the device about a minute after the builder started (run 79: 0x887A0005, no breadcrumbs). That one may be the same thing seen from the other side.

Not proven: this is one stack, and DRED was on (run 81).

What would tell: whether the copies that crash target a level with no tiles yet. If so, one option is to record the copy only for levels that already have tiles. Another is to map the levels before recording (on the CPU timeline) rather than at submission. Either way, a reserved resource is never written before it has any mapping.

AI-assisted (Claude Code); my runs with my own copy; offsets, counts and code references only.

**@⁠VibeClauding** on GitHub · 2026-11-25 11:46 UTC · [original](https://github.com/fxceless/victory-fork/issues/776#issuecomment-7161476211) · edited 2026-11-25 11:58 UTC **Correction (same day): levels on demand is not the cause.** The same crash, at the same driver offset (`nvwgf2umx.dll+0x1a3084`) with the same VIctory frames (`texture::upload` → `CopyTextureRegion`, from `heap_textures` in a dispatch), happened again **without** `VICTORY_LEVELS_ON_DEMAND` (run 83), about 43 s after the structure builder started. Both crashes came with the builder on. My guess is a texture freed, or never made, under the builder's memory pressure, but I haven't shown that. I'll follow up on #16, not here. Sorry for the noise. <details><summary>Original comment</summary> A crash with a stack, on an RTX 3070 8 GB (driver 610.88, Windows 11, 16 GB). It may be what removes the device in some launches. **Setup:** `VICTORY_LEVELS_ON_DEMAND=1` on `8dd30ab` + #220 #648 #670 #705 #346 #646 #834 + #294 (first two commits), Series S, with the structure builder on. About 50 s after the builder started, the process died in the user-mode driver while **recording** a texture upload: ``` first-chance exception 0xc0000005 at nvwgf2umx.dll+0x1a3084 (read 0xc: nothing mapped there) #0-#13 nvwgf2umx.dll ... #14 D3D12Core.dll+0x206acf #15 ID3D12GraphicsCommandList::CopyTextureRegion #16 victory_gpu::texture::upload texture.rs:680 #17 victory_gpu::draw::readable draw.rs:3334 #18 victory_gpu::draw::State::heap_textures draw.rs:1978 #19 victory_gpu::draw::State::bind draw.rs:1113 #20 victory_gpu::draw::State::dispatch_inner draw.rs:2142 ``` **Why I suspect levels on demand:** - `tiles.rs` says such a texture is reserved with no memory, and `upload` copies every level every time. The tiles are given in a submission-time step, so when the copy is *recorded*, the destination level can have no heap mapped at all. - The D3D12 rules allow that, since the mapping is ahead of the copy on the queue. But this driver appears to look up the destination's memory at record time and reads a null. - The same setup without `VICTORY_LEVELS_ON_DEMAND` died differently: it ran out of memory (run 78), and in another run the title crashed in its own code after the builder (run 80, the #16 one). - One more launch with levels on demand lost the device about a minute after the builder started (run 79: `0x887A0005`, no breadcrumbs). That one may be the same thing seen from the other side. **Not proven:** this is one stack, and DRED was on (run 81). **What would tell:** whether the copies that crash target a level with no tiles yet. If so, one option is to record the copy only for levels that already have tiles. Another is to map the levels before recording (on the CPU timeline) rather than at submission. Either way, a reserved resource is never written before it has any mapping. AI-assisted (Claude Code); my runs with my own copy; offsets, counts and code references only. </details>
Author
Owner

@⁠tippythetaidum on GitHub · 2026-11-25 13:23 UTC · original

One more card, with the texture queue measured: RTX 5080 16 GB, driver 621.14, Windows 11, Series X profile, diagnostics build of a253706 (+ #24 and #927), warm shader cache. One 7-minute launch with VICTORY_LEVELS_ON_DEMAND=1 against one without, from the opening cutscene into the prison. No device loss in either.

without with
card memory in use once the world settled 11.6–11.8 GB 9.9 GB
the layer's own line, end of run — 3,007 MB not allocated for levels the title doesn't hold
card at the texture queue's room line (90 % of the budget) most of the run from world entry on at world entry, then below it from ~1.5 min on
textures picked by index due, peak 10,942 13,087
5-second readings with more than 1,000 due 23 of 84 18 of 73
frame rate, 5-second readings with over 3,000 draws: median (quartiles) 3.8 fps (2.4–4.5) 4.8 fps (4.5–5.1)

So here it frees about 3 GB and the card gets out of the full state, at no cost in frame rate (one launch each, so I wouldn't read the higher median as a gain yet). The burst of textures at world entry is as big as without it, though, and takes about as long to clear (90–110 s), so on this card the black surfaces of the first minute aren't only the full card. (The system lowers this card's budget from 15.2 to about 13.1 GB once the game is up.)

AI-assisted (Claude Code, Claude Opus 5.5): runs, log reading and this text. Counts and log lines only, nothing from the game attached.

**@⁠tippythetaidum** on GitHub · 2026-11-25 13:23 UTC · [original](https://github.com/fxceless/victory-fork/issues/776#issuecomment-7163704660) One more card, with the texture queue measured: RTX 5080 16 GB, driver 621.14, Windows 11, Series X profile, diagnostics build of `a253706` (+ #24 and #927), warm shader cache. One 7-minute launch with `VICTORY_LEVELS_ON_DEMAND=1` against one without, from the opening cutscene into the prison. No device loss in either. | | without | with | |---|---|---| | card memory in use once the world settled | 11.6–11.8 GB | 9.9 GB | | the layer's own line, end of run | — | 3,007 MB not allocated for levels the title doesn't hold | | card at the texture queue's room line (90 % of the budget) | most of the run from world entry on | at world entry, then below it from ~1.5 min on | | textures picked by index due, peak | 10,942 | 13,087 | | 5-second readings with more than 1,000 due | 23 of 84 | 18 of 73 | | frame rate, 5-second readings with over 3,000 draws: median (quartiles) | 3.8 fps (2.4–4.5) | 4.8 fps (4.5–5.1) | So here it frees about 3 GB and the card gets out of the full state, at no cost in frame rate (one launch each, so I wouldn't read the higher median as a gain yet). The burst of textures at world entry is as big as without it, though, and takes about as long to clear (90–110 s), so on this card the black surfaces of the first minute aren't only the full card. (The system lowers this card's budget from 15.2 to about 13.1 GB once the game is up.) AI-assisted (Claude Code, Claude Opus 5.5): runs, log reading and this text. Counts and log lines only, nothing from the game attached.
Author
Owner

@⁠m335671 on GitHub · 2026-11-25 19:18 UTC · original

Update from the same RTX 4070 12 GB and the same room, on today's main commits. On this card, levels on demand is still what completes the room, and the newer switches add up.

Same setup as above: diagnostics build, prewarmed cache, VICTORY_LATE_WAIT=3, plus VICTORY_CAPTURE_WORLD_EVERY=64 as the README advises for speed runs. The a253706 rows are means of the last 30 host: lines of a 10-minute launch; the later rows are means over the 150 s after the frame rate settled.

commit switches fps ms/frame on the GPU the room
a253706 defaults 4.83 207 93 cell walls black, uniform dark, no wire mesh
a253706 INDIRECT_WINDOW 5.49 182 71 same as defaults
a253706 INDIRECT_WINDOW + LEVELS_ON_DEMAND 5.55 180 73 complete
3973179 the above + JOIN_PARTS BACK_OWN_VIEW COPY_PLAIN 6.62 151 65 complete
d510ee4 the above + INDIRECT_GATHER CARD_REHASH_RUNS 6.61 151 61 complete
  • Every switch is VICTORY_…=1.
  • The d510ee4 rows have the opt-in ambient light from #1093 on (VICTORY_AMBIENT=0.6), which costs about 4 % on its own. Measured the same way with it on, INDIRECT_GATHER + CARD_REHASH_RUNS took d510ee4 from 6.38 to 6.61 fps (157 → 151 ms).
  • No device removal and 0 refused dynamic slots in any of these launches. That's still only a handful of launches with draw windows on.
  • With the window, gather and copy switches, a few blocky patches show at the bottom right of the picture; the ambient light covers them. I haven't looked into them.

AI use: the runs were done on my machine. Claude Code (Claude Opus 5.5) planned and ran them, read the logs, worked out the figures and wrote this comment.

**@⁠m335671** on GitHub · 2026-11-25 19:18 UTC · [original](https://github.com/fxceless/victory-fork/issues/776#issuecomment-7172113673) Update from the same RTX 4070 12 GB and the same room, on today's `main` commits. On this card, levels on demand is still what completes the room, and the newer switches add up. Same setup as above: diagnostics build, prewarmed cache, `VICTORY_LATE_WAIT=3`, plus `VICTORY_CAPTURE_WORLD_EVERY=64` as the README advises for speed runs. The `a253706` rows are means of the last 30 `host:` lines of a 10-minute launch; the later rows are means over the 150 s after the frame rate settled. | commit | switches | fps | ms/frame | on the GPU | the room | |---|---|---|---|---|---| | `a253706` | defaults | 4.83 | 207 | 93 | cell walls black, uniform dark, no wire mesh | | `a253706` | `INDIRECT_WINDOW` | 5.49 | 182 | 71 | same as defaults | | `a253706` | `INDIRECT_WINDOW` + `LEVELS_ON_DEMAND` | 5.55 | 180 | 73 | **complete** | | `3973179` | the above + `JOIN_PARTS` `BACK_OWN_VIEW` `COPY_PLAIN` | 6.62 | 151 | 65 | complete | | `d510ee4` | the above + `INDIRECT_GATHER` `CARD_REHASH_RUNS` | 6.61 | 151 | 61 | complete | - Every switch is `VICTORY_…=1`. - The `d510ee4` rows have the opt-in ambient light from #1093 on (`VICTORY_AMBIENT=0.6`), which costs about 4 % on its own. Measured the same way with it on, `INDIRECT_GATHER` + `CARD_REHASH_RUNS` took `d510ee4` from 6.38 to 6.61 fps (157 → 151 ms). - No device removal and 0 refused dynamic slots in any of these launches. That's still only a handful of launches with draw windows on. - With the window, gather and copy switches, a few blocky patches show at the bottom right of the picture; the ambient light covers them. I haven't looked into them. AI use: the runs were done on my machine. Claude Code (Claude Opus 5.5) planned and ran them, read the logs, worked out the figures and wrote this comment.
Author
Owner

@⁠tippythetaidum on GitHub · 2026-11-25 20:08 UTC · original

One more device loss with the same signature, on an RTX 5080 16 GB. The Windows event log shows it was a GPU timeout, not a page fault.

Setup: Windows 11, driver 621.14, Ryzen 7 9800X3D, Series X profile. A release build of fork ca8829f plus #927, #823, #834, #1007, #1031 and #917. Switches: VICTORY_LEVELS_ON_DEMAND=1 VICTORY_INDIRECT_WINDOW=1 VICTORY_INDIRECT_GATHER=1 VICTORY_ASYNC_SUBMIT=1 VICTORY_QUEUE2=1 VICTORY_JOIN_PARTS=1 VICTORY_BACK_OWN_VIEW=1 VICTORY_COPY_PLAIN=1 VICTORY_CARD_REHASH_RUNS=1 VICTORY_TEXTURE_NO_WAIT=1 VICTORY_HEAP_WORKER=1 VICTORY_AMBIENT=0.6.

When: 8 min 48 s into a 600 s run, during the flashback cutscene after the counselor scene. The last frame-rate lines before it read 3.7, 5.9 and 5.1 fps at 2,000-3,800 draws a frame (19:56:22-19:56:34). This is the first device loss in nine 600 s runs with these switches. The eight before it went from the opening cutscene through the prison without one.

What the layer said (same shape as the first report above):

19:56:41 ERROR victory_gpu::drvwatch: the graphics driver reported an error to the system's event log: from now on the paths under suspicion are off for this run (draw windows clamp each record again) n=1
19:56:43 ERROR victory_gpu::drvwatch: the graphics driver reported an error to the system's event log n=2
19:56:46 ERROR victory_gpu::host: when the host device went: the submitting thread was preparing a submission (nothing of ours was running on the card), of 40 lists, for 5306.6 ms; ...; submissions started 28718 finished 28713
19:56:46 ERROR victory_gpu::host: host GPU device removed after 5 submissions sent ahead (VICTORY_RELAY=1) of 132 lists; no breadcrumbs (... 0x887A0004); device removed: ... (0x887A0006)

What Windows said: two nvlddmkm events with Id 153 in the System log, at 19:56:40 and 19:56:42 (Error occurred on GPUID: 100). Those are the driver's timeout-and-reset events, and they are the only nvlddmkm events that day. So the card ran something past the timeout twice. The "preparing a submission for 5.3 s" is the submit thread waiting on that hang, not its cause. There were no warnings in the seconds before except the usual sweep and "texture picked by index changed after its upload" lines.

A release build has no breadcrumbs. If it comes back, I'll try to repeat it with VICTORY_D3D12_DRED=1 in a diagnostics build.

AI-assisted (Claude Code, Claude Opus 5.5): log and event-log reading, and this text.

**@⁠tippythetaidum** on GitHub · 2026-11-25 20:08 UTC · [original](https://github.com/fxceless/victory-fork/issues/776#issuecomment-7173250159) One more device loss with the same signature, on an RTX 5080 16 GB. The Windows event log shows it was a GPU timeout, not a page fault. **Setup:** Windows 11, driver 621.14, Ryzen 7 9800X3D, Series X profile. A release build of fork `ca8829f` plus #927, #823, #834, #1007, #1031 and #917. Switches: `VICTORY_LEVELS_ON_DEMAND=1 VICTORY_INDIRECT_WINDOW=1 VICTORY_INDIRECT_GATHER=1 VICTORY_ASYNC_SUBMIT=1 VICTORY_QUEUE2=1 VICTORY_JOIN_PARTS=1 VICTORY_BACK_OWN_VIEW=1 VICTORY_COPY_PLAIN=1 VICTORY_CARD_REHASH_RUNS=1 VICTORY_TEXTURE_NO_WAIT=1 VICTORY_HEAP_WORKER=1 VICTORY_AMBIENT=0.6`. **When:** 8 min 48 s into a 600 s run, during the flashback cutscene after the counselor scene. The last frame-rate lines before it read 3.7, 5.9 and 5.1 fps at 2,000-3,800 draws a frame (19:56:22-19:56:34). This is the first device loss in nine 600 s runs with these switches. The eight before it went from the opening cutscene through the prison without one. **What the layer said** (same shape as the first report above): ``` 19:56:41 ERROR victory_gpu::drvwatch: the graphics driver reported an error to the system's event log: from now on the paths under suspicion are off for this run (draw windows clamp each record again) n=1 19:56:43 ERROR victory_gpu::drvwatch: the graphics driver reported an error to the system's event log n=2 19:56:46 ERROR victory_gpu::host: when the host device went: the submitting thread was preparing a submission (nothing of ours was running on the card), of 40 lists, for 5306.6 ms; ...; submissions started 28718 finished 28713 19:56:46 ERROR victory_gpu::host: host GPU device removed after 5 submissions sent ahead (VICTORY_RELAY=1) of 132 lists; no breadcrumbs (... 0x887A0004); device removed: ... (0x887A0006) ``` **What Windows said:** two `nvlddmkm` events with Id 153 in the System log, at 19:56:40 and 19:56:42 (`Error occurred on GPUID: 100`). Those are the driver's timeout-and-reset events, and they are the only `nvlddmkm` events that day. So the card ran something past the timeout twice. The "preparing a submission for 5.3 s" is the submit thread waiting on that hang, not its cause. There were no warnings in the seconds before except the usual sweep and "texture picked by index changed after its upload" lines. A release build has no breadcrumbs. If it comes back, I'll try to repeat it with `VICTORY_D3D12_DRED=1` in a diagnostics build. AI-assisted (Claude Code, Claude Opus 5.5): log and event-log reading, and this text.
Author
Owner

@⁠m335671 on GitHub · 2026-11-26 13:12 UTC · original

An update from the RTX 4070 12 GB, on today's main (ceb9e1f) with #1093, #1096 and #799 merged in. The #799 merge had two conflicts, resolved the way Dathinel described there, with VICTORY_WAVE_LDS_LOOSE=0. In the first room, Series X profile, diagnostics build, I measured 9.0–9.9 fps with the full picture, against 5.9–6.8 fps with yesterday's set on the same build.

On 12 GB, VICTORY_CARD_WINDOWS_MB=2048 from the switch set in diagnostics/README.md leaves textures waiting: the room was dark, the shirt grey, and the log said textures picked by index: the card has no room for more; they wait. With 512 the picture is complete, as in your run 295.

Last six frame-log lines once settled, one launch per row:

switches on top of the common set¹ fps ms/frame our lists on the card
yesterday's set (none of the below) 5.9–6.8 147–170 96.1 ms
ASYNC_SUBMIT QUEUE2 MERGE_GAP=64 MERGE_RUNS=4096 STAGING_POOL=0 HEAP_WORKER SETTLE_ROOM PARALLEL_REFRESH LOOKUP_CACHE, CARD_WINDOWS_MB=2048 8.5–9.5 105–117 – (textures waiting)
the same with CARD_WINDOWS_MB=512 8.7–9.1 110–115 89.6 ms
the same + CARD_SYNC_BATCH=1 8.8–9.9 101–114 75.3 ms

¹ VICTORY_INDIRECT_WINDOW=1 VICTORY_LEVELS_ON_DEMAND=1 VICTORY_JOIN_PARTS=1 VICTORY_BACK_OWN_VIEW=1 VICTORY_COPY_PLAIN=1 VICTORY_LATE_WAIT=3 VICTORY_INDIRECT_GATHER=1 VICTORY_CARD_REHASH_RUNS=1 VICTORY_CARD_BUFFERS_MIN_KB=64 VICTORY_CARD_BUFFERS_MB=1536 VICTORY_CARD_HASH_LEN=1 VICTORY_TEXTURE_NO_WAIT=1 VICTORY_TEXTURE_BACK=1 VICTORY_WAVE_LDS_LOOSE=0 VICTORY_AMBIENT=0.6

  • With the last row, the card is now the limit. A VICTORY_GPU_TIMING=1 run on the row above it gave 64.5 ms a frame for the title's own lists, spread over 209 lists, the largest 7.4 ms.
  • Adding HEAP_LOCKS FILLS_PLAIN STEP_INDEX LIST_REUSE HEAP_PASS_MARKED gave 9.5–10.1 fps, within the noise. But the print on the player's shirt was missing in that run's end capture, so I'm leaving those off.
  • No device removal in any of these runs.

AI use: the runs were done on my machine. Claude Code (Claude Opus 5.5) merged the branches, ran them, read the logs and wrote this comment.

**@⁠m335671** on GitHub · 2026-11-26 13:12 UTC · [original](https://github.com/fxceless/victory-fork/issues/776#issuecomment-7193025475) An update from the RTX 4070 12 GB, on today's `main` (`ceb9e1f`) with #1093, #1096 and #799 merged in. The #799 merge had two conflicts, resolved the way Dathinel described there, with `VICTORY_WAVE_LDS_LOOSE=0`. In the first room, Series X profile, diagnostics build, I measured 9.0–9.9 fps with the full picture, against 5.9–6.8 fps with yesterday's set on the same build. On 12 GB, `VICTORY_CARD_WINDOWS_MB=2048` from the switch set in `diagnostics/README.md` leaves textures waiting: the room was dark, the shirt grey, and the log said `textures picked by index: the card has no room for more; they wait`. With 512 the picture is complete, as in your run 295. Last six frame-log lines once settled, one launch per row: | switches on top of the common set¹ | fps | ms/frame | our lists on the card | |---|---|---|---| | yesterday's set (none of the below) | 5.9–6.8 | 147–170 | 96.1 ms | | `ASYNC_SUBMIT QUEUE2 MERGE_GAP=64 MERGE_RUNS=4096 STAGING_POOL=0 HEAP_WORKER SETTLE_ROOM PARALLEL_REFRESH LOOKUP_CACHE`, `CARD_WINDOWS_MB=2048` | 8.5–9.5 | 105–117 | – (textures waiting) | | the same with `CARD_WINDOWS_MB=512` | 8.7–9.1 | 110–115 | 89.6 ms | | the same + `CARD_SYNC_BATCH=1` | **8.8–9.9** | **101–114** | **75.3 ms** | ¹ `VICTORY_INDIRECT_WINDOW=1 VICTORY_LEVELS_ON_DEMAND=1 VICTORY_JOIN_PARTS=1 VICTORY_BACK_OWN_VIEW=1 VICTORY_COPY_PLAIN=1 VICTORY_LATE_WAIT=3 VICTORY_INDIRECT_GATHER=1 VICTORY_CARD_REHASH_RUNS=1 VICTORY_CARD_BUFFERS_MIN_KB=64 VICTORY_CARD_BUFFERS_MB=1536 VICTORY_CARD_HASH_LEN=1 VICTORY_TEXTURE_NO_WAIT=1 VICTORY_TEXTURE_BACK=1 VICTORY_WAVE_LDS_LOOSE=0 VICTORY_AMBIENT=0.6` - With the last row, the card is now the limit. A `VICTORY_GPU_TIMING=1` run on the row above it gave 64.5 ms a frame for the title's own lists, spread over 209 lists, the largest 7.4 ms. - Adding `HEAP_LOCKS FILLS_PLAIN STEP_INDEX LIST_REUSE HEAP_PASS_MARKED` gave 9.5–10.1 fps, within the noise. But the print on the player's shirt was missing in that run's end capture, so I'm leaving those off. - No device removal in any of these runs. AI use: the runs were done on my machine. Claude Code (Claude Opus 5.5) merged the branches, ran them, read the logs and wrote this comment.
Author
Owner

@⁠anes66 on GitHub · 2026-11-26 19:05 UTC · original · edited 2026-11-26 19:50 UTC

Additional Windows 10 / RTX 3060 12 GB observation with the same DEVICE_HUNG removal reason and accompanying NVIDIA events. The specific cause is still unknown.

Setup: Ryzen 7 9800X3D, 32 GB RAM, Windows 10 22H2, NVIDIA driver file version 32.0.16.2114, diagnostics build. Tested tree 3ba005a: main db53666 + Windows 10 Agility support #420 + snapshot-allocation retry #360. No later main changes. Agility SDK 1.620.2. Series X, VICTORY_RELAY=2 VICTORY_LEVELS_ON_DEMAND=1, existing caches retained. D3D12 debug and DRED were not enabled. No TDR/driver/registry changes were made for the run.

The user played manually for about 19 min 56 s, at roughly 3-4 FPS, before the process exited with 0x887A0005; the detailed reason was 0x887A0006. Windows recorded nvlddmkm IDs 153 and 13 in the matching interval. No allocation-failure message occurred in this run.

At removal detection:

Measurement Value
Submissions still ahead / lists 29 / 139
Submitting thread preparing its next submission 4,199 ms, 1 list
System committed / limit 51,282 / 56,937 MB
Physical RAM free 2,780 MB
Local video-memory use / budget (recent interval) at most 10,013 / at least 11,189 MB
Shared-memory use (recent interval) at most 8,663 MB

The pipeline library had no call running, was mapped with its handle kept open, and reported zero pages reading as zeros. The breadcrumb query returned 0x887A0004; no offending GPU command or faulting address was identified. These facts do not establish a resource-lifetime or library-mapping cause.

The prior runs on this machine ended with process-allocation failures instead. Cache warmth, scene and competing memory changed, so the longer run is not a measured stability gain from either option or #360. A separate profile with VICTORY_D3D12_DRED=light VICTORY_D3D12_DEBUG=1 is prepared for a future manual diagnostic run, but has no title result yet.

Only aggregate observations are shared. No title data, raw logs, images or dumps attached.

Update, 26 November: a subsequent manual run of the same tree and retained caches, with VICTORY_D3D12_DRED=light VICTORY_D3D12_DEBUG=1 added, lasted 29 min 7 s and was closed manually after autosave. The player completed the prologue and reached the open world, reporting roughly 1–5 FPS with rendering defects still visible. Exit code was 0. No allocation-failure or device-removal message was found, and the exported NVIDIA/Display System-event list for that interval was empty. DRED activation and debug-layer messages were confirmed in the log.

The last debug summary contained warnings only: ID 971 ×29 (pipeline-library miss), ID 679 ×4 (pixel shader expects an unbound render target), ID 1477 ×1 (unused depth/stencil format). These do not identify the cause of the earlier hang or the visible defects. Peak process private commit was 30,539.6 MiB; sampled physical RAM free fell to 444.2 MiB, while sampled system commit headroom stayed above 3.64 GiB. This is one manually ended run with different scene/cache history, not evidence that either option fixes the hang or improves performance. Save loading has not yet been tested.

**@⁠anes66** on GitHub · 2026-11-26 19:05 UTC · [original](https://github.com/fxceless/victory-fork/issues/776#issuecomment-7201178427) · edited 2026-11-26 19:50 UTC Additional Windows 10 / RTX 3060 12 GB observation with the same `DEVICE_HUNG` removal reason and accompanying NVIDIA events. The specific cause is still unknown. Setup: Ryzen 7 9800X3D, 32 GB RAM, Windows 10 22H2, NVIDIA driver file version `32.0.16.2114`, diagnostics build. Tested tree [`3ba005a`](https://github.com/anes66/victory-fork/commit/3ba005aeb8775dda58563fd7a0e8fec736952927): `main db53666` + Windows 10 Agility support #420 + snapshot-allocation retry #360. No later main changes. Agility SDK 1.620.2. Series X, `VICTORY_RELAY=2 VICTORY_LEVELS_ON_DEMAND=1`, existing caches retained. D3D12 debug and DRED were not enabled. No TDR/driver/registry changes were made for the run. The user played manually for about 19 min 56 s, at roughly 3-4 FPS, before the process exited with `0x887A0005`; the detailed reason was `0x887A0006`. Windows recorded `nvlddmkm` IDs 153 and 13 in the matching interval. No allocation-failure message occurred in this run. At removal detection: | Measurement | Value | |---|---:| | Submissions still ahead / lists | 29 / 139 | | Submitting thread preparing its next submission | 4,199 ms, 1 list | | System committed / limit | 51,282 / 56,937 MB | | Physical RAM free | 2,780 MB | | Local video-memory use / budget (recent interval) | at most 10,013 / at least 11,189 MB | | Shared-memory use (recent interval) | at most 8,663 MB | The pipeline library had no call running, was mapped with its handle kept open, and reported zero pages reading as zeros. The breadcrumb query returned `0x887A0004`; no offending GPU command or faulting address was identified. These facts do not establish a resource-lifetime or library-mapping cause. The prior runs on this machine ended with process-allocation failures instead. Cache warmth, scene and competing memory changed, so the longer run is not a measured stability gain from either option or #360. A separate profile with `VICTORY_D3D12_DRED=light VICTORY_D3D12_DEBUG=1` is prepared for a future manual diagnostic run, but has no title result yet. Only aggregate observations are shared. No title data, raw logs, images or dumps attached. Update, 26 November: a subsequent manual run of the same tree and retained caches, with `VICTORY_D3D12_DRED=light VICTORY_D3D12_DEBUG=1` added, lasted 29 min 7 s and was closed manually after autosave. The player completed the prologue and reached the open world, reporting roughly 1–5 FPS with rendering defects still visible. Exit code was 0. No allocation-failure or device-removal message was found, and the exported NVIDIA/Display System-event list for that interval was empty. DRED activation and debug-layer messages were confirmed in the log. The last debug summary contained warnings only: ID 971 ×29 (pipeline-library miss), ID 679 ×4 (pixel shader expects an unbound render target), ID 1477 ×1 (unused depth/stencil format). These do not identify the cause of the earlier hang or the visible defects. Peak process private commit was 30,539.6 MiB; sampled physical RAM free fell to 444.2 MiB, while sampled system commit headroom stayed above 3.64 GiB. This is one manually ended run with different scene/cache history, not evidence that either option fixes the hang or improves performance. Save loading has not yet been tested.
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#776
No description provided.