After the start screen: 1841 draws/frame but a frozen frame — captured frames show the title's own dark background, not a black screen #784

Open
opened 2026-11-26 04:13:58 +00:00 by github-bot · 10 comments
Owner

@⁠bittertea0323 on GitHub · 2026-11-24 10:38 UTC · original

After the start screen: 1841 draws/frame but a frozen frame — captured frames show it is the title's own dark background, not a black screen

AI-assisted: yes
Kind: frame-capture evidence + the state sequence. No game data.

Environment

Windows 10 22H2 UBR 3393 (KB5029331) · RTX 4070 SUPER 12 GB · Ryzen 7 7800X3D · VIctory main
@ 8e79c80 + #729's two commits (Agility exports, keyboard stand-in) · diag build
(--profile diag --features diagnostics) · Agility core 1.620.2 in diag\D3D12\.

The sequence measured

account / language screen   ~21-24 draws/frame, UI text renders (verified by eye)
press Enter                 → the title advances
scene load                  ~1155-1841 draws/frame, 1 fps (1366 ms/frame)
after load                  frame content frozen, background music plays

What the captured frames prove

VICTORY_CAPTURE + VICTORY_CAPTURE_FRAMES=600,900,1200, 1920x1080 PNGs, sampled grid
(80x45 points), top colors:

frame-1      100.0% 0xff000000                       initialised frame, genuinely black
frame-256     99.8% 0xff20202C + 4 px 0xffF9F9F9      dark blue-grey + a few white pixels
frame-1200    99.8% 0xff20202C + 4 px 0xffF9F9F9      identical to frame-256

Three things follow:

  1. It is not a black screen. 0x2C2020-family dark backgrounds are the title's own UI colour;
    this one (0x20202C) matches the account screen exactly.
  2. The frame is static from frame 256 to frame 1200 — the picture does not advance while the
    title keeps presenting at 30 fps.
  3. Audio is fine (background music plays throughout), so the title's logic is running; it is the
    presented content that stops changing.

Likely cause on this host

During the same load, 27 pipelines are refused, split as:

mesh shader does not translate          → its pipelines' draws dropped
vertex shader does not translate        → its pipelines' draws dropped
compute PSO refused (0x80070057)        → compute pipeline missing

A loading screen whose progress text/bar is drawn by one of the dropped shaders would render exactly
this: the clear colour, a couple of surviving UI glyphs, and nothing moving — while the title keeps
presenting and the music keeps playing.

