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
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#776
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?
@LeonardoS11 on GitHub · 2026-11-25 07:20 UTC · original
8dd30absaysVICTORY_LEVELS_ON_DEMAND=1has 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,
diagbuild withdiagnosticsof plain8dd30ab. 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.VICTORY_CARD_ROOM_FOR_BUFFERS=1VICTORY_LEVELS_ON_DEMAND=1So 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):
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.)
@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.
¹ 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.
@m335671 on GitHub · 2026-11-25 10:19 UTC · original
The same on an RTX 4070 12 GB, on current
main9376fd6:VICTORY_LEVELS_ON_DEMAND=1gives the complete picture of this room at about the same frame rate, and no device loss in my launches.Setup
VICTORY_LATE_WAIT=3, otherwise the defaults.translate --warm all), pipeline library warm.host:lines.9376fd6VICTORY_LEVELS_ON_DEMAND=1On
8dd30ab, beforea26859f, the defaults were much slower here, and the switch made the same difference:8dd30abVICTORY_STALE_TEXTURES=overlapVICTORY_LEVELS_ON_DEMAND=1One switch at a time also ruled out
VICTORY_VIEW_GUARD,VICTORY_HEAP_RECHECKandVICTORY_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.
@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, fromheap_texturesin a dispatch), happened again withoutVICTORY_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=1on8dd30ab+ #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:Why I suspect levels on demand:
tiles.rssays such a texture is reserved with no memory, anduploadcopies 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.VICTORY_LEVELS_ON_DEMANDdied 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).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.
@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 withVICTORY_LEVELS_ON_DEMAND=1against one without, from the opening cutscene into the prison. No device loss in either.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.
@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
maincommits. 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, plusVICTORY_CAPTURE_WORLD_EVERY=64as the README advises for speed runs. Thea253706rows are means of the last 30host:lines of a 10-minute launch; the later rows are means over the 150 s after the frame rate settled.a253706a253706INDIRECT_WINDOWa253706INDIRECT_WINDOW+LEVELS_ON_DEMAND3973179JOIN_PARTSBACK_OWN_VIEWCOPY_PLAINd510ee4INDIRECT_GATHERCARD_REHASH_RUNSVICTORY_…=1.d510ee4rows 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_RUNStookd510ee4from 6.38 to 6.61 fps (157 → 151 ms).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.
@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
ca8829fplus #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):
What Windows said: two
nvlddmkmevents 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 onlynvlddmkmevents 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=1in a diagnostics build.AI-assisted (Claude Code, Claude Opus 5.5): log and event-log reading, and this text.
@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, withVICTORY_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=2048from the switch set indiagnostics/README.mdleaves textures waiting: the room was dark, the shirt grey, and the log saidtextures 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:
ASYNC_SUBMIT QUEUE2 MERGE_GAP=64 MERGE_RUNS=4096 STAGING_POOL=0 HEAP_WORKER SETTLE_ROOM PARALLEL_REFRESH LOOKUP_CACHE,CARD_WINDOWS_MB=2048CARD_WINDOWS_MB=512CARD_SYNC_BATCH=1¹
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.6VICTORY_GPU_TIMING=1run 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.HEAP_LOCKS FILLS_PLAIN STEP_INDEX LIST_REUSE HEAP_PASS_MARKEDgave 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.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.
@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_HUNGremoval 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 tree3ba005a: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 was0x887A0006. Windows recordednvlddmkmIDs 153 and 13 in the matching interval. No allocation-failure message occurred in this run.At removal detection:
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=1is 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=1added, 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.