Black world after loading on NVIDIA: measurements, ranked hypotheses and a research dossier #1317
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#1317
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?
@HenriqueSBueno on GitHub · 2026-11-24 17:22 UTC · original
Black world after loading on NVIDIA: measurements, a ranked list of hypotheses, and a research dossier
This issue collects what we measured on one NVIDIA machine and ranks the hypotheses that follow from it, so other
contributors can test them and report back. A long research dossier with the background, the literature and the
reasoning behind each hypothesis is linked at the end.
Our setup:
b99f876b…, Xbox Series 1.0.2.1).mainfrom 24 Nov, plus open PRs #89, #189, #211, #282, #493, #530 and #587, plus our own local changes listed in each section.No game data is included here or in the dossier.
1. What we measured
--console series-son the same build: 2,699 → 1,898 ms/frame; GPU 1,512 → 701 ms; internal resolution 1280x720. On a 10 GB card the Series X profile (4K targets, 13.5 GiB title memory) is the wrong target.preparing~860 ms (copies ~270 MB ≈ 440 ms; texture checks ~475 MB ≈ 140 ms), GPU ~700 ms,copying back~330 ms for ~12 MB.v_readfirstlanein divergent flow. 450 → 430: raw root UAVs and 64-bit addresses held in root constants.mesh 04b9be3756e8f41c+pixel 1af4a50c7fb40c97, as in #71. The mesh program has no loop. The pixel program has nested light-list loops; the outer one exits on an equality between an index and a bound read from a buffer.+0x164a298, with a stack through the title's watchdog thread (+0x2215eca).2. Top hypotheses (P0/P1)
The IDs refer to the dossier. "Test" says how to confirm or refute each one with VIctory's log line or a target dump.
ID3D12CommandQueue::Waitis a no-op (queue.rs,waitreturnsS_OK), andExecuteCommandListsruns synchronously when called. A consumer queued behindWait(fence, N)therefore runs before the producer that another queue submits later and that signalsN. It reads unwritten data, which gives black lighting targets and loops on invalid bounds (hangs). The XCL author independently reported the same mechanism.VICTORY_PRODUCERS=1from #638, a map of reader and dropped producer, then zero-fill.permlane16operations never cross lane 32, so they need no barrier and are legal in divergent flow.maincover part of the remaining refusals.dxgi.rs:246is fixed at 3840x2160).QueryVideoMemoryInfo.[min, max]union per shadow (host.rsBatch::add). Replace in-processReadProcessMemory/WriteProcessMemorywith guarded direct copies.copiesMB and ms drop several-fold.host.rstitle_writtenclears the per-batch texture set).textures~475 MB → a few MB per frame.copying back~330 ms → near 0.list.rs,1 << 20) and GPU timestamps are CPU time. The title's own culling and dynamic resolution cannot work.3. Suggested order of experiments
main+ #704; then masks as values (H-6.1/H-6.2) and intra-half cross-lane operations (H-6.3).Success criterion for the black screen: in a target dump of a world frame, at least one lighting/HDR target and the final
output contain scene content.
4. The dossier
Ten chapters, about 190,000 words, with references to papers, specifications and emulator sources. DOIs were checked
through Crossref with title matching and URLs were fetched; anything that could not be confirmed is marked
[unverified].Dossier: https://github.com/HenriqueSBueno/VIctory/tree/docs/uma-dossier/docs/uma-dossier (index in
README.md, one file per chapter).OpenExistingHeapFromAddress/FileMapping, custom heaps, GPU upload heaps/ReBAR, reserved resources)Please reply with results in the form H-x.y — confirmed / refuted / partial — numbers — setup, so the matrix can be updated.
Legal note
All measurements were made with files from a retail copy of the title that the author bought and owns, on his own
Xbox console; proof of purchase is kept. No leaked, pirated or third-party files were used at any point. No game data
(assets, code, disassembly, shader dumps or screenshots) is published here or in the linked issue. This work is about
memory-coherence, synchronization and shader-translation techniques; it does not provide, link to or help anyone obtain
game files.
AI-assisted (Claude Code)
@rpmaster2 on GitHub · 2026-11-24 17:46 UTC · original
A correction to the Series S recommendation, measured on this host.
Your dossier says the Series S profile roughly halves GPU time (2,699 -> 1,898 ms/frame; GPU 1,512 -> 701 ms) and that Series X is the wrong target on a 10 GB card. On my machine the profile does make the frame cheaper, but it also stops producing a picture at all:
main@ffe310e+ #876 + #585--console series-sSo on this build the profile does not trade quality for speed, it shortens the path to an empty present loop. That may be specific to the stack (only #876 and #585 on top of
ffe310e, RX 9070 XT, Adrenalin 26.11.2) rather than to the profile itself - the title may take a different init path when it sees a Series S device - but anyone recommending it for frame time should know it is not a drop-in win here.Two other numbers from the same session, in case they help the ranking: this stack halves the black-frame count compared with the same stack plus #878 (11 vs 23 in 300 s, 0.6-0.8 -> 0.8-0.9 fps), which fits the
fill_phiscounterexample r4tedx posted in #878.No game data attached: counts, formats and error strings only, and the user's own screen observations.
AI-assisted: written by DeepSeek (OpenCode harness) from my run logs; the hardware and the dump are mine.
@HenriqueSBueno on GitHub · 2026-11-24 17:55 UTC · original
Thanks — that's a useful counterpoint. On our stack the Series S profile does reach the world: ~1,150 draws/frame and ~700 ms of GPU per frame, a target dump at 1280x720 with G-buffer geometry (tables, a lamp, pedestrians), and the gameplay HUD over the black world. Your numbers (steady 30 fps, ~1 ms GPU, 0.2 MB of copies) look like the title is still in front of the world, waiting on a prompt or on a different init path.
Two differences that may matter: (1) we feed Enter at scheduled frames (
VICTORY_KEYS) to get through the menus and the "press A" screen; (2) our stack ismain+ #89 #189 #211 #282 #493 #530 #587 plus local translator changes (spilled user data, wave-uniformv_readfirstlane, raw root UAVs, descriptor-heap reads as data), on an RTX 3080.Could you share draws/frame and the frame number in the 30 fps phase, and whether input was given after loading? We have marked H-1.1/H-2.6 as stack-dependent in the dossier until it is reproduced on more setups.
AI-assisted (Claude Code)
@rpmaster2 on GitHub · 2026-11-24 18:32 UTC · original
@HenriqueSBueno your read is right, and my "empty present loop" wording overstated it. The numbers from that run:
blocked, no prompt string in the logInput: three
Enterpresses viaVICTORY_KEYSat 12 s, 30 s and 50 s. The same schedule enters the world onseries-xwith the same build (0.8-0.9 fps, 11 black frames in 300 s), so the keys themselves are fine there - onseries-sthey were not enough to get past whatever screen it was on.So the honest version of my data point is: with this key schedule the Series S profile sat in front of the world at 14 draws/frame, and I cannot say whether the profile itself changes rendering. That is consistent with your H-1.1/H-2.6 being stack- and flow-dependent; treat my row as "not reached the world", not as a counterexample.
I can retry with a denser schedule (more Enters, later, e.g. 10/20/30/60/90 s) and report draws/frame, max frame and whether the world is reached, if that helps close it. It is one run on my side, and this evening's machine is free between sessions.
AI-assisted: written by DeepSeek (OpenCode harness) from my run logs; the hardware and the dump are mine.
@HenriqueSBueno on GitHub · 2026-11-24 18:55 UTC · original
Thanks — that matches what we see. Our key schedule is frame-based rather than time-based:
VICTORY_KEYSsendsEnterevery 4 frames from frame 55 to frame 220 (55:Enter,59:Enter,…,219:Enter, ~42 presses), which covers the menus and the "press A" screen on both profiles here. With the Series S profile the front end runs at 30 fps, so three presses at fixed times can easily fall between screens that wait for input.A rerun with that schedule (or your denser 10/20/30/60/90 s one) would settle it — draws/frame, max frame and whether the world is reached are exactly the right numbers. Until then we keep H-1.1/H-2.6 marked stack- and flow-dependent in the dossier.
AI-assisted (Claude Code)
@rpmaster2 on GitHub · 2026-11-24 18:58 UTC · original
@HenriqueSBueno answering your two questions, and the Series S picture changes with your key schedule.
Before (my earlier run,
Enterat 12/30/50 s): 14 draws/frame for the whole 30 fps phase, frame counter reached 4096, ~1 ms GPU, 0.2 MB of copies, audio devices connected and silent. That is what I called an empty loop - your reading was right, it never left the front end.Now, with a denser schedule (
Enterat 10/20/30/60/90 s, same save, same host, RX 9070 XT / Adrenalin 26.11.2 / Win 11 26300) and a stack close to yours -main@ffe310e+ #189 + #211 + #282 + #493 + #587,--console series-s:So with your schedule the profile does reach the world here too, and my earlier row should be read as "did not get past a prompt with a sparse schedule", not as a counterexample to H-1.1/H-2.6.
Two controls from the same session, in case they help the ranking: the same stack without #211 reaches the world as well (263 draws/frame, 0.5 fps, 1 black frame), and with #530 instead of #211 likewise (289 draws/frame, 0.5 fps, 1 black frame). On this host the world comes up either way, so I cannot isolate #211 as the requirement; the 345-vs-263/289 difference may be scene timing.
Caveat: one run per variant, and the screen impressions are from watching the window, not measurements. If you want a number that is comparable to yours, the useful one is probably draws/frame at the same wall-clock second, not the max; say which second you use and I will report that.
AI-assisted: written by DeepSeek (OpenCode harness) from my run logs and screen observations; the hardware and the dump are mine.
@rpmaster2 on GitHub · 2026-11-24 19:11 UTC · original
@HenriqueSBueno ran your frame schedule as close as
VICTORY_KEYSallows (it takes seconds, not frames): 42 presses every 0.133 s from 1.83 s to 7.31 s, which is frames 55-220 at 30 fps.Stack:
main@ffe310e+ #189 + #211 + #282 + #493 + #587,--console series-s, diag build,VICTORY_D3D12_DRED=1, same save, 300 s, RX 9070 XT / Adrenalin 26.11.2 / Windows 11 26300.Numbers:
Two notes that may matter for your dossier:
Disclosure: my first attempt at your frame schedule was malformed (locale decimal commas split the entries), so that run's numbers came from random timings and are not in this comment.
AI-assisted: written by DeepSeek (OpenCode harness) from my run logs and screen observations; the hardware and the dump are mine.
@rpmaster2 on GitHub · 2026-11-24 19:25 UTC · original
@HenriqueSBueno a longer run on your schedule and stack (900 s cap) - it goes past the credits into the prologue, which is further than anything I had before.
Same setup as my previous comment:
main@ffe310e+ #189 + #211 + #282 + #493 + #587,--console series-s, diag build, DRED on, 42 presses over 1.83-7.31 s, RX 9070 XT.What was on screen, in order: the credits cutscene, then the credits ended and new sounds started (insects/motor), a line at the top of the screen, the subtitle "9 months", then the "Prologue" title card with new subtitles - i.e. the game left the credits and entered the prologue. During that stretch the picture was mostly black with the prologue's subtitle/UI over it; audio was intermittent while new content compiled and smooth once warm.
The removal at the end is a new shape, not the freed-texture one I have been reporting:
page fault at 0x1a93cc000; no title memory copy below it; the nearest above: 0x6fbd80000+0x71ac0 at host 0x25cac0000 (1438 copies in all). No freed node, and the address is below any title copy - so on this host there are now at least three distinct removal shapes, and the one that ends these long runs is not the freed texture.If useful for the dossier: reaching the prologue took ~13 minutes of wall clock on this card, mostly compile- and copy-bound, at 0.4-0.7 fps.
AI-assisted: written by DeepSeek (OpenCode harness) from my run logs and screen observations; the hardware and the dump are mine.
@HenriqueSBueno on GitHub · 2026-11-24 19:47 UTC · original
@rpmaster2 thanks, reaching the prologue in 13 minutes is the furthest data point in this thread. I added it to the dossier as confirmation that the Series S profile works once the front end gets dense enough input.
On the new removal shape (
page fault at 0x1a93cc000; no title memory copy below it): an address below every title copy looks like a GPU read through a pointer or descriptor that was never filled, rather than through a stale copy. That fits a consumer running before its producer (H-6.7/H-6.14). On our RTX 3080 the title held work behind command-list 64-bit memory waits 32+ times in ~5 minutes once #1388 was applied, so adding #1388 to your stack may change or remove this shape. If you try it, theheld=counter we described on #1388 would show whether those waits fire on AMD as well.For readers tracking the hypotheses:
fxceless/victory-gta6(see @luisaugustz's report in #71) has since implemented several of them behind switches and reports a lit opening cutscene and a rendered prologue on an RTX 4070:VICTORY_INPLACE, H-2.4/H-4.x);VICTORY_LATE_WAIT,VICTORY_RELAY, H-7.1);VICTORY_CARD_BUFFERS_*, H-1.3/H-2.1);Its README lists ray-traced bounce light and shadows as the remaining gap (anything not directly sunlit is black), which matches the BVH discussion in #1533. We'll update the dossier's hypothesis matrix with these as "implemented elsewhere" so measurements can be compared.
AI-assisted (Claude Code)
@HenriqueSBueno on GitHub · 2026-11-24 22:50 UTC · original
Status update for this issue: on our RTX 3080 the black world is resolved using
fxceless/victory-fork@4e17478, Series X profile. We see the lit prologue (interior and sunset exterior, characters, correct hair), the character moves with a pad, and it runs at 3.2 fps (308 ms/frame) with no device loss over 8 minutes. Full report and switches: fxceless/victory-fork#176.How this maps onto the hypotheses here:
VICTORY_SHADER_LOOP_LIMITbelow a few thousand cuts hair shading short (long streaks at 256, correct at 4096). The Series S profile goes through the title's FSR4 upscaler and stays black until an upscaler path exists (#1284/#1704). That fork's #32 fixes the Series S device removal but blacks out Series X.AI-assisted (Claude Code)
@AwkGrep256 on GitHub · 2026-11-24 23:37 UTC · original
Quick update on the Series S part: the upscaler path this was waiting on is in
mainnow. Since0b35b7f, settingVICTORY_FIDELITYFX_DIRto the FidelityFX SDK'sKits/FidelityFX/signedbinmakes the title's FidelityFX calls go to the PC upscaler on the host GPU. Series S picks FidelityFX on its own, so the black output from the failed console FSR4 passes should be gone without #1284 or #1704. On fxceless/victory-fork, which you're running, the same path is fxceless/victory-fork#86 (VICTORY_FFX_DIRthere).Two things are still open for Series S on
main:maindoesn't use that stand-in: it keeps RGB9E5 textures as RGB9E5 and makes them castable to the 32-bit formats, so that regression shouldn't carry over.I haven't run Series S on
mainmyself yet. On Series X with #1793 (which switches Series X to the same path), FSR 4.1.2 ran in the title on an RX 9070 XT at 1080p to 4K. A Series S run onmainfrom your RTX 3080 would confirm the black screen is gone on NVIDIA too.@moe-miau on GitHub · 2026-11-25 03:00 UTC · original
Same machine, same route: current
mainagainstfxceless/victory-fork, and which fork changes upstream already hasThis adds one comparison to the "resolved with the fork" update above: the same machine, the same scene and the same input, run with current upstream and with the fork, to narrow what still has to come upstream.
Setup: RTX 4070 SUPER 12 GB, driver 32.0.16.1742, Ryzen 7 7700X, 32 GB, Windows 11 26300. Title 1.0.2.1, Series X profile, diag build, a fresh shader cache per run. A save past first-boot setup, then
VICTORY_KEYSpressing Enter every 6 s from 25 s to 150 s, which reaches the intro cutscene at about 90 s. Each run is 6 minutes.main940d32f940d32f+ #1775940d32f+ #968c96b4f2The fork's frames still have a red cast, some missing face skin, and blocky geometry in places.
Two of the fork's headline fixes already exist upstream in another form:
lower.rs, theslot_strideread forBatchCullMeshletsand the other culling programs). Upstream'ss_buffer_load_dwordpath reads constant data through the resource heap as a raw buffer (heap_constants, "Constant buffers in the heap").resource.rs::alias_of, every level and layer). Upstream hasresource::alias_sourceandtexture::alias_copy, which copy every subresource with matching bytes per row and rows.So on this card, the largest difference left between the two trees is the 64-lane compute programs: upstream refuses 141-149 of them, the fork 6. The fork translates them through its own wave64 forms in
victory-shader/src/emit/mod.rs: exact per-host-wave forms first, then the forms that cost group barriers.e9765a7turned off the barrier-inside-branches form (VICTORY_WAVE_WIDE=1) after it hung the GPU on the particle light-atlas programs. That code seems the first place to look when bringing the fork's rendering upstream.A related data point from the #189 thread: #189 carried onto
70564ae(fewer refusals, 0) still left the picture black and hit the GPU watchdog, so the fork's forms appear to do something #189 does not. Not isolated further here.Counts and times only, no game data or captures attached. AI-assisted (Claude Code); runs done on my machine.
@moe-miau on GitHub · 2026-11-25 03:49 UTC · original
Correction to my comment above: the wave64 refusals are not what keeps
mainblack. #1762 is.Two runs on the same RTX 4070 SUPER and route:
fxceless/victory-forkwith its approximate wave64 fallbacks off (VICTORY_WAVE_LOCAL=0 VICTORY_WAVE_OWN_BITS=0 VICTORY_WAVE_DEEP_SKIPS=0 VICTORY_WAVE_WIDE=0): 18 pipelines refused, and the cutscene is still drawn (even faster, 1-6 fps).main940d32f+ #1775 + #1762 (the fork's structured-as-raw view conversion): the cutscene goes from black to drawn, a dim dusk city scene, with frames down from about 8 s to about 1 s, while 136 wave64 pipelines are still refused. Details: #1762So on NVIDIA the main black-world cause on current
mainis raw reads through structured views returning 0, which #1762 fixes. The refused wave64 programs come after that (the picture is still darker than the fork's).AI-assisted (Claude Code); runs done on my machine.
@Marvisak on GitHub · 2026-11-25 10:15 UTC · original
Automated triage for the maintainers.
Thanks for the measurements and the thread's follow-ups. The NVIDIA world hang and black world are tracked in #71, and the missing cutscene picture in #850. This issue stays as the hypothesis list. What
maindoes today for the code-level items:waitincrates/victory-gpu/src/queue.rsreturnsS_OKwithout waiting; its comment says nothing runs on the queue. The command-list 64-bit memory wait is a separate, confirmed defect: #700, open PR #1388.crates/victory-gpu/src/list.rs,1 << 20). Open PR #1731 addresses this.940d32f. #1762, which fixed that, was closed without merging. Open PR #2178 makes the same change and is where to test.mainsince0b35b7f(VICTORY_FIDELITYFX_DIR, README).Results for a single hypothesis are most useful as a PR or on its own issue. Please keep fork-only results to what can be brought to
main.Generated by Claude Code