Request: if the loading UI is what stalls, the mesh/vertex translation failures are the thing to
chase (#156, #468 track the same classes), not the presentation path.

**@⁠bittertea0323** on GitHub · 2026-11-24 10:38 UTC · [original](https://github.com/Marvisak/VIctory/issues/784) # After the start screen: 1841 draws/frame but a frozen frame — captured frames show it is the title's own dark background, not a black screen **AI-assisted:** yes **Kind:** frame-capture evidence + the state sequence. No game data. ## Environment Windows 10 22H2 UBR 3393 (KB5029331) · RTX 4070 SUPER 12 GB · Ryzen 7 7800X3D · VIctory `main` @ `8e79c80` + #729's two commits (Agility exports, keyboard stand-in) · diag build (`--profile diag --features diagnostics`) · Agility core 1.620.2 in `diag\D3D12\`. ## The sequence measured ``` account / language screen ~21-24 draws/frame, UI text renders (verified by eye) press Enter → the title advances scene load ~1155-1841 draws/frame, 1 fps (1366 ms/frame) after load frame content frozen, background music plays ``` ## What the captured frames prove `VICTORY_CAPTURE` + `VICTORY_CAPTURE_FRAMES=600,900,1200`, 1920x1080 PNGs, sampled grid (80x45 points), top colors: ``` frame-1 100.0% 0xff000000 initialised frame, genuinely black frame-256 99.8% 0xff20202C + 4 px 0xffF9F9F9 dark blue-grey + a few white pixels frame-1200 99.8% 0xff20202C + 4 px 0xffF9F9F9 identical to frame-256 ``` Three things follow: 1. It is **not** a black screen. `0x2C2020`-family dark backgrounds are the title's own UI colour; this one (`0x20202C`) matches the account screen exactly. 2. The frame is **static from frame 256 to frame 1200** — the picture does not advance while the title keeps presenting at 30 fps. 3. Audio is fine (background music plays throughout), so the title's logic is running; it is the presented content that stops changing. ## Likely cause on this host During the same load, 27 pipelines are refused, split as: ``` mesh shader does not translate → its pipelines' draws dropped vertex shader does not translate → its pipelines' draws dropped compute PSO refused (0x80070057) → compute pipeline missing ``` A loading screen whose progress text/bar is drawn by one of the dropped shaders would render exactly this: the clear colour, a couple of surviving UI glyphs, and nothing moving — while the title keeps presenting and the music keeps playing. Request: if the loading UI is what stalls, the mesh/vertex translation failures are the thing to chase (#156, #468 track the same classes), not the presentation path.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:13:58 +00:00
Author
Owner

@⁠bittertea0323 on GitHub · 2026-11-24 10:39 UTC · original

Translation-failure breakdown from the same run (for prioritisation)

Every shader does not translate in this run, grouped by the converter's own message:

32x  GFX10 code at 0x..: an address in an SGPR that is no root parameter is not supported
 3x  GFX10 code at 0x..: a descriptor read only as data is not supported
 3x  GFX10 code at 0x..: a lane mask read as data is not supported
 3x  GFX10 code at 0x..: a structured buffer of unknown stride is not supported
 3x  GFX10 code at 0x..: a 64-bit image atomic is not supported
 3x  GFX10 code at 0x..: a structured buffer of unknown stride is not supported (other offsets)
 2x  GFX10 code at 0x..: image_gather4_l is not supported
 1x  GFX10 code at 0x..: image_gather4_l is not supported (other offsets)

Notes on what each would unlock, from the shader hashes they come from:

  • SGPR indirect address (32x) — by far the dominant class. These are the shaders whose
    descriptor base is computed into an SGPR instead of arriving as a root parameter. Supporting
    one level of SGPR-indirect descriptor base would clear the largest group at once.
  • descriptor read only as data / lane mask read as data (6x) — reads a descriptor or EXEC
    value as plain data. Likely a single lowering rule each.
  • structured buffer of unknown stride (6x) — the stride comes from a register at runtime.
    Needs the DXIL side to carry a dynamic stride (or clamp to a documented set).
  • 64-bit image atomic (3x) — image_atomic_* on 64-bit types.
  • image_gather4_l (3x) — gather with an explicit lod.

Comma-separated hashes are available in the log if useful; nothing game-specific is quoted here.

**@⁠bittertea0323** on GitHub · 2026-11-24 10:39 UTC · [original](https://github.com/Marvisak/VIctory/issues/784#issuecomment-7129065353) ## Translation-failure breakdown from the same run (for prioritisation) Every `shader does not translate` in this run, grouped by the converter's own message: ``` 32x GFX10 code at 0x..: an address in an SGPR that is no root parameter is not supported 3x GFX10 code at 0x..: a descriptor read only as data is not supported 3x GFX10 code at 0x..: a lane mask read as data is not supported 3x GFX10 code at 0x..: a structured buffer of unknown stride is not supported 3x GFX10 code at 0x..: a 64-bit image atomic is not supported 3x GFX10 code at 0x..: a structured buffer of unknown stride is not supported (other offsets) 2x GFX10 code at 0x..: image_gather4_l is not supported 1x GFX10 code at 0x..: image_gather4_l is not supported (other offsets) ``` Notes on what each would unlock, from the shader hashes they come from: - **SGPR indirect address (32x)** — by far the dominant class. These are the shaders whose descriptor base is computed into an SGPR instead of arriving as a root parameter. Supporting one level of SGPR-indirect descriptor base would clear the largest group at once. - **descriptor read only as data / lane mask read as data (6x)** — reads a descriptor or EXEC value as plain data. Likely a single lowering rule each. - **structured buffer of unknown stride (6x)** — the stride comes from a register at runtime. Needs the DXIL side to carry a dynamic stride (or clamp to a documented set). - **64-bit image atomic (3x)** — `image_atomic_*` on 64-bit types. - **image_gather4_l (3x)** — gather with an explicit lod. Comma-separated hashes are available in the log if useful; nothing game-specific is quoted here.
Author
Owner

@⁠bittertea0323 on GitHub · 2026-11-24 11:22 UTC · original

Series S mode is the safe way to run this title on a 32 GB machine (memory comparison)

Practical follow-up to #784: on this host, Series X mode drives victory.exe to 13.2 GB RSS and
the machine becomes unusable (a watchdog had to kill it at 13.2 GB; a full system wedge followed).
Series S mode is four times lighter and stays well clear of trouble.

Measured, same binary (latest main + #729 exports), same title

                    Series X          Series S
process RSS          13.2 GB           3.4 GB       (~1/4)
system free RAM      near zero         16.9-17.0 GB
fps                  1.5              30.0
draws/frame          up to 2334       8
wedge risk           high             none observed

Series S also reaches the video cutscene with the same two texture allocation failures, at 1280-wide
instead of 2560-wide, so it does not sidestep the format problem (#797) — it only removes the memory
hazard.

Two notes for the record

  1. 13.2 GB is the failure threshold on a 31.2 GB box. With Windows itself plus the browser this
    session used, there is only ~17 GB of headroom, so a title process at 13 GB is one allocation
    spike away from freezing the desktop. Anyone testing the world on 32 GB should use
    --console series-s unless they want to lose the machine.
  2. Closing the window while wedged ends the title with "did not finish suspending in time", which
    looks like a crash in the log but is the title-routine suspend timing out. Worth wording
    distinctly in the log so testers do not report it as a 0xC0000005.

Host: Windows 10 22H2 UBR 3393, RTX 4070 SUPER 12 GB, Ryzen 7 7800X3D, 31.2 GB RAM.

**@⁠bittertea0323** on GitHub · 2026-11-24 11:22 UTC · [original](https://github.com/Marvisak/VIctory/issues/784#issuecomment-7130023760) # Series S mode is the safe way to run this title on a 32 GB machine (memory comparison) Practical follow-up to #784: on this host, Series X mode drives `victory.exe` to **13.2 GB RSS** and the machine becomes unusable (a watchdog had to kill it at 13.2 GB; a full system wedge followed). Series S mode is four times lighter and stays well clear of trouble. ## Measured, same binary (latest `main` + #729 exports), same title ``` Series X Series S process RSS 13.2 GB 3.4 GB (~1/4) system free RAM near zero 16.9-17.0 GB fps 1.5 30.0 draws/frame up to 2334 8 wedge risk high none observed ``` Series S also reaches the video cutscene with the same two texture allocation failures, at 1280-wide instead of 2560-wide, so it does not sidestep the format problem (#797) — it only removes the memory hazard. ## Two notes for the record 1. **13.2 GB is the failure threshold on a 31.2 GB box.** With Windows itself plus the browser this session used, there is only ~17 GB of headroom, so a title process at 13 GB is one allocation spike away from freezing the desktop. Anyone testing the world on 32 GB should use `--console series-s` unless they want to lose the machine. 2. **Closing the window while wedged ends the title with "did not finish suspending in time"**, which looks like a crash in the log but is the title-routine suspend timing out. Worth wording distinctly in the log so testers do not report it as a 0xC0000005. Host: Windows 10 22H2 UBR 3393, RTX 4070 SUPER 12 GB, Ryzen 7 7800X3D, 31.2 GB RAM.
Author
Owner

@⁠bittertea0323 on GitHub · 2026-11-24 11:29 UTC · original

Copy-cost diagnosis: write-watch works (0 fallbacks), the cost is page faults, not bulk copying

Follow-up to #784's perf note. I suspected the 130-250 MB/frame copies were a write-watch failure
falling back to whole-buffer copies. That is not what happens. Measured with the diagnostics build
(copies per frame in the log):

copies per frame: 3.0 submissions; 11 title copies 0.0 MB; 12 refreshes 9.4 MB;
                  0 skipped 0.0 MB; 2 runs 0.0 ms; 0 queries 0.00 ms, moves 0.02 ms,
                  0.00 MB unmapped; 8748 page faults;
                  2 watches 0.04 ms, 2.6 MB checked, 2.5 MB unchanged;
                  0.0 fallbacks; 1 guard faults

What this says

  1. 0.0 fallbacks — the write-watch/guard path is doing its job; nothing degrades to a whole-copy.
  2. 2.6 MB checked, 2.5 MB unchanged — 96% of the watched pages are correctly skipped. The
    mechanism is efficient at the page level.
  3. 8748 page faults in one frame (356 in a lighter one) — this is the actual expense. Each fault
    flips page permissions and re-checks; at ~5 us each, 8748 faults ≈ 40 ms before any copying
    happens. In the scene the frame showed copies 342 ms / 253.6 MB, which is consistent with the
    fault cost plus genuinely-dirty pages.

So the optimisation target is not the watcher

The scene's 253.6 MB/frame is real dirty data (the title writes that much), and the overhead on
top is the fault storm. Two directions worth measuring, both cheaper than the alternatives:

  • Coalesce faults per submission — the copy already collects ranges per submission; if the guard
    is flipped page by page, batching the permission changes (or using VirtualProtect on the whole
    span once, then hashing the pages) should remove most of the 8748.
  • Per-page dirty bitmap on the host instead of faults — shadow.rs already notes this
    ("a GPU-side dirty mask would save that if big ranges make it slow"). For the scene the ranges are
    big; a single 64 KiB-granular dirty map filled by an upload-side hash may beat 8 k faults.

Honest limitation

These numbers are the menu stage (9.4 MB/frame, ~2-8 k faults). I did not manage to capture
copies per frame for the 1841-draw scene in the same run — the scene reaches 253 MB/frame and the
process was stopped for memory safety (13.2 GB RSS, see my #784 note). Anyone with more headroom
should capture the same line during world load; that number decides which of the two directions above
is the right one.

Host: Windows 10 22H2 UBR 3393, RTX 4070 SUPER 12 GB, diag build, Agility 1.620.2.

**@⁠bittertea0323** on GitHub · 2026-11-24 11:29 UTC · [original](https://github.com/Marvisak/VIctory/issues/784#issuecomment-7130166535) # Copy-cost diagnosis: write-watch works (0 fallbacks), the cost is page faults, not bulk copying Follow-up to #784's perf note. I suspected the 130-250 MB/frame copies were a write-watch failure falling back to whole-buffer copies. **That is not what happens.** Measured with the diagnostics build (`copies per frame` in the log): ``` copies per frame: 3.0 submissions; 11 title copies 0.0 MB; 12 refreshes 9.4 MB; 0 skipped 0.0 MB; 2 runs 0.0 ms; 0 queries 0.00 ms, moves 0.02 ms, 0.00 MB unmapped; 8748 page faults; 2 watches 0.04 ms, 2.6 MB checked, 2.5 MB unchanged; 0.0 fallbacks; 1 guard faults ``` ## What this says 1. **`0.0 fallbacks`** — the write-watch/guard path is doing its job; nothing degrades to a whole-copy. 2. **`2.6 MB checked, 2.5 MB unchanged`** — 96% of the watched pages are correctly skipped. The mechanism is efficient at the page level. 3. **`8748 page faults`** in one frame (356 in a lighter one) — this is the actual expense. Each fault flips page permissions and re-checks; at ~5 us each, 8748 faults ≈ 40 ms before any copying happens. In the scene the frame showed `copies 342 ms / 253.6 MB`, which is consistent with the fault cost plus genuinely-dirty pages. ## So the optimisation target is not the watcher The scene's 253.6 MB/frame is **real dirty data** (the title writes that much), and the overhead on top is the fault storm. Two directions worth measuring, both cheaper than the alternatives: - **Coalesce faults per submission** — the copy already collects ranges per submission; if the guard is flipped page by page, batching the permission changes (or using `VirtualProtect` on the whole span once, then hashing the pages) should remove most of the 8748. - **Per-page dirty bitmap on the host instead of faults** — `shadow.rs` already notes this ("a GPU-side dirty mask would save that if big ranges make it slow"). For the scene the ranges are big; a single 64 KiB-granular dirty map filled by an upload-side hash may beat 8 k faults. ## Honest limitation These numbers are the **menu stage** (9.4 MB/frame, ~2-8 k faults). I did not manage to capture `copies per frame` for the 1841-draw scene in the same run — the scene reaches 253 MB/frame and the process was stopped for memory safety (13.2 GB RSS, see my #784 note). Anyone with more headroom should capture the same line during world load; that number decides which of the two directions above is the right one. Host: Windows 10 22H2 UBR 3393, RTX 4070 SUPER 12 GB, diag build, Agility 1.620.2.
Author
Owner

@⁠bittertea0323 on GitHub · 2026-11-24 11:40 UTC · original

Correcting my earlier reading with the engine-breakdown numbers. nvidia-smi separates "any engine busy"
from the memory controller, and the app's own GPU time tells the same story:

t+12s  GPU 11%  memctrl 8%   VRAM  6404 MiB
t+36s  GPU 38%  memctrl 7%   VRAM  6483 MiB
t+72s  GPU 23%  memctrl 2%   VRAM 11262 MiB

and per frame at the menu: 30.0 fps, 33.3 ms/frame (... 2.2 on the GPU ...), 12 draws/frame.

So at the menu the GPU spends 2.2 ms of a 33.3 ms frame (6%) — it is nearly idle, which is what a
task-manager style view shows as "GPU not working". That is not the problem at this stage.

The problem is the other number: VRAM reaches 11262 MiB of 12282 MiB (92-95%) while the menu is
still up.
Once it is that full the driver starts evicting, GPU utilisation drops and the frame rate
collapses — which is what makes it look like the GPU stopped.

For contrast, the scene-stage figure measured earlier on this host was 198.4 on the GPU per frame,
so the GPU is not under-utilised in the world either; it simply cannot keep enough resident.

What this changes

The ceiling to attack is residency, not shading throughput:

  • the title asks for more VRAM than a 12 GB card has, before the world is even visible;
  • a memory-budget knob (or reporting the budget from MicrosoftGame.Config, which the console build
    does have) would let the title trim instead of thrashing;
  • until then, on a 12 GB card, missing shaders cost draws and the VRAM ceiling costs frames — two
    separate limits hit at once.
**@⁠bittertea0323** on GitHub · 2026-11-24 11:40 UTC · [original](https://github.com/Marvisak/VIctory/issues/784#issuecomment-7130392245) Correcting my earlier reading with the engine-breakdown numbers. `nvidia-smi` separates "any engine busy" from the memory controller, and the app's own GPU time tells the same story: ``` t+12s GPU 11% memctrl 8% VRAM 6404 MiB t+36s GPU 38% memctrl 7% VRAM 6483 MiB t+72s GPU 23% memctrl 2% VRAM 11262 MiB ``` and per frame at the menu: `30.0 fps, 33.3 ms/frame (... 2.2 on the GPU ...), 12 draws/frame`. So at the menu the GPU spends **2.2 ms of a 33.3 ms frame (6%)** — it is nearly idle, which is what a task-manager style view shows as "GPU not working". That is not the problem at this stage. The problem is the other number: **VRAM reaches 11262 MiB of 12282 MiB (92-95%) while the menu is still up.** Once it is that full the driver starts evicting, GPU utilisation drops and the frame rate collapses — which is what makes it look like the GPU stopped. For contrast, the scene-stage figure measured earlier on this host was `198.4 on the GPU` per frame, so the GPU is not under-utilised in the world either; it simply cannot keep enough resident. ## What this changes The ceiling to attack is **residency**, not shading throughput: - the title asks for more VRAM than a 12 GB card has, before the world is even visible; - a memory-budget knob (or reporting the budget from `MicrosoftGame.Config`, which the console build does have) would let the title trim instead of thrashing; - until then, on a 12 GB card, missing shaders cost draws and the VRAM ceiling costs frames — two separate limits hit at once.
Author
Owner

@⁠Olliee96 on GitHub · 2026-11-24 18:13 UTC · original

The SGPR spill-table failure is already addressed by PR #302, “Shaders: read root arguments the console spills to memory”. It directly targets the reported an address in an SGPR that is no root parameter error.

**@⁠Olliee96** on GitHub · 2026-11-24 18:13 UTC · [original](https://github.com/Marvisak/VIctory/issues/784#issuecomment-7140327251) The SGPR spill-table failure is already addressed by PR #302, “Shaders: read root arguments the console spills to memory”. It directly targets the reported an address in an SGPR that is no root parameter error.
Author
Owner

@⁠Marvisak on GitHub · 2026-11-25 03:52 UTC · original · edited 2026-11-26 00:47 UTC

Automated triage for the maintainers.

Thanks for the captures. They show the frame really is static, not black. The run (RTX 4070 SUPER, Windows 10 22H2 with an app-local Agility runtime, 8e79c80 + #729, diag build) drops draws of mesh, vertex and compute pipelines that do not translate, and some compute pipelines are refused with 0x80070057. That is the NVIDIA world-load failure tracked in #71, the oldest complete report, with the refused compute pipelines covered in #468. Please follow it there. The memory notes match what #471 tracks (commit limit during world load). If you post again, please add the NVIDIA driver version and say whether current main (63bcca4) still stops at the same frame.

Black opening cutscene on an RTX 3060 (Olliee96, in Portuguese), latest findings:

  • The exposure lead is ruled out: the 1x1 exposure value read by the final colour pass is normal (0.0221); the colour it receives is already zero.
  • The lighting passes that should produce that colour run with an indirect group count of X=0 every captured frame, although the G-buffer and depth are filled. The count is reset each frame and, of all dropped commands checked, only one compute shader covers it: a wave64 classifier-like shader (atomic umax/add writing group counts) that is dropped about 6 times per frame because its translation fails for a lane reading the other half of a wave64 on a 32-lane host. Not yet confirmed that its descriptors point at the count.
  • If confirmed, this is a wave64-on-32-lane translation gap (the dispatch-dropping class also seen in #1753's follow-ups), not a presentation problem. The quoted error text does not appear verbatim in crates/victory-shader on 63bcca4, so please say which commit the run used and paste the exact log line.

A Ryzen 5 7530U (integrated Radeon) user sees the same black opening cutscene with audio. That is a different GPU vendor, so please open a separate run report with the VIctory commit, GPU driver and Windows version, how far it gets, and the error lines from the log or crashes.log, rather than adding it here.


Generated by Claude Code

**@⁠Marvisak** on GitHub · 2026-11-25 03:52 UTC · [original](https://github.com/Marvisak/VIctory/issues/784#issuecomment-7152321312) · edited 2026-11-26 00:47 UTC <!-- victory-issue-triage v1 verdict=tracked seen=2026-11-25T22:17:41Z at=2026-11-26T00:50:00Z --> Automated triage for the maintainers. Thanks for the captures. They show the frame really is static, not black. The run (RTX 4070 SUPER, Windows 10 22H2 with an app-local Agility runtime, `8e79c80` + #729, diag build) drops draws of mesh, vertex and compute pipelines that do not translate, and some compute pipelines are refused with `0x80070057`. That is the NVIDIA world-load failure tracked in **#71**, the oldest complete report, with the refused compute pipelines covered in #468. Please follow it there. The memory notes match what #471 tracks (commit limit during world load). If you post again, please add the NVIDIA driver version and say whether current `main` (`63bcca4`) still stops at the same frame. Black opening cutscene on an RTX 3060 (Olliee96, in Portuguese), latest findings: - The exposure lead is ruled out: the 1x1 exposure value read by the final colour pass is normal (0.0221); the colour it receives is already zero. - The lighting passes that should produce that colour run with an indirect group count of `X=0` every captured frame, although the G-buffer and depth are filled. The count is reset each frame and, of all dropped commands checked, only one compute shader covers it: a wave64 classifier-like shader (atomic `umax`/`add` writing group counts) that is dropped about 6 times per frame because its translation fails for a lane reading the other half of a wave64 on a 32-lane host. Not yet confirmed that its descriptors point at the count. - If confirmed, this is a wave64-on-32-lane translation gap (the dispatch-dropping class also seen in #1753's follow-ups), not a presentation problem. The quoted error text does not appear verbatim in `crates/victory-shader` on `63bcca4`, so please say which commit the run used and paste the exact log line. A Ryzen 5 7530U (integrated Radeon) user sees the same black opening cutscene with audio. That is a different GPU vendor, so please open a separate run report with the VIctory commit, GPU driver and Windows version, how far it gets, and the error lines from the log or `crashes.log`, rather than adding it here. --- _Generated by [Claude Code](https://claude.ai/code)_
Author
Owner

@⁠109User109 on GitHub · 2026-11-25 20:24 UTC · original

I'm experiencing something similar on my Ryzen 5 7530U with integrated AMD Radeon graphics.
I can hear Jason and Lucia arguing during the opening cutscene, but the screen is completely black and the FPS counter stays at 0.
Not sure if it's the same underlying issue, though. Has anyone found a workaround yet?

**@⁠109User109** on GitHub · 2026-11-25 20:24 UTC · [original](https://github.com/Marvisak/VIctory/issues/784#issuecomment-7173620998) I'm experiencing something similar on my Ryzen 5 7530U with integrated AMD Radeon graphics. I can hear Jason and Lucia arguing during the opening cutscene, but the screen is completely black and the FPS counter stays at 0. Not sure if it's the same underlying issue, though. Has anyone found a workaround yet?
Author
Owner

@⁠Olliee96 on GitHub · 2026-11-25 20:30 UTC · original

Pessoal, avancei na investigação da tela preta na intro do GTA VI pelo VIctory, na RTX 3060. Consegui ver a rua da cena do Jason em uma textura intermediária, enquanto o quadro que chega à tela continua preto. Dá para reconhecer os postes, os semáforos, os cones e até os fios. Isso ajudou a localizar melhor o problema, mas ainda estou investigando a causa.

Comecei olhando o desempenho porque, quando entra a cena do Jason roubando o carro, o contador chega a marcar 0–1 FPS e só aparecem os banners e créditos. Minha primeira impressão era que o jogo tinha parado de desenhar o mundo. A captura mostrou que a GPU continua recebendo trabalho e chega a produzir parte da cena 3D. O que observei até agora é que a queda de FPS coincide com a tela preta. Ainda não consegui demonstrar que uma coisa causa a outra. Os créditos parecem ser compostos em uma camada 2D separada, o que explicaria por que continuam visíveis.

Para quem está depurando o mesmo trecho, usei o primeiro quadro com pelo menos 500 draws como referência, porque a numeração muda entre as rodadas. Capturei 80 quadros depois, no quadro 2258 dessa execução. Nas texturas escritas pelo compute f0c91b4d2578f5bf, a geometria da rua está visível. Uma saída do 34fb51b8a0312e82 também mostra as normais da cena, que indicam a orientação das superfícies. Já várias texturas posteriores que estou rastreando aparecem pretas, assim como a imagem final.

Agora estou seguindo o caminho da geometria até a cor que chega à tela. Nesse mesmo quadro, quatro shaders de redução wave64 tiveram execuções descartadas. Só o 660814153af43185 apareceu 104 vezes. Também houve recusas do driver para o pipeline caf96a3229145fa6. Uma hipótese é que algum desses passes deveria produzir um valor usado na iluminação ou na exposição. Para testar isso, estou cruzando os buffers que cada passe descartado deveria preencher com os que o passe de cor realmente lê.

Estou mais perto de identificar onde a cena fica preta. A próxima confirmação é apontar um recurso específico, mostrar qual passe deveria preenchê-lo e verificar se, ao corrigir esse passe, a cor da cena volta.

**@⁠Olliee96** on GitHub · 2026-11-25 20:30 UTC · [original](https://github.com/Marvisak/VIctory/issues/784#issuecomment-7173774948) Pessoal, avancei na investigação da tela preta na intro do GTA VI pelo VIctory, na RTX 3060. **Consegui ver a rua da cena do Jason em uma textura intermediária, enquanto o quadro que chega à tela continua preto.** Dá para reconhecer os postes, os semáforos, os cones e até os fios. Isso ajudou a localizar melhor o problema, mas ainda estou investigando a causa. Comecei olhando o desempenho porque, quando entra a cena do Jason roubando o carro, o contador chega a marcar 0–1 FPS e só aparecem os banners e créditos. Minha primeira impressão era que o jogo tinha parado de desenhar o mundo. A captura mostrou que a GPU continua recebendo trabalho e chega a produzir parte da cena 3D. O que observei até agora é que a queda de FPS coincide com a tela preta. Ainda não consegui demonstrar que uma coisa causa a outra. Os créditos parecem ser compostos em uma camada 2D separada, o que explicaria por que continuam visíveis. Para quem está depurando o mesmo trecho, usei o primeiro quadro com pelo menos 500 draws como referência, porque a numeração muda entre as rodadas. Capturei 80 quadros depois, no quadro **2258** dessa execução. Nas texturas escritas pelo compute `f0c91b4d2578f5bf`, a geometria da rua está visível. Uma saída do `34fb51b8a0312e82` também mostra as normais da cena, que indicam a orientação das superfícies. Já várias texturas posteriores que estou rastreando aparecem pretas, assim como a imagem final. Agora estou seguindo o caminho da **geometria até a cor que chega à tela**. Nesse mesmo quadro, quatro shaders de redução wave64 tiveram execuções descartadas. Só o `660814153af43185` apareceu 104 vezes. Também houve recusas do driver para o pipeline `caf96a3229145fa6`. Uma hipótese é que algum desses passes deveria produzir um valor usado na iluminação ou na exposição. Para testar isso, estou cruzando os buffers que cada passe descartado deveria preencher com os que o passe de cor realmente lê. Estou mais perto de identificar **onde a cena fica preta**. A próxima confirmação é apontar um recurso específico, mostrar qual passe deveria preenchê-lo e verificar se, ao corrigir esse passe, a cor da cena volta.
Author
Owner

@⁠Olliee96 on GitHub · 2026-11-25 20:31 UTC · original

Os dispatches descartados não aparecem no trace porque não têm pipeline no host, então estou registrando os descritores de usuário do console no ponto do descarte para cruzar com os passes pretos.

Compilei o diagnóstico novo e estou localizando o executável gerado para rodar o trace.

Saiu a primeira leva do trace. Já tenho os bindings de duas das reduções descartadas. Agora vou ver o que os passes que saem pretos leem.

O limite do log foi gasto logo no início da cena, com os próprios descartes. Vou limitar por shader e só começar a contar a partir de N quadros depois do início da cena.

Estou cruzando os endereços que as reduções descartadas escrevem com os que os passes pretos leem. Primeiro preciso entender o formato das views das texturas no trace.

O cruzamento por endereço não mostrou dependência real, então não conto como prova. A pista melhor é o passe 34fb51b8, que lê uma textura 1×1 com cara de valor de exposição; vou ver quem escreve nela.

Encontrei a causa: a textura 1×1 RGBA32F que alterna entre dois endereços a cada quadro é lida pelos quatro passes que ficam pretos. Agora vou verificar o valor numérico dela.

Tiny targets' raw values are logged. Let me read them from the world run log.

Values are on continuation lines; I'll pull them with context.

Tracking down who writes the 1×1 texture the scene passes read (likely exposure). I've already captured the eight candidates; now I'm cross-checking their outputs.

Nenhum dos 8 shaders rastreados escreve a textura de exposição que a cena lê, então o escritor dela continua desconhecido. Rodei o trace3 (night-trace3-20261125-171721, início do mundo no quadro 2734, rastreado a partir de mundo+78).

A cadeia de luminância (todos executaram):

  • fc377576 escreve três texturas 2×1 f2 (d69490000, d69450000, d694b0000).
  • 92298455 lê essas três e escreve uma 5×1 (d694c0000).
  • b0095eb5 lê e reescreve d69450000 e duas texturas 2×2.
  • e622b718 lê a 5×1, escreve uma 1×1 f2 (d694f0000) e um buffer de 16 bytes com [0.1, 0.2, -3.3219, 1.0] (-3.32 é log2(0.1), cara de parâmetros de exposição).

Valores do quadro 2258 (mundo+80) no world run:

  • Saída 1×1 do e622b718: 1e-6 nos quatro canais.
  • Texturas 2×1 do fc377576: entre 8e-7 e 1e-6, e uma delas toda zero.
  • 5×1 do 92298455: valor máximo 0.00156.

Isso é o que se espera de uma luminância medida numa cena preta, com um piso de 1e-6. Os dados indicam que essa cadeia é consequência do preto, e não a causa. Ainda não está provado.

O que fica em aberto:

  • 34fb51b8 lê a 1×1 em d695c0000 / d695d0000, alternando a cada quadro. Nenhum dos 8 shaders rastreados escreve nesses endereços. Pode ser uma cópia da d694f0000, um shader fora da lista ou um dos descartados.
  • Segundo o trace2, os mesmos dois endereços também são lidos por 34992f2b, 71883e40 e df11dcd0. O trace3 não incluiu esses três.
  • Só tenho o resumo numérico dessas 1×1 (mínimo, máximo, mediana). Os valores exatos por texel não estão no log, e ainda não sei qual textura dumpada corresponde a d695c0000.

Por isso ainda não fiz o replay com valor neutro. Sem saber quem escreve a textura e qual valor exato o consumidor lê, ele não provaria a dependência.

Próximo passo: acrescentar um VICTORY_TRACE_MEM=0xd695c0000,0xd695d0000 que registre qualquer dispatch, draw, cópia ou comando descartado que tenha esses endereços como destino. Com isso saem o escritor e o valor bruto lido pelo 34fb51b8. Se for 1e-6 ou zero e controlar a cor, faço o replay só com esse valor trocado por um neutro. Se não for, volto às saídas f42 pretas do 34fb51b8 e aos descartados 66081415 e caf96a32, que ainda não apareceram em nenhuma janela.

Nada foi commitado e o patch 1 continua separado.

**@⁠Olliee96** on GitHub · 2026-11-25 20:31 UTC · [original](https://github.com/Marvisak/VIctory/issues/784#issuecomment-7173800135) Os dispatches descartados não aparecem no trace porque não têm pipeline no host, então estou registrando os descritores de usuário do console no ponto do descarte para cruzar com os passes pretos. Compilei o diagnóstico novo e estou localizando o executável gerado para rodar o trace. Saiu a primeira leva do trace. Já tenho os bindings de duas das reduções descartadas. Agora vou ver o que os passes que saem pretos leem. O limite do log foi gasto logo no início da cena, com os próprios descartes. Vou limitar por shader e só começar a contar a partir de N quadros depois do início da cena. Estou cruzando os endereços que as reduções descartadas escrevem com os que os passes pretos leem. Primeiro preciso entender o formato das views das texturas no trace. O cruzamento por endereço não mostrou dependência real, então não conto como prova. A pista melhor é o passe `34fb51b8`, que lê uma textura 1×1 com cara de valor de exposição; vou ver quem escreve nela. Encontrei a causa: a textura 1×1 RGBA32F que alterna entre dois endereços a cada quadro é lida pelos quatro passes que ficam pretos. Agora vou verificar o valor numérico dela. Tiny targets' raw values are logged. Let me read them from the world run log. Values are on continuation lines; I'll pull them with context. Tracking down who writes the 1×1 texture the scene passes read (likely exposure). I've already captured the eight candidates; now I'm cross-checking their outputs. Nenhum dos 8 shaders rastreados escreve a textura de exposição que a cena lê, então o escritor dela continua desconhecido. Rodei o trace3 (`night-trace3-20261125-171721`, início do mundo no quadro 2734, rastreado a partir de mundo+78). **A cadeia de luminância (todos executaram):** - `fc377576` escreve três texturas 2×1 f2 (`d69490000`, `d69450000`, `d694b0000`). - `92298455` lê essas três e escreve uma 5×1 (`d694c0000`). - `b0095eb5` lê e reescreve `d69450000` e duas texturas 2×2. - `e622b718` lê a 5×1, escreve uma 1×1 f2 (`d694f0000`) e um buffer de 16 bytes com `[0.1, 0.2, -3.3219, 1.0]` (-3.32 é log2(0.1), cara de parâmetros de exposição). **Valores do quadro 2258 (mundo+80) no world run:** - Saída 1×1 do `e622b718`: 1e-6 nos quatro canais. - Texturas 2×1 do `fc377576`: entre 8e-7 e 1e-6, e uma delas toda zero. - 5×1 do `92298455`: valor máximo 0.00156. Isso é o que se espera de uma luminância medida numa cena preta, com um piso de 1e-6. Os dados indicam que essa cadeia é consequência do preto, e não a causa. Ainda não está provado. **O que fica em aberto:** - `34fb51b8` lê a 1×1 em `d695c0000` / `d695d0000`, alternando a cada quadro. Nenhum dos 8 shaders rastreados escreve nesses endereços. Pode ser uma cópia da `d694f0000`, um shader fora da lista ou um dos descartados. - Segundo o trace2, os mesmos dois endereços também são lidos por `34992f2b`, `71883e40` e `df11dcd0`. O trace3 não incluiu esses três. - Só tenho o resumo numérico dessas 1×1 (mínimo, máximo, mediana). Os valores exatos por texel não estão no log, e ainda não sei qual textura dumpada corresponde a `d695c0000`. Por isso ainda não fiz o replay com valor neutro. Sem saber quem escreve a textura e qual valor exato o consumidor lê, ele não provaria a dependência. **Próximo passo:** acrescentar um `VICTORY_TRACE_MEM=0xd695c0000,0xd695d0000` que registre qualquer dispatch, draw, cópia ou comando descartado que tenha esses endereços como destino. Com isso saem o escritor e o valor bruto lido pelo `34fb51b8`. Se for 1e-6 ou zero e controlar a cor, faço o replay só com esse valor trocado por um neutro. Se não for, volto às saídas f42 pretas do `34fb51b8` e aos descartados `66081415` e `caf96a32`, que ainda não apareceram em nenhuma janela. Nada foi commitado e o patch 1 continua separado.
Author
Owner

@⁠Olliee96 on GitHub · 2026-11-25 22:17 UTC · original

O runner já aperta Enter sozinho (VICTORY_KEYS: Enter aos 45, 60, 75, 90 e 105 s). Mesmo assim, nesta rodada o consumo do 2dc364df não apareceu, e houve 1 descarte cobrindo o X. Vejo os dois.

Apareceu um candidato concreto: 8dd8d739, dispatch 257×1×1 descartado (sem pipeline no host), e uma faixa dele cobre o X. Vejo qual slot e qual offset.

O descritor aparece de novo na janela de 8 entradas, então vou verificar se o shader o usa; o caso importa porque o shader nunca roda, com cerca de 6 descartes por quadro e sem pipeline no host. Vou desmontá-lo.

Achei a peça que faltava: 8dd8d739 parece um classificador, e a tradução dele falha com "a lane of the other half of a wave64 on a 32-lane host", o mesmo problema de wave64 levantado no início. Vou conferir se a tabela usada no atômico aponta para o registro do X.

Ele aponta s5 como a segunda tabela (root1, 915795), com os atômicos nos descritores 915799 e 915801. Vou checar para onde esses índices apontam.

Você pediu um resumo, então paro aqui. A próxima rodada é curta e só confirma os descritores 915799/915801 (o log desta cortou o texto).

Onde está a tela preta

Na intro, a imagem 3D sai preta porque a passada de iluminação nunca roda. A cadeia, de trás para frente:

  1. 34fb51b8 (o passe que junta a cor) recebe a cor já zerada. O valor de exposição é normal (0,0221), mas zero dividido por qualquer coisa continua zero. A pista da exposição está descartada.
  2. A cor deveria vir de 2dc364df e 940c2635. As entradas deles têm dados: G-buffer e profundidade estão preenchidos, então a geometria está sendo desenhada. Mesmo assim eles executam zero grupos, porque a contagem que recebem é X=0.
  3. 3e7c51f5 zera essa contagem a cada quadro, o que é normal. Algum passe deveria preenchê-la depois.
  4. Testei os outros candidatos (512416d9, 91b10a73, b83629b9 e três indiretos) pela desmontagem. Nenhum deles toca nessa contagem.
  5. Candidato forte: 8dd8d739.
    • Nunca roda: é descartado cerca de 6 vezes por quadro, porque a tradução dele falha com "a lane of the other half of a wave64 on a 32-lane host".
    • Faz o que um classificador faz: atômicos umax/add em registros de 32 bytes, gravando uma contagem de grupos.
    • Ele está ligado à mesma tabela de descritores onde está a contagem.

Se isso se confirmar, o motivo da tela preta seria: um shader wave64 que o emulador não consegue traduzir deixa de rodar, a contagem fica 0, a iluminação não roda e a cena sai preta.

O que já foi testado no render

  • Exposição e o texel 1×1: estão normais e não são a causa.
  • Valores reais da cor antes e depois de cada passe, na mesma execução: zerados desde os produtores.
  • Argumentos indiretos lidos no momento do consumo: [0,1,1] em todos os quadros capturados.
  • Todos os escritores possíveis do X entre o reset e o consumo, incluindo comandos descartados. Censo desta rodada: 76.216 descartes. Desses, 20.000 tiveram as faixas checadas, porque o log tem limite. Só um shader descartado cobre o X: o 8dd8d739.

O que falta

  1. Confirmar que os descritores 915799 e 915801 do 8dd8d739 apontam para os registros do X. É uma rodada.
  2. Corrigir a tradução wave64 desse shader, para o caso de uma lane ler a outra metade da wave. Antes, testar na RTX 3060 com os casos de redução combinados.
  3. Medir que o X fica maior que zero, que a cor aparece na saída do 2dc364df e que ela chega à tela.
  4. Comparar as imagens antes e depois no mesmo ponto da intro. Só aí dá para dizer que está resolvido.

Você ainda não viu mudança porque até agora tudo foi diagnóstico. Nenhuma correção entrou no render.

Sobre o Enter: o run-cap.ps1 já aperta Enter sozinho aos 45, 60, 75, 90 e 105 s, e as rodadas chegaram à cena. Mas nesta última o consumo do 2dc364df não apareceu no log, então pode ter faltado um Enter para chegar à cena. Se a forma de depurar que você quis dizer é outra, me diga qual é e eu uso.

Nada foi commitado. As mudanças estão em draw.rs, host.rs e list.rs, só sob a feature diagnostics.

**@⁠Olliee96** on GitHub · 2026-11-25 22:17 UTC · [original](https://github.com/Marvisak/VIctory/issues/784#issuecomment-7176181634) O runner já aperta Enter sozinho (`VICTORY_KEYS`: Enter aos 45, 60, 75, 90 e 105 s). Mesmo assim, nesta rodada o consumo do `2dc364df` não apareceu, e houve 1 descarte cobrindo o `X`. Vejo os dois. Apareceu um candidato concreto: **`8dd8d739`, dispatch 257×1×1 descartado** (sem pipeline no host), e uma faixa dele cobre o `X`. Vejo qual slot e qual offset. O descritor aparece de novo na janela de 8 entradas, então vou verificar se o shader o usa; o caso importa porque o shader nunca roda, com cerca de 6 descartes por quadro e sem pipeline no host. Vou desmontá-lo. Achei a peça que faltava: `8dd8d739` parece um classificador, e a tradução dele falha com "a lane of the other half of a wave64 on a 32-lane host", o mesmo problema de wave64 levantado no início. Vou conferir se a tabela usada no atômico aponta para o registro do `X`. Ele aponta `s5` como a segunda tabela (`root1`, 915795), com os atômicos nos descritores 915799 e 915801. Vou checar para onde esses índices apontam. Você pediu um resumo, então paro aqui. A próxima rodada é curta e só confirma os descritores 915799/915801 (o log desta cortou o texto). ## Onde está a tela preta Na intro, a imagem 3D sai preta porque **a passada de iluminação nunca roda**. A cadeia, de trás para frente: 1. **`34fb51b8`** (o passe que junta a cor) recebe a cor já zerada. O valor de exposição é normal (0,0221), mas zero dividido por qualquer coisa continua zero. A pista da exposição está descartada. 2. A cor deveria vir de **`2dc364df` e `940c2635`**. As entradas deles têm dados: G-buffer e profundidade estão preenchidos, então a geometria está sendo desenhada. Mesmo assim eles executam **zero grupos**, porque a contagem que recebem é `X=0`. 3. **`3e7c51f5`** zera essa contagem a cada quadro, o que é normal. Algum passe deveria preenchê-la depois. 4. Testei os outros candidatos (`512416d9`, `91b10a73`, `b83629b9` e três indiretos) pela desmontagem. **Nenhum deles toca nessa contagem.** 5. **Candidato forte: `8dd8d739`.** - Nunca roda: é descartado cerca de 6 vezes por quadro, porque a tradução dele falha com *"a lane of the other half of a wave64 on a 32-lane host"*. - Faz o que um classificador faz: atômicos `umax`/`add` em registros de 32 bytes, gravando uma contagem de grupos. - Ele está ligado à mesma tabela de descritores onde está a contagem. Se isso se confirmar, o motivo da tela preta seria: **um shader wave64 que o emulador não consegue traduzir deixa de rodar, a contagem fica 0, a iluminação não roda e a cena sai preta.** ## O que já foi testado no render - Exposição e o texel 1×1: estão normais e não são a causa. - Valores reais da cor antes e depois de cada passe, na mesma execução: zerados desde os produtores. - Argumentos indiretos lidos no momento do consumo: `[0,1,1]` em todos os quadros capturados. - Todos os escritores possíveis do `X` entre o reset e o consumo, incluindo comandos descartados. Censo desta rodada: 76.216 descartes. Desses, 20.000 tiveram as faixas checadas, porque o log tem limite. Só **um** shader descartado cobre o `X`: o `8dd8d739`. ## O que falta 1. **Confirmar** que os descritores 915799 e 915801 do `8dd8d739` apontam para os registros do `X`. É uma rodada. 2. **Corrigir a tradução wave64** desse shader, para o caso de uma lane ler a outra metade da wave. Antes, testar na RTX 3060 com os casos de redução combinados. 3. **Medir** que o `X` fica maior que zero, que a cor aparece na saída do `2dc364df` e que ela chega à tela. 4. Comparar as imagens antes e depois no mesmo ponto da intro. Só aí dá para dizer que está resolvido. Você ainda não viu mudança porque até agora tudo foi diagnóstico. Nenhuma correção entrou no render. Sobre o Enter: o `run-cap.ps1` já aperta Enter sozinho aos 45, 60, 75, 90 e 105 s, e as rodadas chegaram à cena. Mas nesta última o consumo do `2dc364df` não apareceu no log, então pode ter faltado um Enter para chegar à cena. Se a forma de depurar que você quis dizer é outra, me diga qual é e eu uso. Nada foi commitado. As mudanças estão em `draw.rs`, `host.rs` e `list.rs`, só sob a feature `diagnostics`.
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/Marvisak--VIctory#784
No description provided.