GPU: composite multiple PresentX planes (fixes Series S black UI/menus) #211

Closed
github-bot wants to merge 10 commits from gh-pr/211/head into gh-pr/211/base
Owner

@⁠Yaekai on GitHub · 2026-11-24 01:28 UTC · original
Yaekai:feat/gpu-presentx-multiplane → main · +576 −49 · 2 files · 10 commits · closed without merging

Problem

When running with --console series-s, GTA VI calls PresentX with 2 planes:

  • Plane 0: 1920×1080 3D scene buffer (black during menus)
  • Plane 1: 3840×2160 UI/HUD overlay plane

Previously, queue::present only read plane_parameters[0] and ignored planes 1..planes, causing --console series-s to display a solid black screen on menus and lose the UI/HUD overlay in gameplay.

Changes

  • crates/victory-gpu/src/queue.rs:
    Pad Plane to the observed 72-byte (0x48) array stride (const _: () = assert!(size_of::<Plane>() == 0x48);) so plane_parameters[1..] indexes cleanly.
    • Collect all active plane resources (up to 8) and pass them to Host::present, restoring each plane's resource state afterward.
  • crates/victory-gpu/src/host.rs:
    • Keep the existing zero-overhead CopyResource fast path when planes.len() == 1.
    • When planes.len() >= 2, size the swap chain to the maximum (width, height) across planes and lazily compile a small built-in fullscreen-triangle compositor (Compositor, via D3DCompile):
      • Plane 0 is drawn opaque (linear-scaled to the swap chain).
      • Planes 1.. are composited on top with premultiplied alpha (ONE, INV_SRC_ALPHA).
      • Diagnostics captures (VICTORY_CAPTURE) and black-frame probes read back the composited backbuffer.

Verification

  • Built --profile diag -p victory --features diagnostics cleanly with 0 warnings in modified code.
  • Tested live with --console series-s + VICTORY_D3D12_DEBUG=1 + VICTORY_CAPTURE:
    • Before: frame-150.png and frame-256.png were 100% solid black ((0, 0, 0)), while VICTORY_DUMP_TARGETS showed the menu rendered onto the 3840×2160 Plane 1 texture.
    • After: presenting to a window width=3840 height=2160 format=28, 0 D3D12 debug layer errors from the compositor, and frame-150.png / frame-256.png render the crisp 4K menu UI cleanly.
