Report: in game on an RTX 5060 Ti 8 GB with 16 GB RAM, using fxceless/victory-gta6 — the path, the numbers, and where help is needed #1820

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

@⁠Exopus-0x65f7ad0 on GitHub · 2026-11-24 23:00 UTC · original

From a tester working with Claude (AI-assisted); measured on my own machine. No title data in this report: no shader hashes, addresses or dumps.

Short version: with fxceless/victory-gta6, a mid-range NVIDIA card, 8 GB of VRAM and 16 GB of RAM:

  • The opening cutscene plays lit, from start to finish.
  • The first gameplay scene is reached: the character is controllable and the movement and camera help shows.
  • It runs at 1-2.5 fps, and anything in shadow is black.

Below is how we got there, so others with the black screen on NVIDIA (#1317, #1670, #1754, #1781) can reproduce it, and where help is needed next.

Machine

GPU RTX 5060 Ti 8 GB, driver 621.14 (32-lane waves)
CPU Ryzen 7 8700F
RAM 16 GB, with a large pagefile
OS Windows 11
Profile Series X (--console series-x)

The path, in order

1. Black cutscene on upstream and the NVIDIA stack.

  • The geometry was there (the depth and stencil targets held the whole scene), but the color targets stayed empty.
  • Cause: the lighting and post-processing compute programs were dropped.
  • Two reasons:
    • many did not translate;
    • the NVIDIA driver refused the 64-lane ones ("maximum wave lane count for device is 32").
  • #1638 (wave64 emulation and the NVIDIA stack) fixed the refusals, but the image stayed mostly black.

2. Translating more programs, offline.

  • Rather than a 5-minute game run per try, we saved the containers the title failed to translate and ran victory translate <folder> --pipelines on them.
  • With #704/#193 (unknown-stride buffers), #710 (addresses in two root constants), #1225, and a few small fixes of our own, 198 of 438 failing programs got pipelines (154 before).
  • Still mostly black.

3. The PC freeze.

  • One of the newly enabled programs walks a parent table that another, still-dropped program should have filled. Its loop ran 2^20 iterations per lane.
  • The submission outlasted the driver's timeout, the driver's reset failed, and the desktop froze until a hard reboot.
  • Fix posted as #1819 (loop limit 2^14). If you test anything that enables new programs, set VICTORY_SHADER_LOOP_LIMIT=16384.

4. The fork.

  • fxceless/victory-gta6 found the real cause of the black world on NVIDIA:
    • raw reads through a structured buffer view return 0 on NVIDIA (upstream as #1762), so the lighting's pre-exposure multiplies everything by 0;
    • meshlet culling read its scene buffers as the wrong kind of view.
  • Built as is, it showed the lit cutscene on the first run here, and the first gameplay scene after the credits.

Numbers (same machine, same settings)

Our NVIDIA-stack branch Fork, cold shader cache Fork, warm cache
Cutscene black lit lit, credits art in colour
ms per frame ~5000 ~1200 400-500 (cutscene), 590-800 (first gameplay scene)
GPU time per frame ~3200 ms 110-450 ms ~170-230 ms
Draws dropped per frame 240-1260 (pipelines building) ~530, of which 524 are the ray-tracing builder (off by design in the fork)

Where a 490 ms gameplay frame goes, from the fork's own per-frame report:

  • The card is about 47% busy. There are 41 submissions per frame, each waited for: 233 ms of waiting.
  • About 405 MB per frame of shader-written ranges are snapshotted and compared on the CPU.
  • About 230 ms of GPU work. 30 fps would need 33 ms in total.

How to reproduce

git clone https://github.com/fxceless/victory-gta6
cd victory-gta6
cargo build --profile diag -p victory --features diagnostics

Then run with the safety and diagnostics switches:

set VICTORY_SHADER_LOOP_LIMIT=16384
set VICTORY_D3D12_DRED=1
set VICTORY_KEYS=35:Enter,40:Enter,45:Enter,52:Enter
target\diag\victory.exe run <title exe> --execute --console series-x

Notes:

  • The first run compiles about 1,400 pipelines. Measure on the second run.
  • With 8 GB of VRAM the card is already at about 7.3 GB in use. If you try the fork's speed switches (VICTORY_RELAY=2, VICTORY_CARD_BUFFERS_MIN_MB=1), keep VICTORY_CARD_BUFFERS_MB at 512 or below.
  • Never build while the title runs on a 16 GB machine.

What is left, and where help is most useful

  1. Light in shadow (biggest visual gap).
    • The title's bounce light and lamp and sun shadows are its own ray-tracing compute programs.
    • The fork translates most of them and emulates the node test, but the builder stays off: a few of its programs still ask for 64-lane waves on a 32-lane GPU.
    • The wave64 emulation from #189/#1638 is the missing piece there.
    • See the fork's docs/fork-ray-tracing.md.
  2. Frame rate.
    • Waiting for every submission and the CPU-side compares are the two largest costs, ahead of the GPU work itself.
    • The fork's relay and late-wait switches address the first. They need measuring on 8 GB and 16 GB machines.
  3. The first loading screen (the artwork with vegetation) draws broken. The second one, and the cutscene, are fine.
  4. Memory. The fork uses about 18 GB of private memory here, on 16 GB of RAM: paging stalls frames for seconds.

If you have an NVIDIA card, please run the fork with the settings above and post your ms-per-frame line and whether the cutscene is lit. That tells us quickly whether this holds beyond two machines. Coordination is in #1633.

🤖 Generated with Claude Code

**@⁠Exopus-0x65f7ad0** on GitHub · 2026-11-24 23:00 UTC · [original](https://github.com/Marvisak/VIctory/issues/1820) *From a tester working with Claude (AI-assisted); measured on my own machine. No title data in this report: no shader hashes, addresses or dumps.* **Short version:** with [fxceless/victory-gta6](https://github.com/fxceless/victory-gta6), a mid-range NVIDIA card, 8 GB of VRAM and 16 GB of RAM: - The opening cutscene plays **lit**, from start to finish. - The **first gameplay scene** is reached: the character is controllable and the movement and camera help shows. - It runs at 1-2.5 fps, and anything in shadow is black. Below is how we got there, so others with the black screen on NVIDIA (#1317, #1670, #1754, #1781) can reproduce it, and where help is needed next. ## Machine | | | |---|---| | GPU | RTX 5060 Ti 8 GB, driver 621.14 (32-lane waves) | | CPU | Ryzen 7 8700F | | RAM | 16 GB, with a large pagefile | | OS | Windows 11 | | Profile | Series X (`--console series-x`) | ## The path, in order **1. Black cutscene on upstream and the NVIDIA stack.** - The geometry was there (the depth and stencil targets held the whole scene), but the color targets stayed empty. - Cause: the lighting and post-processing compute programs were dropped. - Two reasons: - many did not translate; - the NVIDIA driver refused the 64-lane ones ("maximum wave lane count for device is 32"). - #1638 (wave64 emulation and the NVIDIA stack) fixed the refusals, but the image stayed mostly black. **2. Translating more programs, offline.** - Rather than a 5-minute game run per try, we saved the containers the title failed to translate and ran `victory translate <folder> --pipelines` on them. - With #704/#193 (unknown-stride buffers), #710 (addresses in two root constants), #1225, and a few small fixes of our own, 198 of 438 failing programs got pipelines (154 before). - Still mostly black. **3. The PC freeze.** - One of the newly enabled programs walks a parent table that another, still-dropped program should have filled. Its loop ran 2^20 iterations per lane. - The submission outlasted the driver's timeout, the driver's reset **failed**, and the desktop froze until a hard reboot. - Fix posted as **#1819** (loop limit 2^14). If you test anything that enables new programs, set `VICTORY_SHADER_LOOP_LIMIT=16384`. **4. The fork.** - [fxceless/victory-gta6](https://github.com/fxceless/victory-gta6) found the real cause of the black world on NVIDIA: - **raw reads through a structured buffer view return 0 on NVIDIA** (upstream as #1762), so the lighting's pre-exposure multiplies everything by 0; - meshlet culling read its scene buffers as the wrong kind of view. - Built as is, it showed the lit cutscene on the first run here, and the first gameplay scene after the credits. ## Numbers (same machine, same settings) | | Our NVIDIA-stack branch | Fork, cold shader cache | Fork, warm cache | |---|---|---|---| | Cutscene | black | lit | lit, credits art in colour | | ms per frame | ~5000 | ~1200 | **400-500** (cutscene), 590-800 (first gameplay scene) | | GPU time per frame | ~3200 ms | 110-450 ms | ~170-230 ms | | Draws dropped per frame | 240-1260 | (pipelines building) | ~530, of which **524 are the ray-tracing builder** (off by design in the fork) | Where a 490 ms gameplay frame goes, from the fork's own per-frame report: - **The card is about 47% busy.** There are 41 submissions per frame, each waited for: 233 ms of waiting. - **About 405 MB per frame** of shader-written ranges are snapshotted and compared on the CPU. - **About 230 ms of GPU work.** 30 fps would need 33 ms in total. ## How to reproduce ``` git clone https://github.com/fxceless/victory-gta6 cd victory-gta6 cargo build --profile diag -p victory --features diagnostics ``` Then run with the safety and diagnostics switches: ``` set VICTORY_SHADER_LOOP_LIMIT=16384 set VICTORY_D3D12_DRED=1 set VICTORY_KEYS=35:Enter,40:Enter,45:Enter,52:Enter target\diag\victory.exe run <title exe> --execute --console series-x ``` Notes: - The first run compiles about 1,400 pipelines. Measure on the second run. - With 8 GB of VRAM the card is already at about 7.3 GB in use. If you try the fork's speed switches (`VICTORY_RELAY=2`, `VICTORY_CARD_BUFFERS_MIN_MB=1`), keep `VICTORY_CARD_BUFFERS_MB` at 512 or below. - Never build while the title runs on a 16 GB machine. ## What is left, and where help is most useful 1. **Light in shadow (biggest visual gap).** - The title's bounce light and lamp and sun shadows are its own ray-tracing compute programs. - The fork translates most of them and emulates the node test, but the builder stays off: a few of its programs still ask for 64-lane waves on a 32-lane GPU. - The wave64 emulation from #189/#1638 is the missing piece there. - See the fork's `docs/fork-ray-tracing.md`. 2. **Frame rate.** - Waiting for every submission and the CPU-side compares are the two largest costs, ahead of the GPU work itself. - The fork's relay and late-wait switches address the first. They need measuring on 8 GB and 16 GB machines. 3. **The first loading screen** (the artwork with vegetation) draws broken. The second one, and the cutscene, are fine. 4. **Memory.** The fork uses about 18 GB of private memory here, on 16 GB of RAM: paging stalls frames for seconds. If you have an NVIDIA card, please run the fork with the settings above and post your ms-per-frame line and whether the cutscene is lit. That tells us quickly whether this holds beyond two machines. Coordination is in #1633. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:45:38 +00:00
Author
Owner

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

Hi everyone!

I want to help get community contributions into the project faster, so I've started VIctory V2, an integration fork of this repository:
https://github.com/DesertGamer/VIctory-V2

What it does

  • Merges open community PRs from upstream in batches
  • Screens each PR for suspicious content (binaries, build.rs, git hooks, scripts, new dependencies)
  • Runs tests after every batch
  • Resolves conflicts between PRs and records the reasoning in the commit message

Please note

  • V2 is not an official project and is not endorsed by the original author.
  • Original history and commit authorship are preserved, and V2 is regularly synced with upstream main.
  • Licensed under GPL-3.0-or-later, same as upstream.
  • Current status is the same as upstream: not playable yet. The world loads, but world rendering crashes with a GPU device-removed error (tested on Windows 11 / RX 6700 XT).

If your PR has been sitting unreviewed, feel free to point me to it. Feedback and bug reports are welcome in the V2 repo.

If this post doesn't belong in this section, let me know and I'll remove it.

**@⁠DesertGamer** on GitHub · 2026-11-24 23:11 UTC · [original](https://github.com/Marvisak/VIctory/issues/1820#issuecomment-7147108818) Hi everyone! I want to help get community contributions into the project faster, so I've started **VIctory V2**, an integration fork of this repository: https://github.com/DesertGamer/VIctory-V2 **What it does** - Merges open community PRs from upstream in batches - Screens each PR for suspicious content (binaries, `build.rs`, git hooks, scripts, new dependencies) - Runs tests after every batch - Resolves conflicts between PRs and records the reasoning in the commit message **Please note** - V2 is **not** an official project and is not endorsed by the original author. - Original history and commit authorship are preserved, and V2 is regularly synced with upstream `main`. - Licensed under GPL-3.0-or-later, same as upstream. - Current status is the same as upstream: not playable yet. The world loads, but world rendering crashes with a GPU device-removed error (tested on Windows 11 / RX 6700 XT). If your PR has been sitting unreviewed, feel free to point me to it. Feedback and bug reports are welcome in the V2 repo. If this post doesn't belong in this section, let me know and I'll remove it.
Author
Owner

@⁠nopsled0x on GitHub · 2026-11-24 23:17 UTC · original · edited 2026-11-25 00:37 UTC

Same fork and same GPU model (but the 16 GB version), on Windows 10: it also reaches the first gameplay scene here. One extra step was needed.

The fork is now at fxceless/victory-fork; the old name victory-gta6 redirects there.

Machine

GPU RTX 5060 Ti 16 GB, driver 32.0.16.2140 (the log reports host wave lanes min=32 max=32)
OS Windows 10 22H2 (build 19045)
Code the fork at 2119b0e (its tip when I tested), plus #175 cherry-picked (it applied cleanly)
Run victory run <exe> --execute, diagnostics build, 540 s, menus navigated by hand into the game

The extra step on Windows 10: without #175, host device creation failed here (0x887E0003; only SM 6.5 was reported). Presumably SM 6.6 needs the D3D12 Agility SDK runtime, which Windows 10 does not ship. With #175 and cargo xtask agility the fork started.

Measured in that run (one run)

  • No device removal in 540 s.
  • The captured frames of the game scene are not black: in the 47 frames saved from frame 1756 to 2116, at least 99.0 % of the pixels have a channel above 8 (of 255), and the downscaled frames hold 5,722 to 19,334 distinct colours. (Earlier frames are title screens and fades and are not counted.)
  • 2,917 programs translated, 8 refused:
    • pixel: a descriptor read only as data (2), the first half of an interpolation (1);
    • compute: a lane mask exchanged where not every lane runs (1), v_cvt_f32_f64 (2), v_permlanex16_b32 (1), a descriptor's address or format read as data (1).
  • 4 host pipelines refused with E_INVALIDARG.
  • About 325 draws per frame are dropped with "a stage of the ray-tracing structure builder, which is off". That is the fork's documented gap (shadows black), not a new finding.

Seen by the tester, not measured by a tool: the first scene is lit and the character is controllable; the in-window counter showed about 1 fps (690 to 780 ms/frame, 4,000 to 6,500 draws/frame).

For comparison, same machine: upstream main 70564ae plus #175 lost the device in 4 of 4 runs, between 53 s and 61 s. ffe310e, the commit the fork is based on, survived one 100 s run.

Correction: this comment first said 8 GB and "same card". The card has 16 GB (16,311 MiB reported by nvidia-smi), so this is not the 8 GB card of the issue, and this run says nothing about fitting in 8 GB. The logged numbers above are unchanged.

AI-assisted verification (Claude); every number above comes from this machine (logs, captures, the in-window counter, and nvidia-smi for the card memory), and nothing was run on other hardware.

**@⁠nopsled0x** on GitHub · 2026-11-24 23:17 UTC · [original](https://github.com/Marvisak/VIctory/issues/1820#issuecomment-7147233767) · edited 2026-11-25 00:37 UTC Same fork and same GPU model (but the **16 GB** version), on **Windows 10**: it also reaches the first gameplay scene here. One extra step was needed. The fork is now at `fxceless/victory-fork`; the old name `victory-gta6` redirects there. **Machine** | | | |---|---| | GPU | RTX 5060 Ti 16 GB, driver 32.0.16.2140 (the log reports host wave lanes min=32 max=32) | | OS | Windows 10 22H2 (build 19045) | | Code | the fork at `2119b0e` (its tip when I tested), plus #175 cherry-picked (it applied cleanly) | | Run | `victory run <exe> --execute`, diagnostics build, 540 s, menus navigated by hand into the game | **The extra step on Windows 10:** without #175, host device creation failed here (0x887E0003; only SM 6.5 was reported). Presumably SM 6.6 needs the D3D12 Agility SDK runtime, which Windows 10 does not ship. With #175 and `cargo xtask agility` the fork started. **Measured in that run (one run)** - No device removal in 540 s. - The captured frames of the game scene are not black: in the 47 frames saved from frame 1756 to 2116, at least 99.0 % of the pixels have a channel above 8 (of 255), and the downscaled frames hold 5,722 to 19,334 distinct colours. (Earlier frames are title screens and fades and are not counted.) - 2,917 programs translated, 8 refused: - pixel: a descriptor read only as data (2), the first half of an interpolation (1); - compute: a lane mask exchanged where not every lane runs (1), `v_cvt_f32_f64` (2), `v_permlanex16_b32` (1), a descriptor's address or format read as data (1). - 4 host pipelines refused with E_INVALIDARG. - About 325 draws per frame are dropped with "a stage of the ray-tracing structure builder, which is off". That is the fork's documented gap (shadows black), not a new finding. **Seen by the tester, not measured by a tool:** the first scene is lit and the character is controllable; the in-window counter showed about 1 fps (690 to 780 ms/frame, 4,000 to 6,500 draws/frame). **For comparison, same machine:** upstream main `70564ae` plus #175 lost the device in 4 of 4 runs, between 53 s and 61 s. `ffe310e`, the commit the fork is based on, survived one 100 s run. **Correction:** this comment first said 8 GB and "same card". The card has 16 GB (16,311 MiB reported by `nvidia-smi`), so this is not the 8 GB card of the issue, and this run says nothing about fitting in 8 GB. The logged numbers above are unchanged. AI-assisted verification (Claude); every number above comes from this machine (logs, captures, the in-window counter, and `nvidia-smi` for the card memory), and nothing was run on other hardware.
Author
Owner

@⁠Exopus-0x65f7ad0 on GitHub · 2026-11-25 01:51 UTC · original

Update, same machine (RTX 5060 Ti 8 GB, 16 GB RAM). @⁠nopsled0x, thanks for reproducing it on the 16 GB card and Windows 10, and for the #175 note.

What changed since the report, on top of the fork (now fxceless/victory-fork):

1. Hair is complete

  • The hair's indirect compute dispatch asks for about 85,000-96,000 groups along x. D3D12 runs at most 65,535 per dimension, so the clamp cut about a quarter of the hair.
  • With VICTORY_GROUP_SPLIT=1:
    • a translated compute program adds a host word to its group id along x;
    • the clamp writes a second record for the groups past 65,535;
    • the host runs it as a second ExecuteIndirect with the base set.
  • The hair renders clean, and the frame time is unchanged: 2.9-3.1 fps in gameplay (322-344 ms), release build with the fork's relay switches.
  • Emptying such records instead, which I tried first, gives +7 % but turns the hair into blocks of noise. Don't.

2. The ray-tracing structure builder now starts on a 32-lane NVIDIA card

  • It reaches the ray-tracing structure builder runs ... pipelines=53. Before, 3 to 5 of its programs were refused for wanting 64-lane waves.
  • Three translator switches, all off by default:
    • VICTORY_EXIT_REGIONS=1: a lane branch whose other way is just s_endpgm makes no region. The lanes that exit are done, so the title's barrier inside a "thread in range" wrapper stays a real barrier.
    • VICTORY_UNIFORM_LOOPS=1: lane_uniform as a greatest fixpoint. LDS reads at an address alike in every lane, and loop-header phis, count as alike. The builder's group-wide prefix sum (per-wave totals in LDS, then a loop of v_readfirstlane) then translates.
    • VICTORY_WAVE_WIDE=2: the wave-wide form only as a last resort. Tried first (=1), it displaced forms that worked for other programs.
  • Over the ~2,800 saved shaders: compute 1163 → 1166 of 1172, nothing lost, all 1166 pass dxil.dll.
  • It still does not run end to end. Within a minute the title-memory-by-address module runs out of memory: it refreshes and compares every numbered copy, up to 1,023 × 4 MiB, on every dispatch. The builder's real structures span more than 4 GB here. I also bounded the copies to the title's address range (4 GiB to 1 TiB); shaders were following null pointers from 0x10000. That is not enough. It needs a dirty-page mask written by the shaders, or direct access to title memory.

3. Where the GPU time goes

  • VICTORY_GPU_TIMING=1, gameplay: three compute programs take about 81 % of the GPU.
    • The hair takes 43 %, about 36 ms per dispatch.
    • The other two take 27.5 % and 10.7 %.
  • All three are native 32-lane programs, and a loop limit of 1,024 does not change their cost, so it is real work translated into slow code.

4. Shader cache key

  • The fork's cache did not key on the new switches: runs of one executable with different switches shared translations. They are now in the key.

These commits are on a local branch for now. I can open them as PRs to the fork if that helps.

🤖 Generated with Claude Code

**@⁠Exopus-0x65f7ad0** on GitHub · 2026-11-25 01:51 UTC · [original](https://github.com/Marvisak/VIctory/issues/1820#issuecomment-7150047464) **Update, same machine (RTX 5060 Ti 8 GB, 16 GB RAM).** @⁠nopsled0x, thanks for reproducing it on the 16 GB card and Windows 10, and for the #175 note. What changed since the report, on top of the fork (now `fxceless/victory-fork`): **1. Hair is complete** - The hair's indirect compute dispatch asks for about 85,000-96,000 groups along x. D3D12 runs at most 65,535 per dimension, so the clamp cut about a quarter of the hair. - With `VICTORY_GROUP_SPLIT=1`: - a translated compute program adds a host word to its group id along x; - the clamp writes a second record for the groups past 65,535; - the host runs it as a second `ExecuteIndirect` with the base set. - The hair renders clean, and the frame time is unchanged: 2.9-3.1 fps in gameplay (322-344 ms), release build with the fork's relay switches. - Emptying such records instead, which I tried first, gives +7 % but turns the hair into blocks of noise. Don't. **2. The ray-tracing structure builder now starts on a 32-lane NVIDIA card** - It reaches `the ray-tracing structure builder runs ... pipelines=53`. Before, 3 to 5 of its programs were refused for wanting 64-lane waves. - Three translator switches, all off by default: - `VICTORY_EXIT_REGIONS=1`: a lane branch whose other way is just `s_endpgm` makes no region. The lanes that exit are done, so the title's barrier inside a "thread in range" wrapper stays a real barrier. - `VICTORY_UNIFORM_LOOPS=1`: `lane_uniform` as a greatest fixpoint. LDS reads at an address alike in every lane, and loop-header phis, count as alike. The builder's group-wide prefix sum (per-wave totals in LDS, then a loop of `v_readfirstlane`) then translates. - `VICTORY_WAVE_WIDE=2`: the wave-wide form only as a last resort. Tried first (`=1`), it displaced forms that worked for other programs. - Over the ~2,800 saved shaders: compute 1163 → 1166 of 1172, nothing lost, all 1166 pass `dxil.dll`. - **It still does not run end to end.** Within a minute the title-memory-by-address module runs out of memory: it refreshes and compares every numbered copy, up to 1,023 × 4 MiB, on every dispatch. The builder's real structures span more than 4 GB here. I also bounded the copies to the title's address range (4 GiB to 1 TiB); shaders were following null pointers from 0x10000. That is not enough. It needs a dirty-page mask written by the shaders, or direct access to title memory. **3. Where the GPU time goes** - `VICTORY_GPU_TIMING=1`, gameplay: three compute programs take about 81 % of the GPU. - The hair takes 43 %, about 36 ms per dispatch. - The other two take 27.5 % and 10.7 %. - All three are native 32-lane programs, and a loop limit of 1,024 does not change their cost, so it is real work translated into slow code. **4. Shader cache key** - The fork's cache did not key on the new switches: runs of one executable with different switches shared translations. They are now in the key. These commits are on a local branch for now. I can open them as PRs to the fork if that helps. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Author
Owner

@⁠Exopus-0x65f7ad0 on GitHub · 2026-11-25 06:10 UTC · original

Update 2, same machine (RTX 5060 Ti 8 GB, 16 GB RAM, Windows 11), on top of fxceless/victory-fork. AI-assisted (Claude Code). No title data in this post.

Short version:

  • The opening cutscene and the first gameplay scene are now textured: characters, clothes and set dressing were missing their textures before.
  • Loading screens draw clean.
  • No host pipeline is refused by the driver any more.
  • Speed is 3.6-4 fps. Shadows are still black.

Help is wanted on the last two (see the end).

What changed

1. Missing textures on an 8 GB card: the card was "full"

  • Textures that shaders pick by index wait in a queue. About 9,000-10,000 were due, the oldest written 2,000+ frames earlier.
  • The cause is not the per-frame byte budget (VICTORY_HEAP_TEXTURE_MB). It is resource::room(): no new host texture once the card uses more than 90 % of its DXGI budget. On 8 GB, with the fork's card-side buffer copies, that is reached all the time.
  • An explicit cap fixes it: VICTORY_TEXTURE_BUDGET_MB=4000 with VICTORY_HEAP_TEXTURE_MB=2048.
Texture cap Textures still due Speed Picture
default (90 % rule) ~8,700 3.8 fps characters untextured
5000 MB ~2,500 2.4 fps textured, VRAM spills (7.5 / 8 GB)
4000 MB ~5,900 3.6 fps textured, 7.2 GB used
  • On a 12-16 GB card this probably needs no setting at all. Reports welcome.

2. Loading screens: DirectStorage into physical pages

  • DirectStorage requests whose destination is title physical pages were never reported to the GPU side, and those pages are not write-watched. Textures kept the contents of recycled pages (pieces of other artwork).
  • Fix: after the write, find the title addresses whose views show the written pages and report them (kernel_will_write).

3. Translator

  • v_cvt_f32_f64, done with 64-bit integers: no doubles in the output, round to nearest even, denormals, inf/NaN. Tested against Rust's own cast on the GPU and on WARP.
  • VICTORY_WAVE_LDS_LOOSE=1, opt-in and approximate. It splits wave64 programs that have an LDS read and write in one lane-branch region into two 32-lane waves, which meet only around the region.
    • It is exact where a lane reads only what its own half wrote there, as in a sort's compare-and-swap.
    • It lets the driver accept the last two programs it refused as 64-lane waves.
    • One of them goes 132 bytes over 32 KB of group-shared memory, because of the exchange dwords. The validator flags it; the NVIDIA driver takes it.
  • Offline over everything the title compiled here: 1,166 of 1,172 compute programs get a pipeline.

4. Speed: where a 265 ms frame goes now

  • About 100 ms of CPU preparation:
    • about 55 ms sending up about 135 MB of copies;
    • 20-40 ms refreshing unwatched memory behind buffers that shaders pick by index (it is copied whole every frame).
  • About 135 ms really waiting for the card. Of that, about 80 ms is the title's shaders; the rest is the copy machinery (hashing and comparing pieces, sending ranges).
  • The copy-back thread (about 200 ms, 160 of them waiting for card pieces) runs beside it, not in series.

Tried with no gain:

  • VICTORY_INPLACE=1: 3.1 fps. The card reads title memory over PCIe; the hair shader showed the same effect before.
  • VICTORY_LATE_WAIT_LISTS=512: the settles move from "lists in the air" to "title memory read", same total wait.
  • VICTORY_UNWATCHED_FRAMES=2: saves about 15 ms, but stale data shows on textures.
  • Answering GlobalMemoryStatusEx with console figures: the title never calls it.

Where help is most useful

  1. Shadows / ray tracing. The structure builder starts (53/53 programs with VICTORY_EXIT_REGIONS=1 VICTORY_UNIFORM_LOOPS=1 VICTORY_WAVE_WIDE=2), then dies out of memory.
    • Title memory by address gives each touched page a 4 MiB copy (at most 1,023). It refreshes and compares all of them on every dispatch.
    • The builder's structures span more than 4 GB.
    • The dirty-page mask written by shaders, which the module's own comment proposes, is the missing piece. If you know that code, or have a better design, please say so.
  2. Frame rate. 30 fps means about 8x less on both the CPU preparation and the card's copy work. The real fix looks like title memory living on the card, with CPU writes tracked, instead of copies, hashes and compares. Has anyone sketched that for VIctory?
  3. Measurements on other cards. Especially 12-16 GB NVIDIA and AMD: ms per frame, and whether characters are textured without VICTORY_TEXTURE_BUDGET_MB.

The fork commits behind this are on a local branch. I can open PRs against the fork or upstream for any of them; say which would be useful.

🤖 Generated with Claude Code

**@⁠Exopus-0x65f7ad0** on GitHub · 2026-11-25 06:10 UTC · [original](https://github.com/Marvisak/VIctory/issues/1820#issuecomment-7154526397) **Update 2, same machine (RTX 5060 Ti 8 GB, 16 GB RAM, Windows 11), on top of `fxceless/victory-fork`.** *AI-assisted (Claude Code). No title data in this post.* Short version: - The opening cutscene and the first gameplay scene are now **textured**: characters, clothes and set dressing were missing their textures before. - Loading screens draw clean. - No host pipeline is refused by the driver any more. - Speed is **3.6-4 fps**. Shadows are still black. Help is wanted on the last two (see the end). ## What changed **1. Missing textures on an 8 GB card: the card was "full"** - Textures that shaders pick by index wait in a queue. About 9,000-10,000 were due, the oldest written 2,000+ frames earlier. - The cause is not the per-frame byte budget (`VICTORY_HEAP_TEXTURE_MB`). It is `resource::room()`: no new host texture once the card uses more than 90 % of its DXGI budget. On 8 GB, with the fork's card-side buffer copies, that is reached all the time. - An explicit cap fixes it: `VICTORY_TEXTURE_BUDGET_MB=4000` with `VICTORY_HEAP_TEXTURE_MB=2048`. | Texture cap | Textures still due | Speed | Picture | |---|---|---|---| | default (90 % rule) | ~8,700 | 3.8 fps | characters untextured | | 5000 MB | ~2,500 | 2.4 fps | textured, VRAM spills (7.5 / 8 GB) | | **4000 MB** | ~5,900 | **3.6 fps** | **textured**, 7.2 GB used | - On a 12-16 GB card this probably needs no setting at all. Reports welcome. **2. Loading screens: DirectStorage into physical pages** - DirectStorage requests whose destination is title physical pages were never reported to the GPU side, and those pages are not write-watched. Textures kept the contents of recycled pages (pieces of other artwork). - Fix: after the write, find the title addresses whose views show the written pages and report them (`kernel_will_write`). **3. Translator** - `v_cvt_f32_f64`, done with 64-bit integers: no doubles in the output, round to nearest even, denormals, inf/NaN. Tested against Rust's own cast on the GPU and on WARP. - `VICTORY_WAVE_LDS_LOOSE=1`, opt-in and approximate. It splits wave64 programs that have an LDS read and write in one lane-branch region into two 32-lane waves, which meet only around the region. - It is exact where a lane reads only what its own half wrote there, as in a sort's compare-and-swap. - It lets the driver accept the last two programs it refused as 64-lane waves. - One of them goes 132 bytes over 32 KB of group-shared memory, because of the exchange dwords. The validator flags it; the NVIDIA driver takes it. - Offline over everything the title compiled here: 1,166 of 1,172 compute programs get a pipeline. **4. Speed: where a 265 ms frame goes now** - About 100 ms of CPU preparation: - about 55 ms sending up about 135 MB of copies; - 20-40 ms refreshing unwatched memory behind buffers that shaders pick by index (it is copied whole every frame). - About 135 ms really waiting for the card. Of that, about 80 ms is the title's shaders; the rest is the copy machinery (hashing and comparing pieces, sending ranges). - The copy-back thread (about 200 ms, 160 of them waiting for card pieces) runs beside it, not in series. Tried with no gain: - `VICTORY_INPLACE=1`: 3.1 fps. The card reads title memory over PCIe; the hair shader showed the same effect before. - `VICTORY_LATE_WAIT_LISTS=512`: the settles move from "lists in the air" to "title memory read", same total wait. - `VICTORY_UNWATCHED_FRAMES=2`: saves about 15 ms, but stale data shows on textures. - Answering `GlobalMemoryStatusEx` with console figures: the title never calls it. ## Where help is most useful 1. **Shadows / ray tracing.** The structure builder starts (53/53 programs with `VICTORY_EXIT_REGIONS=1 VICTORY_UNIFORM_LOOPS=1 VICTORY_WAVE_WIDE=2`), then dies out of memory. - Title memory by address gives each touched page a 4 MiB copy (at most 1,023). It refreshes and compares all of them on every dispatch. - The builder's structures span more than 4 GB. - The dirty-page mask written by shaders, which the module's own comment proposes, is the missing piece. If you know that code, or have a better design, please say so. 2. **Frame rate.** 30 fps means about 8x less on both the CPU preparation and the card's copy work. The real fix looks like title memory living on the card, with CPU writes tracked, instead of copies, hashes and compares. Has anyone sketched that for VIctory? 3. **Measurements on other cards.** Especially 12-16 GB NVIDIA and AMD: ms per frame, and whether characters are textured without `VICTORY_TEXTURE_BUDGET_MB`. The fork commits behind this are on a local branch. I can open PRs against the fork or upstream for any of them; say which would be useful. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Author
Owner

@⁠Marvisak on GitHub · 2026-11-25 12:47 UTC · original · edited 2026-11-26 06:44 UTC

Automated triage for the maintainers.

These are run reports on forks, not on upstream main:

  • RTX 5060 Ti 8 GB, driver 621.14, Windows 11
  • RTX 5060 Ti 16 GB, driver 32.0.16.2140, Windows 10 19045, fork 2119b0e plus #175
  • RTX 3060 12 GB, driver 610.88, Windows 11 26300, fork 0b0074e, later 085ee7c
  • RTX 5070 Ti, driver 621.01, 32 GB RAM, Zayfway's 3e760ed
  • RTX 5080, driver 620.73.04, Linux / GE-Proton11-6, a ZTRX-derived build (new since the last triage)

All of them reach the lit opening cutscene and the first gameplay scene, with black shadows. With the fork's frame-rate series plus a dozen fork PRs, the Series S profile and a set of the fork's switches, the 8 GB card reaches about 8.5 fps in the first room, the 12 GB card reproduces it (8.56 fps median), and the RTX 5070 Ti with 32 GB reaches 9.6 fps at the first window. On 16 GB of RAM the limit reported is paging, not the card. None of this is upstream code, so it does not map onto main change by change.

New since the last triage (RTX 5080, Linux): a texture budget of 3072 MiB lowered the peak of live host copies from 4,446 to 3,236 MiB in one run each, with no frame-rate or loading claim; and a synthetic readback test showed that a texture refilled by DirectStorage stayed stale for 7 readbacks until the renderer was told about the written range, and was fresh on the first readback once mapped-page write reporting was ported to that fork. On main that reporting is report_written in crates/victory-hle/src/modules/xmem.rs (see #2503); a PR with a test against main is the place to show whether main has the same gap.

On upstream (main at 63bcca4): the black world and device loss on NVIDIA are tracked in #71, and Windows 10 stopping at SM 6.5 without the Agility SDK is tracked in #84. The early device loss on upstream on these cards comes from a B5G5R5A1_UNORM texture with a typed UAV and B4G4R4A4_UNORM as a render target. The CreateUnorderedAccessView side is on main: fits in crates/victory-gpu/src/descriptor/host.rs checks typed-store support for every unordered view (#2462, tracked in #1753). host_desc in crates/victory-gpu/src/resource.rs still keeps the console's unordered-access and render-target flags whatever the format, so texture creation in those formats can still be refused. Still-open PRs for that: #2459, #2319, #1832; for the render-target side #2767 and #2626 (also reported in #97, #735, #2563).

Upstream PRs offered here: the loop-limit change #1819 and the loop-limit hit counter #2733 are open. The v_cvt_f32_f64 lowering and the DirectStorage physical-page reporting are still welcome as separate PRs with tests.


Generated by Claude Code

**@⁠Marvisak** on GitHub · 2026-11-25 12:47 UTC · [original](https://github.com/Marvisak/VIctory/issues/1820#issuecomment-7162864979) · edited 2026-11-26 06:44 UTC <!-- victory-issue-triage v1 verdict=tracked seen=2026-11-26T06:19:57Z at=2026-11-26T06:57:00Z --> Automated triage for the maintainers. These are run reports on forks, not on upstream `main`: - RTX 5060 Ti 8 GB, driver 621.14, Windows 11 - RTX 5060 Ti 16 GB, driver 32.0.16.2140, Windows 10 19045, fork `2119b0e` plus #175 - RTX 3060 12 GB, driver 610.88, Windows 11 26300, fork `0b0074e`, later `085ee7c` - RTX 5070 Ti, driver 621.01, 32 GB RAM, Zayfway's `3e760ed` - RTX 5080, driver 620.73.04, Linux / GE-Proton11-6, a ZTRX-derived build (new since the last triage) All of them reach the lit opening cutscene and the first gameplay scene, with black shadows. With the fork's frame-rate series plus a dozen fork PRs, the Series S profile and a set of the fork's switches, the 8 GB card reaches about 8.5 fps in the first room, the 12 GB card reproduces it (8.56 fps median), and the RTX 5070 Ti with 32 GB reaches 9.6 fps at the first window. On 16 GB of RAM the limit reported is paging, not the card. None of this is upstream code, so it does not map onto `main` change by change. New since the last triage (RTX 5080, Linux): a texture budget of 3072 MiB lowered the peak of live host copies from 4,446 to 3,236 MiB in one run each, with no frame-rate or loading claim; and a synthetic readback test showed that a texture refilled by DirectStorage stayed stale for 7 readbacks until the renderer was told about the written range, and was fresh on the first readback once mapped-page write reporting was ported to that fork. On `main` that reporting is `report_written` in `crates/victory-hle/src/modules/xmem.rs` (see #2503); a PR with a test against `main` is the place to show whether `main` has the same gap. On upstream (`main` at `63bcca4`): the black world and device loss on NVIDIA are tracked in #71, and Windows 10 stopping at SM 6.5 without the Agility SDK is tracked in #84. The early device loss on upstream on these cards comes from a `B5G5R5A1_UNORM` texture with a typed UAV and `B4G4R4A4_UNORM` as a render target. The `CreateUnorderedAccessView` side is on `main`: `fits` in `crates/victory-gpu/src/descriptor/host.rs` checks typed-store support for every unordered view (#2462, tracked in #1753). `host_desc` in `crates/victory-gpu/src/resource.rs` still keeps the console's unordered-access and render-target flags whatever the format, so texture creation in those formats can still be refused. Still-open PRs for that: #2459, #2319, #1832; for the render-target side #2767 and #2626 (also reported in #97, #735, #2563). Upstream PRs offered here: the loop-limit change #1819 and the loop-limit hit counter #2733 are open. The `v_cvt_f32_f64` lowering and the DirectStorage physical-page reporting are still welcome as separate PRs with tests. --- _Generated by [Claude Code](https://claude.ai/code)_
Author
Owner

@⁠Zayfway on GitHub · 2026-11-25 16:50 UTC · original

A 12 GB NVIDIA card with 16 GB of RAM, on fxceless/victory-fork, answering points 2–4 of Update 2. AI-assisted (Claude Code). Every number is from runs on this machine; no title data in this post.

GPU RTX 3060 12 GB, driver 610.88 (32-lane)
CPU / RAM Ryzen 7 5700X / 16 GB
OS Windows 11 26300
Profile Series X, diag build, warm shader cache (translate --warm all: 25,707 translated, 278 do not)

Same scene in every run: the opening cutscene, measured from world +60 s to +240 s.

Fork at 0b0074e: lit, textured, about 2.2 fps

The world is reached ~110 s after launch. The cutscene plays lit, with title cards and credits, and the characters are textured.

On a 12 GB card, no VICTORY_TEXTURE_BUDGET_MB is needed: with VICTORY_LEVELS_ON_DEMAND=1 the card peaks at 9.7–10.1 GB of an 11.3 GB budget.

Base set for every run below: ASYNC_SUBMIT QUEUE2 TEXTURE_NO_WAIT COPY_PLAIN LEVELS_ON_DEMAND.

run fps mean (min–max) ms/frame median host copies of title memory page reads/s
base, run 1 2.09 (0.6–5.0) 666 4.95 GB 2,471
base, run 2 2.27 (0.4–5.2) 694 3.62 GB 1,474
+ VICTORY_WINDOW_KB=256 VICTORY_WINDOW_TAILS=1, run 1 2.30 (0.6–5.3) 568 2.66 GB 1,692
+ VICTORY_WINDOW_KB=256 VICTORY_WINDOW_TAILS=1, run 2 2.15 (0.8–4.9) 586 2.81 GB 1,591
+ VICTORY_INPLACE=1 2.14 (0.5–4.7) 533 3.21 GB 2,929
+ VICTORY_CARD_BUFFERS_MB=3072 2.26 (0.6–3.4) 387 4.03 GB 2,798
fork defaults, cold pipeline cache 1.4–1.6 600–720 – –

Six runs in the world: no crash, no device loss. Six runs is not enough to call the frame rate one way or the other.

Point 4, memory on 16 GB: where the 22–25 GB go

From VirtualQuery over the process, in the world:

  • ~14.9 GB mapped: the title's physical pages. 6.2 GB of it is one block (the pool the title asks for at once); the rest is ~132,000 small views.
  • ~4.5 GB private, below 1 TiB: the title's own heaps.
  • ~16.6 GB private, above it: the layer and the driver. Of this, ~4 GB are host copies of title memory (custom L0 heaps), of which 2.6–4.0 GB are 4 MiB "windows" outside buffers.

What the switches do to that:

  • VICTORY_WINDOW_KB=256 VICTORY_WINDOW_TAILS=1 (finer windows) cuts the windows from 2.6–4.0 GB to 1.7–1.8 GB. There is no visible picture change, and paging is roughly a third lower than run 1 of the base set. Frame rate does not change, and bytes copied per frame double (overlapping windows). That is real RAM saved, but no speed.
  • VICTORY_INPLACE=1 places only 85 windows (400 MB). 1,680 are turned down because they lie in the physical page pool, which is a SEC_RESERVE section that the host will not open as a heap. The lazy SEC_COMMIT chunks in #814 / #980 are what lifts that.
  • VICTORY_CARD_BUFFERS_MB=3072 changes nothing: only ~1 GB of buffers qualify.
  • Paging is the floor here. The submit thread copies ~160 MB a frame at ~1.5 GB/s, because faults dominate. Frames of 1–3.8 s line up with bursts of page reads, while the card is ~38 % busy.

For comparison, XCL (xcl-dev/xcl #2057, same machine) reaches its menus at 30 fps. It then stops with E_OUTOFMEMORY at 32.3 GB private (the commit limit then) while loading the world. Its title pages are private copies, and every committed page also gets a VRAM tile.

Point 1, ray tracing: the builder runs here, then dies

Branch: #980 (live ray tracing + hot memory), with #814's switches. Details and logs are in the #980 thread.

  • Head 9156270 does not build with --features diagnostics. Two copystat counters were lost in the merge; restoring the two enum variants fixes it.
  • The builder starts: pipelines=53, 0 draws dropped. It runs at 0.57–0.66 fps (GPU 660–970 ms a frame).
  • With the default pagefile: E_OUTOFMEMORY on a 4 MB shared buffer at world +146 s, then an access violation in nvwgf2umx.dll under Host::submit.
  • With a 32 GB pagefile: it ends sooner, at world +95 s, with 9.6 GB of commit free:
    • shaders touch 1,609 title pages starting at 0x10000;
    • the 1,536 MB budget of title memory by address is reached;
    • then a list fails to close with E_OUTOFMEMORY.

This is the "null pointers from 0x10000" you saw. #994 traces those garbage pointers to dispatches by thread counts being run as group counts. It looks like the piece that would let the builder go further than ours did.

Also, on upstream

Upstream 940d32f loses the device about 14 s after launch on this card, before the menus. The debug layer names the cause: a texture in B5G5R5A1_UNORM with a typed UAV, and B4G4R4A4_UNORM as a render target, neither of which NVIDIA supports. That may be the 4-of-4 device loss on upstream in this thread. The fork's resource::target_format stand-in (8-bit RGBA) covers it, and several open upstream PRs do too (#89 is the same approach but no longer merges onto main).

Tooling

To drive these runs without a person at the keys, fork #1027 adds VICTORY_KEYS_LIVE=<file>: lines appended to the file are pressed in order, with or without focus. It got through first boot, the legal pages, the policy boxes and the profile screen into the world.

**@⁠Zayfway** on GitHub · 2026-11-25 16:50 UTC · [original](https://github.com/Marvisak/VIctory/issues/1820#issuecomment-7168602369) **A 12 GB NVIDIA card with 16 GB of RAM, on `fxceless/victory-fork`, answering points 2–4 of Update 2.** *AI-assisted (Claude Code). Every number is from runs on this machine; no title data in this post.* | | | |---|---| | GPU | RTX 3060 12 GB, driver 610.88 (32-lane) | | CPU / RAM | Ryzen 7 5700X / **16 GB** | | OS | Windows 11 26300 | | Profile | Series X, diag build, warm shader cache (`translate --warm all`: 25,707 translated, 278 do not) | Same scene in every run: the opening cutscene, measured from world +60 s to +240 s. ## Fork at `0b0074e`: lit, textured, about 2.2 fps The world is reached ~110 s after launch. The cutscene plays lit, with title cards and credits, and the characters are textured. **On a 12 GB card, no `VICTORY_TEXTURE_BUDGET_MB` is needed:** with `VICTORY_LEVELS_ON_DEMAND=1` the card peaks at 9.7–10.1 GB of an 11.3 GB budget. Base set for every run below: `ASYNC_SUBMIT QUEUE2 TEXTURE_NO_WAIT COPY_PLAIN LEVELS_ON_DEMAND`. | run | fps mean (min–max) | ms/frame median | host copies of title memory | page reads/s | |---|---|---|---|---| | base, run 1 | 2.09 (0.6–5.0) | 666 | 4.95 GB | 2,471 | | base, run 2 | 2.27 (0.4–5.2) | 694 | 3.62 GB | 1,474 | | `+ VICTORY_WINDOW_KB=256 VICTORY_WINDOW_TAILS=1`, run 1 | 2.30 (0.6–5.3) | 568 | 2.66 GB | 1,692 | | `+ VICTORY_WINDOW_KB=256 VICTORY_WINDOW_TAILS=1`, run 2 | 2.15 (0.8–4.9) | 586 | 2.81 GB | 1,591 | | `+ VICTORY_INPLACE=1` | 2.14 (0.5–4.7) | 533 | 3.21 GB | 2,929 | | `+ VICTORY_CARD_BUFFERS_MB=3072` | 2.26 (0.6–3.4) | 387 | 4.03 GB | 2,798 | | fork defaults, cold pipeline cache | 1.4–1.6 | 600–720 | – | – | Six runs in the world: no crash, no device loss. Six runs is not enough to call the frame rate one way or the other. ## Point 4, memory on 16 GB: where the 22–25 GB go From `VirtualQuery` over the process, in the world: - **~14.9 GB mapped:** the title's physical pages. 6.2 GB of it is one block (the pool the title asks for at once); the rest is ~132,000 small views. - **~4.5 GB private, below 1 TiB:** the title's own heaps. - **~16.6 GB private, above it:** the layer and the driver. Of this, ~4 GB are host copies of title memory (custom L0 heaps), of which **2.6–4.0 GB are 4 MiB "windows" outside buffers**. What the switches do to that: - **`VICTORY_WINDOW_KB=256 VICTORY_WINDOW_TAILS=1`** (finer windows) cuts the windows from 2.6–4.0 GB to 1.7–1.8 GB. There is no visible picture change, and paging is roughly a third lower than run 1 of the base set. Frame rate does not change, and bytes copied per frame double (overlapping windows). That is real RAM saved, but no speed. - **`VICTORY_INPLACE=1`** places only 85 windows (400 MB). 1,680 are turned down because they lie in the physical page pool, which is a `SEC_RESERVE` section that the host will not open as a heap. The lazy `SEC_COMMIT` chunks in #814 / #980 are what lifts that. - **`VICTORY_CARD_BUFFERS_MB=3072`** changes nothing: only ~1 GB of buffers qualify. - **Paging is the floor here.** The submit thread copies ~160 MB a frame at ~1.5 GB/s, because faults dominate. Frames of 1–3.8 s line up with bursts of page reads, while the card is ~38 % busy. **For comparison, XCL** (`xcl-dev/xcl` #2057, same machine) reaches its menus at 30 fps. It then stops with `E_OUTOFMEMORY` at **32.3 GB private** (the commit limit then) while loading the world. Its title pages are private copies, and every committed page also gets a VRAM tile. ## Point 1, ray tracing: the builder runs here, then dies Branch: #980 (live ray tracing + hot memory), with #814's switches. Details and logs are in the #980 thread. - **Head `9156270` does not build with `--features diagnostics`.** Two `copystat` counters were lost in the merge; restoring the two enum variants fixes it. - **The builder starts:** `pipelines=53`, 0 draws dropped. It runs at 0.57–0.66 fps (GPU 660–970 ms a frame). - **With the default pagefile:** `E_OUTOFMEMORY` on a 4 MB shared buffer at world +146 s, then an access violation in `nvwgf2umx.dll` under `Host::submit`. - **With a 32 GB pagefile:** it ends sooner, at world +95 s, with 9.6 GB of commit free: - shaders touch 1,609 title pages starting at **0x10000**; - the 1,536 MB budget of title memory by address is reached; - then a list fails to close with `E_OUTOFMEMORY`. This is the "null pointers from 0x10000" you saw. #994 traces those garbage pointers to dispatches by thread counts being run as group counts. It looks like the piece that would let the builder go further than ours did. ## Also, on upstream Upstream `940d32f` loses the device about 14 s after launch on this card, before the menus. The debug layer names the cause: a texture in `B5G5R5A1_UNORM` with a typed UAV, and `B4G4R4A4_UNORM` as a render target, neither of which NVIDIA supports. That may be the 4-of-4 device loss on upstream in this thread. The fork's `resource::target_format` stand-in (8-bit RGBA) covers it, and several open upstream PRs do too (#89 is the same approach but no longer merges onto `main`). ## Tooling To drive these runs without a person at the keys, fork #1027 adds `VICTORY_KEYS_LIVE=<file>`: lines appended to the file are pressed in order, with or without focus. It got through first boot, the legal pages, the policy boxes and the profile screen into the world.
Author
Owner

@⁠Exopus-0x65f7ad0 on GitHub · 2026-11-25 17:23 UTC · original

@⁠Zayfway, thank you: this answers three of the four points better than I could from one machine.

  • 12 GB needs no texture cap. Good to know. On 8 GB, VICTORY_TEXTURE_BUDGET_MB stays a workaround for the "90 % of the DXGI budget" rule, not a fix. A better default would scale the reserve with card size instead of a flat 90 %.

  • The memory breakdown (14.9 GB of physical-page views, of which a 6.2 GB pool, plus 2.6-4.0 GB of 4 MiB windows) matches what I saw:

    • VICTORY_INPLACE=1 here also turned down about 1,040 windows for the SEC_RESERVE pool;
    • VICTORY_WINDOW_KB=256 with 8,191 copies let the RT builder run about 3 minutes at 0.1-0.2 fps before E_OUTOFMEMORY.

    I'll look at #814 / #980 for the SEC_COMMIT chunks.

  • #994 (garbage pointers from 0x10000, from thread counts run as group counts) looks like the real cause of the builder's runaway copies here too. I had bounded the copies to [4 GiB, 1 TiB) as a guard, which hid the symptom rather than fixing it. I'll test the builder with #994 on top.

  • #1027's VICTORY_KEYS_LIVE is exactly what I've been missing: I press Enter on the title screen by hand.

On the triage note (one PR per change, with a test): understood. The changes are on the fork, so not all of them apply to upstream main as is. I'll start with the self-contained ones:

  1. v_cvt_f32_f64: translator only, with a test that runs on the GPU and WARP.
  2. The loop-limit hit counter (see #1819).
  3. DirectStorage writes into physical pages reported to the GPU side, if upstream has the same path.

The fork-only switches (group split, the wave64 options, the texture budget) I'll offer to the fork instead.

🤖 Generated with Claude Code

**@⁠Exopus-0x65f7ad0** on GitHub · 2026-11-25 17:23 UTC · [original](https://github.com/Marvisak/VIctory/issues/1820#issuecomment-7169429675) @⁠Zayfway, thank you: this answers three of the four points better than I could from one machine. - **12 GB needs no texture cap.** Good to know. On 8 GB, `VICTORY_TEXTURE_BUDGET_MB` stays a workaround for the "90 % of the DXGI budget" rule, not a fix. A better default would scale the reserve with card size instead of a flat 90 %. - **The memory breakdown** (14.9 GB of physical-page views, of which a 6.2 GB pool, plus 2.6-4.0 GB of 4 MiB windows) matches what I saw: - `VICTORY_INPLACE=1` here also turned down about 1,040 windows for the `SEC_RESERVE` pool; - `VICTORY_WINDOW_KB=256` with 8,191 copies let the RT builder run about 3 minutes at 0.1-0.2 fps before `E_OUTOFMEMORY`. I'll look at #814 / #980 for the `SEC_COMMIT` chunks. - **#994** (garbage pointers from 0x10000, from thread counts run as group counts) looks like the real cause of the builder's runaway copies here too. I had bounded the copies to [4 GiB, 1 TiB) as a guard, which hid the symptom rather than fixing it. I'll test the builder with #994 on top. - #1027's `VICTORY_KEYS_LIVE` is exactly what I've been missing: I press Enter on the title screen by hand. On the triage note (one PR per change, with a test): understood. The changes are on the fork, so not all of them apply to upstream `main` as is. I'll start with the self-contained ones: 1. `v_cvt_f32_f64`: translator only, with a test that runs on the GPU and WARP. 2. The loop-limit hit counter (see #1819). 3. DirectStorage writes into physical pages reported to the GPU side, if upstream has the same path. The fork-only switches (group split, the wave64 options, the texture budget) I'll offer to the fork instead. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Author
Owner

@⁠Exopus-0x65f7ad0 on GitHub · 2026-11-25 19:43 UTC · original

Update, 25/11 evening: 3.6 → about 8.5 fps in the first gameplay room on an 8 GB card with 16 GB of RAM. Same machine as before (RTX 5060 Ti 8 GB, Ryzen 7 8700F, 16 GB RAM, Windows 11).

Base. fxceless/victory-fork main (d510ee4, the frame-rate series of 25/11), merged locally with these fork PRs: #911 (CBV cap 64 KiB), #1006 (code table after the instructions), #936 (WIDE_BACK use-after-free, by hand), #868 (VICTORY_SKIP_WC_BACK), #1014 (card hash by 64-thread groups), #1043, #1058, #1059, #1067 (#1059's alias guard adapted to #1067's block runs), #1007 (HEAP_WORKER), #188 (Series S second plane and upscale stretch), #917 (VICTORY_AMBIENT).

Settings. --console series-s, RELAY=2 WIDE_BACK=1 CARD_BUFFERS_MIN_MB=1 CARD_BUFFERS_MB=1536 TEXTURE_BUDGET_MB=4000 TEXTURE_STAGE_MB=2048 ASYNC_SUBMIT=1 QUEUE2=1 INDIRECT_WINDOW=1 INDIRECT_GATHER=1 COPY_PLAIN=1 TEXTURE_NO_WAIT=1 JOIN_PARTS=1 BACK_OWN_VIEW=1 CARD_REHASH_RUNS=1 SKIP_WC_BACK=1 BAKE_TEXTURES_MS=0 AMBIENT=0.6, loop limit 16384.

Numbers (median of the frame line while standing in the first room, ~4,500 draws/frame):

Run What changed Median fps
74 old base (2119b0e + our commits), Series X 3.6
80 fork main + our commits, Series X, the switches above 1.2-3.2 (the PC was paging: 23.6 GB private, ~12,000 pages/s)
82 + the PRs above, Series S 4.6
83-85 same, ~2.5 GB of unrelated processes closed 7.5-8.6 (stable 8.6 in runs 84-85)

What I learned from it:

  • On 16 GB of RAM the limit is paging, not the card. In run 82 the card was ~26 % busy and idle ~116 ms/frame behind the submit thread, whose copies ran at ~1 GB/s. Freeing 2.5 GB nearly doubled the frame rate. SKIP_WC_BACK (#868) took the copy-back from 63 to 5 MB/frame, and the Series S profile took the process from 23.6 to 19.2 GB private.
  • Where the 19 GB goes. I read the process's committed memory with VirtualQueryEx (read-only). About 16.4 GB of it is the layer's own private memory above 1 TiB, not the title's. That includes ~960 regions of 4 MiB (~4.3 GB, the windows of title memory outside buffers, shadow.rs WINDOW), 2 × 1 GiB and 61 × 32 MiB. The title's mappings are ~9.3 GB, plus ~2.9 GB of its private memory. Shrinking the 4 MiB windows (VICTORY_WINDOW_KB, VICTORY_WINDOW_TAILS) is my next test.
  • No-ops here. Fat LTO + codegen-units = 1 (Belobug #96): A/B on the same build and settings gave a median of 7.5 with and 8.6 without, i.e. no gain. VICTORY_AMBIENT=0.6 costs nothing measurable (8.6 with and without) and lights the cell's interior.
  • Ray tracing with #994 on 16 GB. The builder starts (53/53), runs at 0.2-0.6 fps, and dies after ~2 min (E_OUTOFMEMORY, then device removed; once an access violation in nvwgf2umx.dll). That is the same shared-memory-budget story Zayfway described on #994.
  • Still open. Frames drop to ~2 fps while walking (streaming remaps; next: fork #1069 REMAP_LEAN). Some surfaces are still black. The Series S loading screen needs a second Enter.

Loop limit: the counter promised on #1819 is #2733.

No game data in this comment (no captures, hashes, addresses or logs).

🤖 Generated with Claude Code

**@⁠Exopus-0x65f7ad0** on GitHub · 2026-11-25 19:43 UTC · [original](https://github.com/Marvisak/VIctory/issues/1820#issuecomment-7172677608) **Update, 25/11 evening: 3.6 → about 8.5 fps in the first gameplay room on an 8 GB card with 16 GB of RAM.** Same machine as before (RTX 5060 Ti 8 GB, Ryzen 7 8700F, 16 GB RAM, Windows 11). **Base.** `fxceless/victory-fork` `main` (`d510ee4`, the frame-rate series of 25/11), merged locally with these fork PRs: #911 (CBV cap 64 KiB), #1006 (code table after the instructions), #936 (WIDE_BACK use-after-free, by hand), #868 (`VICTORY_SKIP_WC_BACK`), #1014 (card hash by 64-thread groups), #1043, #1058, #1059, #1067 (#1059's alias guard adapted to #1067's block runs), #1007 (`HEAP_WORKER`), #188 (Series S second plane and upscale stretch), #917 (`VICTORY_AMBIENT`). **Settings.** `--console series-s`, `RELAY=2 WIDE_BACK=1 CARD_BUFFERS_MIN_MB=1 CARD_BUFFERS_MB=1536 TEXTURE_BUDGET_MB=4000 TEXTURE_STAGE_MB=2048 ASYNC_SUBMIT=1 QUEUE2=1 INDIRECT_WINDOW=1 INDIRECT_GATHER=1 COPY_PLAIN=1 TEXTURE_NO_WAIT=1 JOIN_PARTS=1 BACK_OWN_VIEW=1 CARD_REHASH_RUNS=1 SKIP_WC_BACK=1 BAKE_TEXTURES_MS=0 AMBIENT=0.6`, loop limit 16384. **Numbers (median of the frame line while standing in the first room, ~4,500 draws/frame):** | Run | What changed | Median fps | |---|---|---| | 74 | old base (`2119b0e` + our commits), Series X | 3.6 | | 80 | fork `main` + our commits, Series X, the switches above | 1.2-3.2 (the PC was paging: 23.6 GB private, ~12,000 pages/s) | | 82 | + the PRs above, Series S | 4.6 | | 83-85 | same, ~2.5 GB of unrelated processes closed | **7.5-8.6** (stable 8.6 in runs 84-85) | What I learned from it: - **On 16 GB of RAM the limit is paging, not the card.** In run 82 the card was ~26 % busy and idle ~116 ms/frame behind the submit thread, whose copies ran at ~1 GB/s. Freeing 2.5 GB nearly doubled the frame rate. `SKIP_WC_BACK` (#868) took the copy-back from 63 to 5 MB/frame, and the Series S profile took the process from 23.6 to 19.2 GB private. - **Where the 19 GB goes.** I read the process's committed memory with `VirtualQueryEx` (read-only). About 16.4 GB of it is the layer's own private memory above 1 TiB, not the title's. That includes ~960 regions of 4 MiB (~4.3 GB, the windows of title memory outside buffers, `shadow.rs` `WINDOW`), 2 × 1 GiB and 61 × 32 MiB. The title's mappings are ~9.3 GB, plus ~2.9 GB of its private memory. Shrinking the 4 MiB windows (`VICTORY_WINDOW_KB`, `VICTORY_WINDOW_TAILS`) is my next test. - **No-ops here.** Fat LTO + `codegen-units = 1` (Belobug #96): A/B on the same build and settings gave a median of 7.5 with and 8.6 without, i.e. no gain. `VICTORY_AMBIENT=0.6` costs nothing measurable (8.6 with and without) and lights the cell's interior. - **Ray tracing with #994 on 16 GB.** The builder starts (53/53), runs at 0.2-0.6 fps, and dies after ~2 min (`E_OUTOFMEMORY`, then device removed; once an access violation in `nvwgf2umx.dll`). That is the same shared-memory-budget story Zayfway described on #994. - **Still open.** Frames drop to ~2 fps while walking (streaming remaps; next: fork #1069 `REMAP_LEAN`). Some surfaces are still black. The Series S loading screen needs a second Enter. Loop limit: the counter promised on #1819 is #2733. No game data in this comment (no captures, hashes, addresses or logs). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Author
Owner

@⁠Zayfway on GitHub · 2026-11-25 21:09 UTC · original

@⁠Exopus-0x65f7ad0 your recipe reproduces on a second 16 GB machine, with a 12 GB card: 8.56 fps in the first gameplay scene (median 116 ms, min 7.4, max 9.9). AI-assisted (Claude Code). Numbers from runs on this machine; no title data in this post.

Machine: RTX 3060 12 GB (610.88), Ryzen 7 5700X, 16 GB RAM with a 32 GB pagefile, Windows 11 26300, about 12 GB of RAM available before launch.

Tree: fork main at 085ee7c (newer than your d510ee4) + your PR list (#911 #1006 #936 #868 #1014 #1043 #1058 #1059 #1067 #1007 #188 #917), plus #798 for the Series S world picture and #1027. Published as Zayfway/victory-fork@perf/exopus-recipe (3e760ed). On this newer main, four spots needed a hand:

  • #936: only the test module's use lines conflict.
  • #1067: main's alias guards still use the old set API, so contains(&b) became contains(b) and extend(a..b) became insert_range(a, b).
  • #188:
    • present() keeps main's timing wrapper (present_now) and takes #188's plane argument;
    • main's second call in queue.rs (the async present path) passes None;
    • lib.rs keeps both mod ambient and mod over.
  • #911's test calls note_buffer with three arguments; #1043 made it four (record_change).
  • cargo test -p victory-gpu --features diagnostics --lib: 217 passed, 0 failed, 6 ignored.

Settings: yours exactly (--console series-s, RELAY=2 WIDE_BACK=1 … SKIP_WC_BACK=1 BAKE_TEXTURES_MS=0 AMBIENT=0.6), except no TEXTURE_BUDGET_MB: on 12 GB I used LEVELS_ON_DEMAND=1 instead.

Same save, same spot (the window of the first scene), world +120 s to +360 s, warm caches:

tree / profile fps mean (min–max) ms median private max
main 465b94f, Series X, base switches 3.6–3.7 264–274 25.2 GB
main + #994 + #1002 + #798, Series S 4.15 241 20.6 GB
same + INDIRECT_WINDOW=1 4.2 (gameplay lines) 224 19.6 GB
your stack + #798, your switches 8.56 (7.4–9.9) 116 19.1 GB

The usual frame is now 122 ms:

  • the submit thread prepares for 64 ms (42 ms of copies, 64 MB);
  • it waits 40 ms for the card;
  • copy-back is 13 ms for 5 MB, down from 39–75 ms (SKIP_WC_BACK);
  • the card is idle 24 ms.

Paging dropped to about 90 page reads/s. AMBIENT=0.6 lights the cell, so walls and posters are readable instead of black.

One stability note: on this card, INDIRECT_WINDOW=1 together with WIDE_REFRESH=1 WIDE_MERGE=1 JOIN_COPIES=1 REFRESH_ONCE=1 VIEW_KNOWN=1 ASK_ONCE=1 lost the device (0x887A0004) after 7 minutes, after two driver entries. Your set, without those six, ran 2 × 7.5 minutes without one.

**@⁠Zayfway** on GitHub · 2026-11-25 21:09 UTC · [original](https://github.com/Marvisak/VIctory/issues/1820#issuecomment-7174694904) @⁠Exopus-0x65f7ad0 your recipe reproduces on a second 16 GB machine, with a 12 GB card: **8.56 fps in the first gameplay scene** (median 116 ms, min 7.4, max 9.9). *AI-assisted (Claude Code). Numbers from runs on this machine; no title data in this post.* **Machine:** RTX 3060 12 GB (610.88), Ryzen 7 5700X, 16 GB RAM with a 32 GB pagefile, Windows 11 26300, about 12 GB of RAM available before launch. **Tree:** fork `main` at `085ee7c` (newer than your `d510ee4`) + your PR list (#911 #1006 #936 #868 #1014 #1043 #1058 #1059 #1067 #1007 #188 #917), plus #798 for the Series S world picture and #1027. Published as [`Zayfway/victory-fork@perf/exopus-recipe`](https://github.com/Zayfway/victory-fork/tree/perf/exopus-recipe) (`3e760ed`). On this newer `main`, four spots needed a hand: - #936: only the test module's `use` lines conflict. - #1067: `main`'s alias guards still use the old set API, so `contains(&b)` became `contains(b)` and `extend(a..b)` became `insert_range(a, b)`. - #188: - `present()` keeps `main`'s timing wrapper (`present_now`) and takes #188's plane argument; - `main`'s second call in `queue.rs` (the async present path) passes `None`; - `lib.rs` keeps both `mod ambient` and `mod over`. - #911's test calls `note_buffer` with three arguments; #1043 made it four (`record_change`). - `cargo test -p victory-gpu --features diagnostics --lib`: 217 passed, 0 failed, 6 ignored. **Settings:** yours exactly (`--console series-s`, `RELAY=2 WIDE_BACK=1 … SKIP_WC_BACK=1 BAKE_TEXTURES_MS=0 AMBIENT=0.6`), except no `TEXTURE_BUDGET_MB`: on 12 GB I used `LEVELS_ON_DEMAND=1` instead. **Same save, same spot (the window of the first scene), world +120 s to +360 s, warm caches:** | tree / profile | fps mean (min–max) | ms median | private max | |---|---|---|---| | `main` `465b94f`, Series X, base switches | 3.6–3.7 | 264–274 | 25.2 GB | | `main` + #994 + #1002 + #798, Series S | 4.15 | 241 | 20.6 GB | | same + `INDIRECT_WINDOW=1` | 4.2 (gameplay lines) | 224 | 19.6 GB | | **your stack + #798, your switches** | **8.56 (7.4–9.9)** | **116** | 19.1 GB | The usual frame is now 122 ms: - the submit thread prepares for 64 ms (42 ms of copies, 64 MB); - it waits 40 ms for the card; - copy-back is 13 ms for 5 MB, down from 39–75 ms (`SKIP_WC_BACK`); - the card is idle 24 ms. Paging dropped to about 90 page reads/s. `AMBIENT=0.6` lights the cell, so walls and posters are readable instead of black. **One stability note:** on this card, `INDIRECT_WINDOW=1` together with `WIDE_REFRESH=1 WIDE_MERGE=1 JOIN_COPIES=1 REFRESH_ONCE=1 VIEW_KNOWN=1 ASK_ONCE=1` lost the device (`0x887A0004`) after 7 minutes, after two driver entries. Your set, without those six, ran 2 × 7.5 minutes without one.
Author
Owner

@⁠Venom2054 on GitHub · 2026-11-25 21:55 UTC · original

On an RTX 5070 Ti (621.01), i7-14700 and 32 GB RAM, I tested Zayfway’s 3e760ed with the Series S and RTX 3060 settings above (LEVELS_ON_DEMAND=1, AMBIENT=0.6, texture budget unset). I ran the title cold, then pretranslated the shaders with the same build and reused the caches.

Facing the first prison window from world +126 to +242 s, the host frame meter averaged 9.59 FPS across 22 readings (8.1–10.6). The guest present log gave 9.57 frames/s across 1,065 intervals, median 101 ms. I checked the viewpoint in the composed game window at both ends.

Across the full +120 to +360 s the host mean was 8.67 FPS (44 readings). The camera turned towards the bunks in the latter part. The lowest reading during that period was 0.8 FPS. Peak sampled process private memory over the full interval was 20.1 GB (decimal).

At the window I could see the mesh, guard tower, bunk rail, wall joints and the lit edge of the ponytail. Looking into the cell, the orange shirt and hair were visible, though much of the room was still dark and the shoulder outline had stepped edges. This run used the combined changes.

**@⁠Venom2054** on GitHub · 2026-11-25 21:55 UTC · [original](https://github.com/Marvisak/VIctory/issues/1820#issuecomment-7175715257) On an RTX 5070 Ti (621.01), i7-14700 and 32 GB RAM, I tested Zayfway’s `3e760ed` with the Series S and RTX 3060 settings above (`LEVELS_ON_DEMAND=1`, `AMBIENT=0.6`, texture budget unset). I ran the title cold, then pretranslated the shaders with the same build and reused the caches. Facing the first prison window from world +126 to +242 s, the host frame meter averaged **9.59 FPS** across 22 readings (8.1–10.6). The guest present log gave 9.57 frames/s across 1,065 intervals, median 101 ms. I checked the viewpoint in the composed game window at both ends. Across the full +120 to +360 s the host mean was **8.67 FPS** (44 readings). The camera turned towards the bunks in the latter part. The lowest reading during that period was 0.8 FPS. Peak sampled process private memory over the full interval was 20.1 GB (decimal). At the window I could see the mesh, guard tower, bunk rail, wall joints and the lit edge of the ponytail. Looking into the cell, the orange shirt and hair were visible, though much of the room was still dark and the shoulder outline had stepped edges. This run used the combined changes.
Author
Owner

@⁠Alm0stSurely on GitHub · 2026-11-26 05:41 UTC · original

RTX 5080 16 GB, NVIDIA 620.73.04, Linux / GE-Proton11-6. I compared the default texture-copy policy with VICTORY_TEXTURE_BUDGET_MB=3072 on the same ZTRX-derived diagnostics build with the table-size fix from #2143. One run per setting, same initial shader cache and menu inputs, VICTORY_TEXTURE_NO_WAIT=1. This fork uses a fixed 192 MiB per-frame staging allowance for indexed textures.

Default 3072 MiB
Peak sampled size of live host copies filled by the title 4,446 MiB 3,236 MiB
Indexed-texture passes that entered with no room 0 101
Free VRAM at 357.5 s 5,021 MiB 5,954 MiB

The default run hit my 5,120 MiB free-VRAM guard during the credits. With 3072, the first pass with no room was at 226.5 s. This run reached a partially drawn figure and horizon under the credits, then ended on a title breakpoint around 485 s with 6,060 MiB free. Neither run reached verified post-credits gameplay.

Two matching credit cards appeared 110 and 125 s earlier in the 3072 run, both before the setting first affected a pass. I would use this result as a memory comparison only. It does not establish a loading-time or frame-rate gain.

AI-assisted with OpenAI Codex (gpt-6.2-astra).

**@⁠Alm0stSurely** on GitHub · 2026-11-26 05:41 UTC · [original](https://github.com/Marvisak/VIctory/issues/1820#issuecomment-7183716950) RTX 5080 16 GB, NVIDIA 620.73.04, Linux / GE-Proton11-6. I compared the default texture-copy policy with `VICTORY_TEXTURE_BUDGET_MB=3072` on the same ZTRX-derived diagnostics build with the table-size fix from #2143. One run per setting, same initial shader cache and menu inputs, `VICTORY_TEXTURE_NO_WAIT=1`. This fork uses a fixed 192 MiB per-frame staging allowance for indexed textures. | | Default | 3072 MiB | |---|---:|---:| | Peak sampled size of live host copies filled by the title | 4,446 MiB | 3,236 MiB | | Indexed-texture passes that entered with no room | 0 | 101 | | Free VRAM at 357.5 s | 5,021 MiB | 5,954 MiB | The default run hit my 5,120 MiB free-VRAM guard during the credits. With 3072, the first pass with no room was at 226.5 s. This run reached a partially drawn figure and horizon under the credits, then ended on a title breakpoint around 485 s with 6,060 MiB free. Neither run reached verified post-credits gameplay. Two matching credit cards appeared 110 and 125 s earlier in the 3072 run, both before the setting first affected a pass. I would use this result as a memory comparison only. It does not establish a loading-time or frame-rate gain. AI-assisted with OpenAI Codex (gpt-6.2-astra).
Author
Owner

@⁠Alm0stSurely on GitHub · 2026-11-26 05:58 UTC · original · edited 2026-11-26 06:19 UTC

A pixel readback for the DirectStorage texture-update part of this report, on RTX 5080 / GE-Proton11-6. I used a ZTRX-derived build and a synthetic 4×4 RGBA8 texture. Two sequential file reads filled the same mapped page, first red, then blue. The placed texture and its SRV stayed the same. Each transfer completed and the CPU-side bytes matched before the GPU readbacks.

Treatment after the completed write First all-blue readback
Default in the tested fork 8th (all 16 texels still red on reads 1–7)
Notify the renderer of the updated texture range 1st

Both runs used the same test executable and matched the frame and periodic-check phase of the second write. All 16 texels stayed blue on the next two readbacks in both runs. The ordinary CPU-filled texture control also showed blue on its first readback.

This measures freshness of the host texture after explicit SRV preparation. The test knows the mapped range and does not test discovering every view of a page, sampling by bindless index, or the final picture in the game.

Follow-up on the same RTX 5080 / Proton setup. I ported VIctory's mapped-page write reporting onto the tested fork and removed the fixture's manual notification. Both file transfers triggered the runtime notification. The first GPU readback after the second transfer was blue across all 16 texels, as were the next two. There is an earlier Windows test with two shader-read views and an unaffected control.

In one title run with the production build, a character remained visible against the horizon for 6.08 s after the credits, with most of the ground black, before the title stopped. The prior run with the same settings ended during the credits. An earlier build had already shown a post-credits scene for 60.83 s. The opening credits span different camera shots, and shader cache keys depend on the executable. These runs do not establish a gameplay rendering or frame-rate gain.

AI-assisted with OpenAI Codex (gpt-6.2-astra).

**@⁠Alm0stSurely** on GitHub · 2026-11-26 05:58 UTC · [original](https://github.com/Marvisak/VIctory/issues/1820#issuecomment-7183973880) · edited 2026-11-26 06:19 UTC A pixel readback for the DirectStorage texture-update part of [this report](https://git.gtahub.st/github/Marvisak--VIctory/issues/1820), on RTX 5080 / GE-Proton11-6. I used a ZTRX-derived build and a synthetic 4×4 RGBA8 texture. Two sequential file reads filled the same mapped page, first red, then blue. The placed texture and its SRV stayed the same. Each transfer completed and the CPU-side bytes matched before the GPU readbacks. | Treatment after the completed write | First all-blue readback | |---|---:| | Default in the tested fork | 8th (all 16 texels still red on reads 1–7) | | Notify the renderer of the updated texture range | 1st | Both runs used the same test executable and matched the frame and periodic-check phase of the second write. All 16 texels stayed blue on the next two readbacks in both runs. The ordinary CPU-filled texture control also showed blue on its first readback. This measures freshness of the host texture after explicit SRV preparation. The test knows the mapped range and does not test discovering every view of a page, sampling by bindless index, or the final picture in the game. Follow-up on the same RTX 5080 / Proton setup. I ported VIctory's mapped-page write reporting onto the tested fork and removed the fixture's manual notification. Both file transfers triggered the runtime notification. The first GPU readback after the second transfer was blue across all 16 texels, as were the next two. There is an earlier [Windows test with two shader-read views and an unaffected control](https://github.com/fxceless/victory-fork/pull/571#issuecomment-7153508912). In one title run with the production build, a character remained visible against the horizon for 6.08 s after the credits, with most of the ground black, before the title stopped. The prior run with the same settings ended during the credits. An earlier build had already shown a post-credits scene for 60.83 s. The opening credits span different camera shots, and shader cache keys depend on the executable. These runs do not establish a gameplay rendering or frame-rate gain. AI-assisted with OpenAI Codex (gpt-6.2-astra).
Author
Owner

@⁠Zayfway on GitHub · 2026-11-26 14:31 UTC · original

@⁠Exopus-0x65f7ad0 here is a follow-up from the same 16 GB machine (RTX 3060 12 GB, Ryzen 7 5700X, Series S profile). Since your recipe I have found three things that matter on 16 GB PCs. Your 8 GB card is the next one I would like numbers from. AI-assisted (Claude Code). Numbers from runs on this machine; no title data in this post.

1. Card-buffer limits on ≤ 12 GB cards. The avatarmanz line, codec-d/cool_fox included, picks its limits from the VRAM budget. Up to 12 GiB that is 16 MiB minimum and 512 MiB in total, so nearly every title buffer copy stays in the PC's memory. On cool_fox f4b48ad with its own launcher settings:

Settings fps, opening cutscenes
launcher settings 2.0, then the title's int3 at world+300 s (a global pool of the title ran empty at that rate)
+ VICTORY_CARD_BUFFERS_MB=1536 (its launcher already sets CARD_BUFFERS_MIN_KB=64) 10.0
whole intro with that cap, plus your TEXTURE_STAGE_MB / ASYNC_SUBMIT 9.7 in the cutscenes, 11.7 in the prison, no crash; faces and hair right

On avatarmanz main the same change gives 2.5 → 7.0, and I measured that both the cap and the minimum are needed. That is avatarmanz/VIctory-7900XTX#225. On an 8 GB card 1536 MiB is probably too much: I would start at 768–1024.

2. The memory shared with the card. On 16 GB it is 7,488 MiB, and the first mission (check cashing) overflows it:

  • NVIDIA refuses upload buffers, then a list cannot close (E_OUTOFMEMORY) or the device hangs (0x887A0005).
  • Two fixes, both on avatarmanz:
    • #255: the idle list pool shrinks with that memory, and a refused upload is retried after letting go of what is kept.
    • #281: with CARD_WINDOWS_MB, a window's CPU side moves to plain memory (VICTORY_WINDOW_PLAIN=1).
  • With both, the intro peaks at 6,122 MiB instead of 7,690.
  • In the mission: 9.7 fps while aiming, 0 refused uploads, no hang. Before: 6 fps with tens of thousands of retries, or a hang.

3. The title's own crash at low frame rates. int3 at image+0x5149aec is a lock-free pool of the title with a 17-bit index: the head equal to 0x1fffe means it is empty. On this machine I saw it only on builds under about 3 fps (avatarmanz -Safe at 3.1, cool_fox at 2.0). It went away when the same build ran at 9–10.

If you try cool_fox (f4b48ad) with CARD_BUFFERS_MIN_KB=64 CARD_BUFFERS_MB=1024 and CARD_WINDOWS_MB=1024 (+ #281, WINDOW_PLAIN=1) on the 5060 Ti 8 GB, I would be glad to compare. The numbers that would tell most:

  • fps over world+0..150 s;
  • the peak of "the PC's shared with the card: … in use" from the memory line.

A question back: does your RAM recipe still hold on the newer fork main? I am now driving the first mission's tutorial, and the next problem there is input, not memory.

**@⁠Zayfway** on GitHub · 2026-11-26 14:31 UTC · [original](https://github.com/Marvisak/VIctory/issues/1820#issuecomment-7194951297) @⁠Exopus-0x65f7ad0 here is a follow-up from the same 16 GB machine (RTX 3060 12 GB, Ryzen 7 5700X, Series S profile). Since your recipe I have found three things that matter on 16 GB PCs. Your 8 GB card is the next one I would like numbers from. *AI-assisted (Claude Code). Numbers from runs on this machine; no title data in this post.* **1. Card-buffer limits on ≤ 12 GB cards.** The avatarmanz line, codec-d/cool_fox included, picks its limits from the VRAM budget. Up to 12 GiB that is 16 MiB minimum and 512 MiB in total, so nearly every title buffer copy stays in the PC's memory. On cool_fox f4b48ad with its own launcher settings: | Settings | fps, opening cutscenes | |---|---| | launcher settings | 2.0, then the title's `int3` at world+300 s (a global pool of the title ran empty at that rate) | | + `VICTORY_CARD_BUFFERS_MB=1536` (its launcher already sets `CARD_BUFFERS_MIN_KB=64`) | 10.0 | | whole intro with that cap, plus your `TEXTURE_STAGE_MB` / `ASYNC_SUBMIT` | 9.7 in the cutscenes, 11.7 in the prison, no crash; faces and hair right | On avatarmanz main the same change gives 2.5 → 7.0, and I measured that both the cap and the minimum are needed. That is avatarmanz/VIctory-7900XTX#225. On an 8 GB card 1536 MiB is probably too much: I would start at 768–1024. **2. The memory shared with the card.** On 16 GB it is 7,488 MiB, and the first mission (check cashing) overflows it: - NVIDIA refuses upload buffers, then a list cannot close (`E_OUTOFMEMORY`) or the device hangs (0x887A0005). - Two fixes, both on avatarmanz: - #255: the idle list pool shrinks with that memory, and a refused upload is retried after letting go of what is kept. - #281: with `CARD_WINDOWS_MB`, a window's CPU side moves to plain memory (`VICTORY_WINDOW_PLAIN=1`). - With both, the intro peaks at 6,122 MiB instead of 7,690. - In the mission: 9.7 fps while aiming, 0 refused uploads, no hang. Before: 6 fps with tens of thousands of retries, or a hang. **3. The title's own crash at low frame rates.** `int3` at image+0x5149aec is a lock-free pool of the title with a 17-bit index: the head equal to 0x1fffe means it is empty. On this machine I saw it only on builds under about 3 fps (avatarmanz -Safe at 3.1, cool_fox at 2.0). It went away when the same build ran at 9–10. If you try cool_fox (f4b48ad) with `CARD_BUFFERS_MIN_KB=64 CARD_BUFFERS_MB=1024` and `CARD_WINDOWS_MB=1024` (+ #281, `WINDOW_PLAIN=1`) on the 5060 Ti 8 GB, I would be glad to compare. The numbers that would tell most: - fps over world+0..150 s; - the peak of "the PC's shared with the card: … in use" from the memory line. A question back: does your RAM recipe still hold on the newer fork main? I am now driving the first mission's tutorial, and the next problem there is input, not memory.
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#1820
No description provided.