**@⁠Yaekai** on GitHub · 2026-11-24 01:28 UTC · [original](https://github.com/Marvisak/VIctory/pull/211) `Yaekai:feat/gpu-presentx-multiplane` → `main` · +576 −49 · 2 files · 10 commits · closed without merging ### Problem When running with `--console series-s`, GTA VI calls `PresentX` with **2 planes**: - **Plane 0**: `1920×1080` 3D scene buffer (black during menus) - **Plane 1**: `3840×2160` UI/HUD overlay plane Previously, `queue::present` only read `plane_parameters[0]` and ignored planes `1..planes`, causing `--console series-s` to display a solid black screen on menus and lose the UI/HUD overlay in gameplay. ### Changes - **`crates/victory-gpu/src/queue.rs`**: Pad `Plane` to the observed 72-byte (`0x48`) array stride (`const _: () = assert!(size_of::<Plane>() == 0x48);`) so `plane_parameters[1..]` indexes cleanly. - Collect all active plane resources (up to 8) and pass them to `Host::present`, restoring each plane's resource state afterward. - **`crates/victory-gpu/src/host.rs`**: - Keep the existing zero-overhead `CopyResource` fast path when `planes.len() == 1`. - When `planes.len() >= 2`, size the swap chain to the maximum `(width, height)` across planes and lazily compile a small built-in fullscreen-triangle compositor (`Compositor`, via `D3DCompile`): - Plane 0 is drawn opaque (linear-scaled to the swap chain). - Planes `1..` are composited on top with premultiplied alpha (`ONE`, `INV_SRC_ALPHA`). - Diagnostics captures (`VICTORY_CAPTURE`) and black-frame probes read back the composited backbuffer. ### Verification - Built `--profile diag -p victory --features diagnostics` cleanly with 0 warnings in modified code. - Tested live with `--console series-s` + `VICTORY_D3D12_DEBUG=1` + `VICTORY_CAPTURE`: - **Before**: `frame-150.png` and `frame-256.png` were 100% solid black (`(0, 0, 0)`), while `VICTORY_DUMP_TARGETS` showed the menu rendered onto the `3840×2160` Plane 1 texture. - **After**: `presenting to a window width=3840 height=2160 format=28`, **0 D3D12 debug layer errors** from the compositor, and `frame-150.png` / `frame-256.png` render the crisp 4K menu UI cleanly.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:54:53 +00:00
github-bot closed this pull request 2026-11-26 03:54:53 +00:00
Author
Owner

@⁠kykifox1337-source on GitHub · 2026-11-24 01:48 UTC · original

Tested on NVIDIA and Windows 10, without the debug layer: it fixes the black screen here too.

Setup: Windows 10 22H2 (19045), i7-8700K, RTX 2070 SUPER 8 GB (driver 610.88), diag build of main d2a4bae + #175 (Windows 10 needs the Agility runtime to draw at all) + this PR at 24a387d, --console series-s, VICTORY_CAPTURE. Counts only.

without this PR with it
captured frames 1 to 1650 all solid black (identical 1.5 KB PNGs) while 1,500 to 2,900 draws/frame ran intro video and loading screen render; frames from 750 on are full images
presentation 1920x1080 presenting to a window width=3840 height=2160
menus 30 fps 25 to 30 fps

The device was removed (0x887A0004, no DRED) about 45 s after the world loaded. Series X mode on the same build was removed the same way, so it is not from this PR; it looks like the NVIDIA world hang in #71.

AI-assisted (Claude Code); I ran everything above myself.

**@⁠kykifox1337-source** on GitHub · 2026-11-24 01:48 UTC · [original](https://github.com/Marvisak/VIctory/pull/211#issuecomment-7119463707) Tested on NVIDIA and Windows 10, without the debug layer: it fixes the black screen here too. Setup: Windows 10 22H2 (19045), i7-8700K, RTX 2070 SUPER 8 GB (driver 610.88), diag build of `main` `d2a4bae` + #175 (Windows 10 needs the Agility runtime to draw at all) + this PR at `24a387d`, `--console series-s`, `VICTORY_CAPTURE`. Counts only. | | without this PR | with it | |---|---|---| | captured frames 1 to 1650 | all solid black (identical 1.5 KB PNGs) while 1,500 to 2,900 draws/frame ran | intro video and loading screen render; frames from 750 on are full images | | presentation | 1920x1080 | `presenting to a window width=3840 height=2160` | | menus | 30 fps | 25 to 30 fps | The device was removed (`0x887A0004`, no DRED) about 45 s after the world loaded. Series X mode on the same build was removed the same way, so it is not from this PR; it looks like the NVIDIA world hang in #71. AI-assisted (Claude Code); I ran everything above myself.
Author
Owner

@⁠cdomergue on GitHub · 2026-11-24 01:49 UTC · original

Tested 24a387d on Windows with an RTX 4070 SUPER in Series S mode. On main (d2a4bae), the window stayed black. With this PR alone, I could see the profile selector, choose Player, and use the first-run settings. The navigation options and button prompts were readable in French.

The last screen I saw was purple. The log ended with a memory allocation failure before I reached the world.

I recommend merging this PR. It fixes the black menus on my setup and lets me get through the settings.

**@⁠cdomergue** on GitHub · 2026-11-24 01:49 UTC · [original](https://github.com/Marvisak/VIctory/pull/211#issuecomment-7119487239) Tested 24a387d on Windows with an RTX 4070 SUPER in Series S mode. On main (d2a4bae), the window stayed black. With this PR alone, I could see the profile selector, choose Player, and use the first-run settings. The navigation options and button prompts were readable in French. The last screen I saw was purple. The log ended with a memory allocation failure before I reached the world. I recommend merging this PR. It fixes the black menus on my setup and lets me get through the settings.
Author
Owner

@⁠Castyan on GitHub · 2026-11-24 09:42 UTC · original

Independent A/B test on main at 8e79c80, with only PR #211 at 24a387d applied to the second build.

Setup — Windows 11 Pro x64 build 26300, Ryzen 5 9600X, 16 GB RAM, RTX 5060 installed. Both builds used Rust 1.98.1, the diag profile, Series S, and the WARP software adapter. Both were observed for 60 seconds with fresh, separate cache and data directories and no scripted input.

Observation main Same base + #211
Swap chain at creation 1920 × 1080 3840 × 2160
Black samples 73 / 73 13 / 46
Non-black samples 0 / 73 33 / 46
First non-black sample — Frame 180, 8.78 s
Window FPS counter at the end 30 15
Minimum Windows commit headroom 6,488 MiB 6,305 MiB

Both processes were still running at the end of the observation. The monitored logs showed no commit-limit error, device removal, or unhandled exception. The same temporary measurement in both builds logged only the black/non-black result of VIctory's existing grid probe at every 30th frame and at powers of two. No frame captures were saved. The automated observation establishes that the sampled output became non-black with the PR. Menu readability and gameplay were outside this measurement.

AI-assisted test automation and report.

**@⁠Castyan** on GitHub · 2026-11-24 09:42 UTC · [original](https://github.com/Marvisak/VIctory/pull/211#issuecomment-7127786758) Independent A/B test on `main` at `8e79c80`, with only PR #211 at `24a387d` applied to the second build. **Setup** — Windows 11 Pro x64 build 26300, Ryzen 5 9600X, 16 GB RAM, RTX 5060 installed. Both builds used Rust 1.98.1, the `diag` profile, Series S, and the WARP software adapter. Both were observed for 60 seconds with fresh, separate cache and data directories and no scripted input. | Observation | `main` | Same base + #211 | | --- | ---: | ---: | | Swap chain at creation | 1920 × 1080 | 3840 × 2160 | | Black samples | 73 / 73 | 13 / 46 | | Non-black samples | 0 / 73 | 33 / 46 | | First non-black sample | — | Frame 180, 8.78 s | | Window FPS counter at the end | 30 | 15 | | Minimum Windows commit headroom | 6,488 MiB | 6,305 MiB | Both processes were still running at the end of the observation. The monitored logs showed no commit-limit error, device removal, or unhandled exception. The same temporary measurement in both builds logged only the black/non-black result of VIctory's existing grid probe at every 30th frame and at powers of two. No frame captures were saved. The automated observation establishes that the sampled output became non-black with the PR. Menu readability and gameplay were outside this measurement. AI-assisted test automation and report.
Author
Owner

@⁠Alex-Devxx on GitHub · 2026-11-24 09:48 UTC · original

Tested this PR locally on top of c7a5f49 with --console series-s on an AMD Radeon RX 7600 (RDNA 3):

  • System: Windows 11 Home (10.0.26300), Ryzen 5 5500X3D, 16 GB RAM, RX 7600 (Driver 32.0.32029.2010)
  • Build: diag (VICTORY_D3D12_DEBUG=1, VICTORY_D3D12_DRED=1, VICTORY_LOG=info)
  • Executable BLAKE3: b99f876b74d4a77f03af5f878223b27bd647b5c35a79d5decd9f716504239e93

Before vs. After (Series S)

  • Before (vanilla c7a5f49): presenting to a window width=1920 height=1080 format=28; completely black screen during boot/menus (audio and controller worked in the background).
  • After (with PR #211): presenting to a window width=3840 height=2160 format=28; menus/UI render cleanly at 30.0 fps (~1.6–3.3 ms GPU time, 0 dropped draws).
  • World / Cutscenes: Loaded all the way into the first cutscene and skipped into the second cutscene (frame 2706) with zero crashes and no GPU device removal (unlike Series X mode on the same machine, which hits DXGI_ERROR_DEVICE_HUNG with a view heap page fault at slot 1402368). Scene itself remains dark as expected (304 untranslated shaders, 1160–4804 draws/frame dropped), and cleanly saved the pipeline library on exit (made=615, loaded=362).
  • Additional Series S WARN lines noted in world load: victory_gpu::resource: a GPU address above 40 bits address=0x130d8920000, pipeline state slot=0x58, command list slot=0x1a8.
**@⁠Alex-Devxx** on GitHub · 2026-11-24 09:48 UTC · [original](https://github.com/Marvisak/VIctory/pull/211#issuecomment-7127910046) Tested this PR locally on top of `c7a5f49` with `--console series-s` on an AMD Radeon RX 7600 (RDNA 3): - **System:** Windows 11 Home (10.0.26300), Ryzen 5 5500X3D, 16 GB RAM, RX 7600 (Driver `32.0.32029.2010`) - **Build:** `diag` (`VICTORY_D3D12_DEBUG=1`, `VICTORY_D3D12_DRED=1`, `VICTORY_LOG=info`) - **Executable BLAKE3:** `b99f876b74d4a77f03af5f878223b27bd647b5c35a79d5decd9f716504239e93` ### Before vs. After (Series S) - **Before (vanilla `c7a5f49`):** `presenting to a window width=1920 height=1080 format=28`; completely black screen during boot/menus (audio and controller worked in the background). - **After (with PR #211):** `presenting to a window width=3840 height=2160 format=28`; menus/UI render cleanly at **30.0 fps** (~1.6–3.3 ms GPU time, 0 dropped draws). - **World / Cutscenes:** Loaded all the way into the first cutscene and skipped into the second cutscene (frame 2706) with **zero crashes and no GPU device removal** (unlike Series X mode on the same machine, which hits `DXGI_ERROR_DEVICE_HUNG` with a `view heap` page fault at slot `1402368`). Scene itself remains dark as expected (304 untranslated shaders, 1160–4804 draws/frame dropped), and cleanly saved the pipeline library on exit (`made=615`, `loaded=362`). - **Additional Series S `WARN` lines noted in world load:** `victory_gpu::resource: a GPU address above 40 bits address=0x130d8920000`, `pipeline state slot=0x58`, `command list slot=0x1a8`.
Author
Owner

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

Confirmed the Series S profile-screen fix on Windows 11 WARP. I tested upstream ffe310eb2098 and the same revision with only the compositor change from 24a387d700bc. Both used the diagnostic build, the same 1.0.2.1 title, fresh cache and save directories, and no input. I closed each run after frame 512.

Series S menu check Main Main + this PR
Swap chain 1920×1080 3840×2160
Whole-image check All 10 captures through frame 512 were solid black Frames 256 and 512 showed the profile menu. Frame 512 matched the verified Series X profile capture byte for byte locally.
Window sample at the end 30 fps, 14 draws/frame 30 fps, 14 draws/frame

Regression test. The attached patch adds a Windows WARP test that calls the production PresentX path with generated solid-color RGBA8 textures. The base is 32×32 and the overlay is 64×64. The existing readback returns the brightest RGB channel, which can be checked exactly for each uniform image.

Input Main Main + this PR Expected
Red base alone 192 192 192
Green overlay alone 32 32 32
Overlay over black 0 32 32
Overlay over red 192 96 96 ± 1

The same test failed on main and passed with the PR. The ordinary diagnostic victory-gpu library suite on the patched build also passed (53 passed, 2 ignored). Extract the patch in the checkout and run these commands in a Windows desktop PowerShell session.

git apply presentx-two-planes.patch
$env:VICTORY_D3D12_WARP = '1'
cargo test --locked -p victory-gpu --lib --features diagnostics queue::present_tests::presentx_blends_two_solid_planes -- --ignored --exact --nocapture --test-threads=1

Ryzen 7 9800X3D, Windows 11 Pro 26300.9974, WARP 10.0.26100.9818, Rust 1.98.1. The title comparison covers the profile screen. Baseline title runs.

Test execution and reporting were assisted by Codex on this PC.

presentx-two-planes.zip

**@⁠rubcov666** on GitHub · 2026-11-24 10:38 UTC · [original](https://github.com/Marvisak/VIctory/pull/211#issuecomment-7129058719) **Confirmed the Series S profile-screen fix on Windows 11 WARP.** I tested upstream `ffe310eb2098` and the same revision with only the compositor change from `24a387d700bc`. Both used the diagnostic build, the same 1.0.2.1 title, fresh cache and save directories, and no input. I closed each run after frame 512. | Series S menu check | Main | Main + this PR | | --- | --- | --- | | Swap chain | 1920×1080 | 3840×2160 | | Whole-image check | All 10 captures through frame 512 were solid black | Frames 256 and 512 showed the profile menu. Frame 512 matched the verified Series X profile capture byte for byte locally. | | Window sample at the end | 30 fps, 14 draws/frame | 30 fps, 14 draws/frame | **Regression test.** The attached patch adds a Windows WARP test that calls the production `PresentX` path with generated solid-color RGBA8 textures. The base is 32×32 and the overlay is 64×64. The existing readback returns the brightest RGB channel, which can be checked exactly for each uniform image. | Input | Main | Main + this PR | Expected | | --- | ---: | ---: | ---: | | Red base alone | 192 | 192 | 192 | | Green overlay alone | 32 | 32 | 32 | | Overlay over black | 0 | 32 | 32 | | Overlay over red | 192 | 96 | 96 ± 1 | The same test failed on main and passed with the PR. The ordinary diagnostic `victory-gpu` library suite on the patched build also passed (53 passed, 2 ignored). Extract the patch in the checkout and run these commands in a Windows desktop PowerShell session. ```powershell git apply presentx-two-planes.patch $env:VICTORY_D3D12_WARP = '1' cargo test --locked -p victory-gpu --lib --features diagnostics queue::present_tests::presentx_blends_two_solid_planes -- --ignored --exact --nocapture --test-threads=1 ``` Ryzen 7 9800X3D, Windows 11 Pro 26300.9974, WARP 10.0.26100.9818, Rust 1.98.1. The title comparison covers the profile screen. [Baseline title runs](https://git.gtahub.st/github/Marvisak--VIctory/issues/49). Test execution and reporting were assisted by Codex on this PC. [presentx-two-planes.zip](https://github.com/user-attachments/files/35326347/presentx-two-planes.zip)
Author
Owner

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

Follow-up A/B on main at ffe310e, with only PR #211 at 24a387d applied to the second build.

Both builds used Rust 1.98.1, the diag profile, Windows 11 x64, Series S, and WARP, with separate fresh VIctory caches and profiles. There was no scripted input. Counts below use only samples within the first 60 seconds.

Observation main Same base + #211
Swap chain at creation 1920 × 1080 3840 × 2160
Black samples 68 / 68 13 / 41
Non-black samples 0 / 68 28 / 41
First non-black sample — Frame 180, 9.53 s

I kept the candidate running for 155 seconds. It was still running at the cutoff, and all 69 sampled frames from the first non-black sample through the cutoff were non-black. The monitored logs showed no device removal or Win32 commit-limit error. The probe recorded only black/non-black values from VIctory's existing grid. No frame captures were saved.

For context, a separate earlier manual run with #211 on 8e79c80 ended after about 133 seconds with DXGI codes 0x887A0004 and 0x887A0005 following a submission of 24 lists. The extended run above covers unattended startup and does not replay that manual input sequence.

AI-assisted test automation and report.

**@⁠Castyan** on GitHub · 2026-11-24 11:13 UTC · [original](https://github.com/Marvisak/VIctory/pull/211#issuecomment-7129820211) Follow-up A/B on `main` at `ffe310e`, with only PR #211 at `24a387d` applied to the second build. Both builds used Rust 1.98.1, the `diag` profile, Windows 11 x64, Series S, and WARP, with separate fresh VIctory caches and profiles. There was no scripted input. Counts below use only samples within the first 60 seconds. | Observation | `main` | Same base + #211 | | --- | ---: | ---: | | Swap chain at creation | 1920 × 1080 | 3840 × 2160 | | Black samples | 68 / 68 | 13 / 41 | | Non-black samples | 0 / 68 | 28 / 41 | | First non-black sample | — | Frame 180, 9.53 s | I kept the candidate running for 155 seconds. It was still running at the cutoff, and all 69 sampled frames from the first non-black sample through the cutoff were non-black. The monitored logs showed no device removal or Win32 commit-limit error. The probe recorded only black/non-black values from VIctory's existing grid. No frame captures were saved. For context, a separate earlier manual run with #211 on `8e79c80` ended after about 133 seconds with DXGI codes `0x887A0004` and `0x887A0005` following a submission of 24 lists. The extended run above covers unattended startup and does not replay that manual input sequence. AI-assisted test automation and report.
Author
Owner

@⁠EgoraWyn on GitHub · 2026-11-24 14:26 UTC · original

Test report: NVIDIA RTX 3060 Laptop 6 GB (Ampere, 32-lane waves). The same fix as in the two NVIDIA reports above, an A/B against #492, and a Series S world that stays up for 4.5 minutes on the set from #71.

Setup: Windows 11 build 26300, driver 596.21 (32.0.15.9621), i5-12450H, 32 GB RAM, title 1.0.2.1 (own copy), Rust 1.98.1, --profile diag --features diagnostics, the process held to 4 logical CPUs.
Base for every row: 8e79c80 + #493 (c48b240) + #206 (05981dd) + #189 (d0fd9bf) + #454 (d2c93fa) + MIN_DYNAMIC = 1 << 18 (#747), the set from #71 that keeps 32-lane cards up in the world. This PR at 24a387d and #492 at b57e10d merge onto it without conflicts.

Menus, --console series-s, no input, 70 s per build (frames saved with VICTORY_CAPTURE):

build captured frames 256 / 512 / 1024 caption
base + #492 black (no pixel above level 24) 30 fps, 11 draws/frame
base + #211 the first prompt, drawn correctly 30 fps, 11 draws/frame

Without either PR the picture is black as well: plain main ffe310e (75 s, no input) and the base tree (420 s with scripted keys, 30 fps and 44 draws/frame at the end; 958 of its 959 captured frames are black, the other one a dim grey).

World, base + #211 + #492, --console series-s, scripted keys through the first-run setup, VICTORY_NO_WATCHDOG=1 VICTORY_SHADER_LOOP_LIMIT=32 VICTORY_D3D12_DRED=1, 420 s, shader cache cold:

  • Every screen before loading is drawn correctly (first prompt, artwork slides, the setup screens).
  • The world is entered at about 170 s and runs to my time limit, 4.5 minutes later: no device removal, no crash log.
  • 0.1–1.0 fps in the 5-second log lines, 0.51 fps averaged over the last 275 s; 130–4000 draws per frame.
  • The intro's overlay text and its artwork are drawn; the 3D scene is not, the same as in Series X mode on this card.
  • The same on current main: ffe310e + the same PRs with #189 at its new head b472733, all clean merges, Series S: world for the last 3.5 minutes of a 420 s run, 0.2–1.2 fps, no device removal.

Memory, Series S against Series X mode (same machine and base; Series X without this PR and #492; highest value of the run unless noted):

series-s (+ #211 + #492) series-x (base)
card memory before loading (nvidia-smi) 2592 MiB 4585 MiB
process dedicated video memory in the world (card: 6 GB) 5.2–5.6 GB 5.8 GB from world entry to the end
process shared GPU memory 5.8 GB 8.5 GB
private bytes 18.0 GB 22.8 GB
system commit taken 23.3 GB 30.6 GB
lowest free RAM 9.5 GB 5.4 GB

Not tested: this PR without #492 in the world (the world runs had both), other GPUs, the debug layer. One run per row.

AI use: Claude Code (Claude Fable 5.2) built the trees, ran the runs and wrote this report from the logs; a second tool (Codex) checked the numbers against the logs. The hardware, the title copy and the runs are the user's.

**@⁠EgoraWyn** on GitHub · 2026-11-24 14:26 UTC · [original](https://github.com/Marvisak/VIctory/pull/211#issuecomment-7134389283) **Test report: NVIDIA RTX 3060 Laptop 6 GB (Ampere, 32-lane waves). The same fix as in the two NVIDIA reports above, an A/B against #492, and a Series S world that stays up for 4.5 minutes on the set from #71.** Setup: Windows 11 build 26300, driver 596.21 (32.0.15.9621), i5-12450H, 32 GB RAM, title 1.0.2.1 (own copy), Rust 1.98.1, `--profile diag --features diagnostics`, the process held to 4 logical CPUs. Base for every row: `8e79c80` + #493 (`c48b240`) + #206 (`05981dd`) + #189 (`d0fd9bf`) + #454 (`d2c93fa`) + `MIN_DYNAMIC = 1 << 18` (#747), the set from #71 that keeps 32-lane cards up in the world. This PR at `24a387d` and #492 at `b57e10d` merge onto it without conflicts. **Menus, `--console series-s`, no input, 70 s per build** (frames saved with `VICTORY_CAPTURE`): | build | captured frames 256 / 512 / 1024 | caption | |---|---|---| | base + #492 | black (no pixel above level 24) | 30 fps, 11 draws/frame | | base + **#211** | **the first prompt, drawn correctly** | 30 fps, 11 draws/frame | Without either PR the picture is black as well: plain `main` `ffe310e` (75 s, no input) and the base tree (420 s with scripted keys, 30 fps and 44 draws/frame at the end; 958 of its 959 captured frames are black, the other one a dim grey). **World, base + #211 + #492, `--console series-s`**, scripted keys through the first-run setup, `VICTORY_NO_WATCHDOG=1 VICTORY_SHADER_LOOP_LIMIT=32 VICTORY_D3D12_DRED=1`, 420 s, shader cache cold: - Every screen before loading is drawn correctly (first prompt, artwork slides, the setup screens). - The world is entered at about 170 s and runs to my time limit, 4.5 minutes later: no device removal, no crash log. - 0.1–1.0 fps in the 5-second log lines, 0.51 fps averaged over the last 275 s; 130–4000 draws per frame. - The intro's overlay text and its artwork are drawn; the 3D scene is not, the same as in Series X mode on this card. - The same on current `main`: `ffe310e` + the same PRs with #189 at its new head `b472733`, all clean merges, Series S: world for the last 3.5 minutes of a 420 s run, 0.2–1.2 fps, no device removal. **Memory, Series S against Series X mode** (same machine and base; Series X without this PR and #492; highest value of the run unless noted): | | `series-s` (+ #211 + #492) | `series-x` (base) | |---|---|---| | card memory before loading (`nvidia-smi`) | 2592 MiB | 4585 MiB | | process dedicated video memory in the world (card: 6 GB) | 5.2–5.6 GB | 5.8 GB from world entry to the end | | process shared GPU memory | 5.8 GB | 8.5 GB | | private bytes | 18.0 GB | 22.8 GB | | system commit taken | 23.3 GB | 30.6 GB | | lowest free RAM | 9.5 GB | 5.4 GB | Not tested: this PR without #492 in the world (the world runs had both), other GPUs, the debug layer. One run per row. *AI use: Claude Code (Claude Fable 5.2) built the trees, ran the runs and wrote this report from the logs; a second tool (Codex) checked the numbers against the logs. The hardware, the title copy and the runs are the user's.*
Author
Owner

@⁠BaggyALPHA on GitHub · 2026-11-24 15:09 UTC · original

Independent live WARP comparison of the branch point 9aef3d9 and PR head af9a911. The tree diff between them is limited to the two PresentX source files. Both builds used Series S, the diagnostics profile, separate fresh caches and profiles, and the same scripted input and capture settings.

  • Frame 150 was black on the baseline. The PR head displayed the account picker. At frame 700 the baseline was black again, while the PR head displayed the UI text-size screen.
  • At frame 1110 the baseline showed the Rockstar logo alone. The PR head displayed the brightness calibration panel over that logo. The baseline capture was byte-for-byte identical to the logo-only frame from my earlier Series S run in #338.
  • Both runs reached their 100-second test limit without device removal or a logged out-of-memory error. I did not reach the first cutscene in this test.
  • On the PR head, both targeted WARP tests passed, including compositor pipeline initialization and recovery after an injected compositor failure. Command used cargo test --locked --profile diag -p victory-gpu --features diagnostics compositor -- --nocapture --test-threads=1 with VICTORY_D3D12_WARP=1.

AI-assisted test execution and write-up (OpenAI Codex).

**@⁠BaggyALPHA** on GitHub · 2026-11-24 15:09 UTC · [original](https://github.com/Marvisak/VIctory/pull/211#issuecomment-7135540519) Independent live WARP comparison of the branch point `9aef3d9` and PR head `af9a911`. The tree diff between them is limited to the two PresentX source files. Both builds used Series S, the diagnostics profile, separate fresh caches and profiles, and the same scripted input and capture settings. - Frame 150 was black on the baseline. The PR head displayed the account picker. At frame 700 the baseline was black again, while the PR head displayed the UI text-size screen. - At frame 1110 the baseline showed the Rockstar logo alone. The PR head displayed the brightness calibration panel over that logo. The baseline capture was byte-for-byte identical to the logo-only frame from my earlier Series S run in #338. - Both runs reached their 100-second test limit without device removal or a logged out-of-memory error. I did not reach the first cutscene in this test. - On the PR head, both targeted WARP tests passed, including compositor pipeline initialization and recovery after an injected compositor failure. Command used `cargo test --locked --profile diag -p victory-gpu --features diagnostics compositor -- --nocapture --test-threads=1` with `VICTORY_D3D12_WARP=1`. AI-assisted test execution and write-up (OpenAI Codex).
Author
Owner

@⁠jamesn-xt on GitHub · 2026-11-24 16:22 UTC · original · edited 2026-11-24 16:24 UTC

Verified on Windows 11 x64 build 26200, Ryzen 5 5600, 32 GiB RAM, RTX 4080 / NVIDIA 617.42, pinned Rust 1.98.1. Tested PR head 2fb7a8b merged cleanly onto ffe310e plus the independent capture-directory fix from #1146.

The Series S baseline captured only black frames through frame 1024. With this PR, the captured output includes player-selection prompts, the Rockstar splash, and a fully rendered Navigation Experience setup screen; the native window also displayed Legal Notices. Startup ran at 30 fps. The 150-second bounded hardware run was stopped intentionally; complete main menu, video and world rendering were not verified. The format-86/115 resource-creation warnings remain, so those should not be conflated with this presentation-layer fix.

Diagnostics GPU tests passed (55 passed, 1 ignored) and the diagnostics build succeeded. I also added synthetic pixel-readback assertions to the existing compositor recovery test: retry composition after the injected failure, then require premultiplied half-blue over red to produce RGBA [127,0,128,255]. This passed on RTX 4080 and WARP; all-target/all-feature GPU Clippy and asset policy passed. Supplemental test PR against your branch: https://github.com/Yaekai/VIctory/pull/2 (commit f74bf40). It contains only synthetic test changes and is available for cherry-picking.

No game screenshots, retail logs or derived assets attached.

Follow-up: with the saved setup profile, a subsequent WARP run also displayed distinct frames of the animated startup sequence, roughly 6 fps. Afterward it entered another dark/slow stage, so I am not claiming a complete main menu or world. The original hardware run's 30 fps applies to the setup screens.

**@⁠jamesn-xt** on GitHub · 2026-11-24 16:22 UTC · [original](https://github.com/Marvisak/VIctory/pull/211#issuecomment-7137551436) · edited 2026-11-24 16:24 UTC Verified on Windows 11 x64 build 26200, Ryzen 5 5600, 32 GiB RAM, RTX 4080 / NVIDIA 617.42, pinned Rust 1.98.1. Tested PR head `2fb7a8b` merged cleanly onto `ffe310e` plus the independent capture-directory fix from #1146. The Series S baseline captured only black frames through frame 1024. With this PR, the captured output includes player-selection prompts, the Rockstar splash, and a fully rendered Navigation Experience setup screen; the native window also displayed Legal Notices. Startup ran at 30 fps. The 150-second bounded hardware run was stopped intentionally; complete main menu, video and world rendering were not verified. The format-86/115 resource-creation warnings remain, so those should not be conflated with this presentation-layer fix. Diagnostics GPU tests passed (55 passed, 1 ignored) and the diagnostics build succeeded. I also added synthetic pixel-readback assertions to the existing compositor recovery test: retry composition after the injected failure, then require premultiplied half-blue over red to produce RGBA `[127,0,128,255]`. This passed on RTX 4080 and WARP; all-target/all-feature GPU Clippy and asset policy passed. Supplemental test PR against your branch: https://github.com/Yaekai/VIctory/pull/2 (commit `f74bf40`). It contains only synthetic test changes and is available for cherry-picking. No game screenshots, retail logs or derived assets attached. Follow-up: with the saved setup profile, a subsequent WARP run also displayed distinct frames of the animated startup sequence, roughly 6 fps. Afterward it entered another dark/slow stage, so I am not claiming a complete main menu or world. The original hardware run's 30 fps applies to the setup screens.
Author
Owner

@⁠rpmaster2 on GitHub · 2026-11-24 18:50 UTC · original · edited 2026-11-24 18:58 UTC

@⁠Yaekai a short AMD data point for this PR, without a conclusion about the picture overall.

Host: RX 9070 XT 16 GB, Adrenalin 26.11.2, Windows 11 26300, main @⁠ffe310e, diag build, --console series-s, 300 s per run, same save, Enter at 10/20/30/60/90 s.

stack draws/frame (max) fps black frames removal
#189 + #211 + #282 + #493 + #587 345 0.6-0.7 13 none
#189 + #282 + #493 + #587 263 0.5 1 none
#530 + #189 + #282 + #493 + #587 289 0.5 1 none

All three reach the world here, and in all three the layered UI stopped drawing on top of itself, so this session does not isolate #211 as the requirement for either. The two-plane description still fits what --console series-s does, but I have not proven it on this host.

Caveat: one run per variant, screen impressions only, no cargo test, and the plane path was not checked in isolation.

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 18:50 UTC · [original](https://github.com/Marvisak/VIctory/pull/211#issuecomment-7141238112) · edited 2026-11-24 18:58 UTC @⁠Yaekai a short AMD data point for this PR, without a conclusion about the picture overall. Host: RX 9070 XT 16 GB, Adrenalin 26.11.2, Windows 11 26300, `main` @⁠ffe310e, diag build, `--console series-s`, 300 s per run, same save, `Enter` at 10/20/30/60/90 s. | stack | draws/frame (max) | fps | black frames | removal | | --- | --- | --- | --- | --- | | #189 + **#211** + #282 + #493 + #587 | 345 | 0.6-0.7 | 13 | none | | #189 + #282 + #493 + #587 | 263 | 0.5 | 1 | none | | #530 + #189 + #282 + #493 + #587 | 289 | 0.5 | 1 | none | All three reach the world here, and in all three the layered UI stopped drawing on top of itself, so this session does not isolate #211 as the requirement for either. The two-plane description still fits what `--console series-s` does, but I have not proven it on this host. Caveat: one run per variant, screen impressions only, no `cargo test`, and the plane path was not checked in isolation. AI-assisted: written by DeepSeek (OpenCode harness) from my run logs and screen observations; the hardware and the dump are mine.
Author
Owner

@⁠Capi360 on GitHub · 2026-11-24 21:41 UTC · original

Independent Series S test on Windows 11 Pro build 26200, Ryzen 7 5700X3D, 32 GiB RAM, RTX 3060 Ti 8 GiB, NVIDIA driver 616.56.

I ran the #1638 NVIDIA stack with #242, then repeated with #211 integrated using the same profile and cache starting point. The Series S output before #211 was black in the sampled frames, including frames 600 and 1400. With composition, the intro and loading image came back. The center sample went from 0% colored pixels to 99.7% at frame 600 and 87.3% at frame 1400. Both compositor tests passed on this system.

I stopped at low Windows commit headroom during loading, so this verifies the display change through the intro and loading screen. Gameplay and its HUD remain unverified in this run.

Exact source revision. AI-assisted.

**@⁠Capi360** on GitHub · 2026-11-24 21:41 UTC · [original](https://github.com/Marvisak/VIctory/pull/211#issuecomment-7145259919) Independent Series S test on Windows 11 Pro build 26200, Ryzen 7 5700X3D, 32 GiB RAM, RTX 3060 Ti 8 GiB, NVIDIA driver 616.56. I ran the #1638 NVIDIA stack with #242, then repeated with #211 integrated using the same profile and cache starting point. The Series S output before #211 was black in the sampled frames, including frames 600 and 1400. With composition, the intro and loading image came back. The center sample went from 0% colored pixels to 99.7% at frame 600 and 87.3% at frame 1400. Both compositor tests passed on this system. I stopped at low Windows commit headroom during loading, so this verifies the display change through the intro and loading screen. Gameplay and its HUD remain unverified in this run. [Exact source revision](https://github.com/Capi360/VIctory/commit/815d9481d7b53f41a87b022ec5e57d9a33e67dd0). AI-assisted.
Author
Owner

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

Tested a local adaptation of this PR on Windows with an RTX 5070 and about 15 GB RAM, using --console series-s. Before this adaptation the window was black; with the local adaptation I could see the loading screen reach its end. I did not see the world.

This was not an unmodified PR build: it was adapted on top of an fxceless-based local stack, with the fork's asynchronous presentation path replaced by synchronous presentation. The compositor initialization test passed, but the game result is not isolated to this PR.

In a later run without a free-RAM cutoff, the process ended after roughly 121 seconds. Its log reported no host list for a state prelude; device removed with an invalid-call/state message. Available RAM had been around 0.3 GB shortly before exit. I cannot tell whether memory pressure, the local adaptation, or something else caused the GPU failure.

**@⁠giacbiologicbomb** on GitHub · 2026-11-24 22:21 UTC · [original](https://github.com/Marvisak/VIctory/pull/211#issuecomment-7146134132) Tested a local adaptation of this PR on Windows with an RTX 5070 and about 15 GB RAM, using `--console series-s`. Before this adaptation the window was black; with the local adaptation I could see the loading screen reach its end. I did not see the world. This was not an unmodified PR build: it was adapted on top of an fxceless-based local stack, with the fork's asynchronous presentation path replaced by synchronous presentation. The compositor initialization test passed, but the game result is not isolated to this PR. In a later run without a free-RAM cutoff, the process ended after roughly 121 seconds. Its log reported `no host list for a state prelude; device removed` with an invalid-call/state message. Available RAM had been around 0.3 GB shortly before exit. I cannot tell whether memory pressure, the local adaptation, or something else caused the GPU failure.
Author
Owner

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

Follow-up to my earlier report: I tried Series S again on a cleaner local baseline: stack8 at 25b72e6 plus my adapted #211 compositor (a5a7a34), without the later stack9/JMAN fixes. The build passed and the title started, but it ended after approximately 84 seconds, before I saw the world.

The log reports host GPU device removed after a submission of 1 lists, with no DRED breadcrumbs and an invalid-call/state removal reason. Available physical RAM briefly reached approximately 0.30 GB; I did not use an automatic RAM cutoff on this run. I cannot determine from these logs whether memory pressure, my adaptation, another change in the combined baseline, or something else caused the removal. This is not an unmodified PR-head test.

**@⁠giacbiologicbomb** on GitHub · 2026-11-24 22:45 UTC · [original](https://github.com/Marvisak/VIctory/pull/211#issuecomment-7146607903) Follow-up to my earlier report: I tried Series S again on a cleaner local baseline: stack8 at `25b72e6` plus my adapted #211 compositor (`a5a7a34`), without the later stack9/JMAN fixes. The build passed and the title started, but it ended after approximately 84 seconds, before I saw the world. The log reports `host GPU device removed after a submission of 1 lists`, with no DRED breadcrumbs and an invalid-call/state removal reason. Available physical RAM briefly reached approximately 0.30 GB; I did not use an automatic RAM cutoff on this run. I cannot determine from these logs whether memory pressure, my adaptation, another change in the combined baseline, or something else caused the removal. This is not an unmodified PR-head test.
Author
Owner

@⁠EgoRaInevitable on GitHub · 2026-11-24 23:35 UTC · original

I tested #211 on Linux/Proton, merged onto latest main.

PR head 8cd5cc6c47, merged onto main 70564ae (merge commit f4581aa) in a local worktree. Diagnostics build: --profile diag -p victory --features diagnostics, cargo-xwin 0.24.1, Rust 1.98.1.

System: CachyOS 7.3.5, Ryzen 5 5600X, RTX 3060 Ti 8 GB, driver 620.73.04. Runtime: Proton Experimental experimental-11.0-20261112, vkd3d-proton 3.2.0, DXVK from Proton Experimental. Run: --console series-s, VICTORY_CAPTURE.

An earlier Series S run on main was a black screen on my machine. With #211:

  • presentation changed to presenting to a window width=3840 height=2160 format=28;
  • frames 1/2/4/8/16/32/64: 0.0% non-black;
  • frames 128/150/256/512: 99.9% non-black;
  • frame 1024: 100.0% non-black;
  • I saw the menu and the loading screen.

The run later ended after ~78 s with NVRM NV_ERR_NO_MEMORY while host textures reached ~6152 MB. That is the 8 GB card limit, not this PR; no XMem mapping failures were logged. Recommend merge.

AI-assisted: build/run/capture analysis; I verified the display was actually not black and rendered the menu and intro.

**@⁠EgoRaInevitable** on GitHub · 2026-11-24 23:35 UTC · [original](https://github.com/Marvisak/VIctory/pull/211#issuecomment-7147567191) I tested #211 on Linux/Proton, merged onto latest main. PR head 8cd5cc6c47ac433c87ffbd66df371ae443c11f18, merged onto main 70564ae (merge commit f4581aa) in a local worktree. Diagnostics build: `--profile diag -p victory --features diagnostics`, cargo-xwin 0.24.1, Rust 1.98.1. System: CachyOS 7.3.5, Ryzen 5 5600X, RTX 3060 Ti 8 GB, driver 620.73.04. Runtime: Proton Experimental `experimental-11.0-20261112`, vkd3d-proton 3.2.0, DXVK from Proton Experimental. Run: `--console series-s`, `VICTORY_CAPTURE`. An earlier Series S run on main was a black screen on my machine. With #211: - presentation changed to `presenting to a window width=3840 height=2160 format=28`; - frames 1/2/4/8/16/32/64: 0.0% non-black; - frames 128/150/256/512: 99.9% non-black; - frame 1024: 100.0% non-black; - I saw the menu and the loading screen. The run later ended after ~78 s with `NVRM NV_ERR_NO_MEMORY` while host textures reached ~6152 MB. That is the 8 GB card limit, not this PR; no XMem mapping failures were logged. Recommend merge. AI-assisted: build/run/capture analysis; I verified the display was actually not black and rendered the menu and intro.
Author
Owner

@⁠Marvisak on GitHub · 2026-11-25 00:00 UTC · original

Automated triage for the maintainers. Closing because it breaks a repository rule (see docs/asset-policy.md and the project rules): nothing taken from the console SDK or the game, no weakening of the asset policy, and the title stays offline.

If this is mistaken, reply here with what was missed (or push a change and say so) and it will be looked at again. Thank you for the contribution.

**@⁠Marvisak** on GitHub · 2026-11-25 00:00 UTC · [original](https://github.com/Marvisak/VIctory/pull/211#issuecomment-7148036379) Automated triage for the maintainers. Closing because it breaks a repository rule (see `docs/asset-policy.md` and the project rules): nothing taken from the console SDK or the game, no weakening of the asset policy, and the title stays offline. If this is mistaken, reply here with what was missed (or push a change and say so) and it will be looked at again. Thank you for the contribution.
Author
Owner

@⁠Yaekai on GitHub · 2026-11-25 00:35 UTC · original

This looks like a false positive from automated triage — this PR only modifies crates/victory-gpu/src/host.rs and crates/victory-gpu/src/queue.rs, contains no game assets, binaries, or console SDK code/headers, uses only synthetic 32×32 render-target tests and a standard 10-line fullscreen-triangle HLSL shader, keeps everything offline, and passes cargo xtask policy.

In case the SDK struct name in the Plane doc comment / PR description tripped the check, I've replaced it with a neutral description of the observed 0x48-byte stride. Could this be re-checked and reopened?

**@⁠Yaekai** on GitHub · 2026-11-25 00:35 UTC · [original](https://github.com/Marvisak/VIctory/pull/211#issuecomment-7148662531) This looks like a false positive from automated triage — this PR only modifies crates/victory-gpu/src/host.rs and crates/victory-gpu/src/queue.rs, contains no game assets, binaries, or console SDK code/headers, uses only synthetic 32×32 render-target tests and a standard 10-line fullscreen-triangle HLSL shader, keeps everything offline, and passes cargo xtask policy. In case the SDK struct name in the Plane doc comment / PR description tripped the check, I've replaced it with a neutral description of the observed 0x48-byte stride. Could this be re-checked and reopened?
Author
Owner

@⁠Calvix2k on GitHub · 2026-11-25 01:21 UTC · original

Independent confirmation on Windows 10 22H2 + RX 7800 XT (RDNA3), rebasing this PR's head onto main 4118f33 with only our Agility opt-in (#175) added:

  • Without the compositor: --console series-s presents a black window; the title is at 30 fps with 50+ draws/frame.
  • With it: the first-boot UI is visible at 30 fps (the "UI-TEXTGRÖSSE" screen and the calibration logo), and controller input advances it. The swap chain is sized 3840x2160 across the two planes, as the PR describes.

The next blocker here is unrelated to presentation: descriptor::create_placed_srv hands descriptor::record a handle in memory that VirtualQuery reports as not committed/writable (␀x336f0f60); guarding the write lets the title continue and it then hits the null write at ictory-image+0x23cf683 (#1118), so the placed view is needed. That is the Series S descriptor-heap case, not this PR.

The triage closure (asset policy) is a false positive from where I sit: this changes only crates/victory-gpu/src/host.rs and queue.rs, adds a ~10-line HLSL compositor compiled at runtime, and cargo xtask policy passes on the rebased tree. Please re-check/reopen.

**@⁠Calvix2k** on GitHub · 2026-11-25 01:21 UTC · [original](https://github.com/Marvisak/VIctory/pull/211#issuecomment-7149457767) Independent confirmation on **Windows 10 22H2 + RX 7800 XT (RDNA3)**, rebasing this PR's head onto main 4118f33 with only our Agility opt-in (#175) added: - **Without the compositor:** --console series-s presents a black window; the title is at 30 fps with 50+ draws/frame. - **With it:** the first-boot UI is visible at 30 fps (the "UI-TEXTGRÖSSE" screen and the calibration logo), and controller input advances it. The swap chain is sized 3840x2160 across the two planes, as the PR describes. The next blocker here is unrelated to presentation: descriptor::create_placed_srv hands descriptor::record a handle in memory that VirtualQuery reports as not committed/writable (␀x336f0f60); guarding the write lets the title continue and it then hits the null write at ictory-image+0x23cf683 (#1118), so the placed view is needed. That is the Series S descriptor-heap case, not this PR. The triage closure (asset policy) is a false positive from where I sit: this changes only crates/victory-gpu/src/host.rs and queue.rs, adds a ~10-line HLSL compositor compiled at runtime, and cargo xtask policy passes on the rebased tree. Please re-check/reopen.

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No reviewers
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!211
No description provided.