Proton/vkd3d-proton (RADV, 7900 XTX): RELAY=2 and CARD_STEPS>0 hand back wrong skinned meshes; what runs here instead #13

Open
opened 2026-11-26 03:31:17 +00:00 by github-bot · 15 comments
Owner

@⁠firefloc on GitHub · 2026-11-25 23:26 UTC · original

Report from a Linux box: the fork runs, and it is 10-30x faster than the tree we were using, but two of the new switches hand back wrong data on vkd3d-proton. Everything below is measured, one switch at a time, on one machine.

Where this ran

  • CachyOS (Linux, kernel 7.3.6), Ryzen 7 7800X3D (8 cores / 16 threads), 30 GB RAM, Radeon RX 7900 XTX (RADV 26.3.1, Mesa 26.3), Proton Experimental and its vkd3d-proton, 3840x2160 swapchain, Series X profile.
  • Built at 0a43566 on Linux, no MSVC needed (about 4 minutes cold, cargo reporting 39 s of compiling, links with lld-link):
    cargo xwin build --locked --profile diag -p victory --target x86_64-pc-windows-msvc --features diagnostics
  • Launched with the environment scripts/play.ps1 sets, translated to a shell script, in a prefix holding Microsoft's d3dcompiler_47.dll from winetricks — without it the picture is black, exactly as upstream needs on Windows.

So: not Windows, not your driver, less RAM than you recommend, and the fork still beats what we had by an order of magnitude.

What breaks the picture, and it is two separate things

settings picture frame
play.ps1 defaults (VICTORY_RELAY=2, VICTORY_CARD_STEPS=2) menu fine, then no face at all: every character is a cloud of vertices 353.7 ms at 4,045 draws
-Safe (no THIN / JOIN_PARTS / UPLOAD_AHEAD) unchanged — the fault is older than those three 477.9 ms at 1,344 draws
VICTORY_RELAY=1 (stage 1) secondary characters' faces come back, the main characters are still clouds 560.9 ms at 3,570 draws
VICTORY_RELAY=1 VICTORY_CARD_STEPS=2 device removed while loading (below) —
VICTORY_RELAY=1 VICTORY_CARD_STEPS=0 geometry correct, faces present but not animated, skin shading flat median 208 ms over 347 samples (p10 94, p90 1,073; 1,012-21,497 draws), 143.9 ms in the 4,000-6,000 draws band, no crash in 14 minutes

1. VICTORY_RELAY=2 reads what shaders wrote too early

host.rs says stage 2 lets a submission that reads title memory a flight's shaders may write wait only until the flights that declared it are done, and at 1 it waits for everything. On vkd3d-proton, stage 2 is not enough: skinned meshes come back as garbage — no face at all — while stage 1 draws the same characters correctly. Your own note says the walls of the first room were drawn in every run with 2 and in fewer than half without it; on this stack 2 behaves like "without it".

2. VICTORY_CARD_STEPS above 0 breaks skinned meshes, and 2 removes the device

With RELAY=1 and CARD_STEPS=2 the device was removed during a load, after a submission of one list:

VIctory: host GPU failure: host GPU device removed after a submission of 1 lists;
device removed: 0x887A0005; a diagnostics build with VICTORY_D3D12_DEBUG=1 names the command
  #0  victory-image-b99f876b74d4a77f.dll+0x23cf683

(+0x23cf683 is also where runs of the unpatched title die in our other tree, so it is the title's own failure path, not yours.)

With CARD_STEPS=0, no crash in 14 minutes and geometry correct. We have not measured what turning it off costs here; your findings put card steps at 7 ms of a 48 ms preparing thread.

3. A soft lock in the second section

Past the prison, the section asked for a weapon that never appeared in the character's hand while the scene loaded, so it cannot be progressed. Same family as the two above: something written on the card and read back by the title never arrived.

4. Faces are not animated

Faces draw, but there is no facial or lip animation, and skin shading is flat (glossy or matte, never both). We did not isolate which switch removes it.

vkd3d-proton warnings in every run (the Windows driver would not print these)

d3d12_resource_validate_texture_alignment: Invalid resource alignment 0x1000 (required 0x10000)
vkd3d_get_image_allocation_info: Requested alignment 65536 < 131072 (dim 3, 512x512x3, 1 levels, 1 samples, fmt #35, flags #2)
d3d12_pipeline_state_QueryInterface: {696442be-a72e-4059-bc79-5b5c98040fad} not implemented, returning E_NOINTERFACE   (thousands per second during loads)
d3d12_command_list_invalidate_descriptor_heap: Invalidating descriptor heap due to meta command which is incompatible with heaps

The QueryInterface one fires thousands of times a second while loading; if a code path is chosen on its result, that is worth knowing.

Why it seems worth your time

Same box, same prefix, same scenes: the tree we ran before this (fxceless base plus a handful of Proton fixes, all in launcher scripts and one DXC fallback) gives 3,132-14,996 ms a frame at 5,385-5,695 draws. This fork gives 143.9-208 ms at the same draw counts, on the wrong driver, with 8 cores and 30 GB instead of 24 threads and 64 GB. That is 10-30x.

Your 46-65 ms is still 2-3x away from us and part of that is the machine; it would be good to know how much is the driver.

The switches that make it run here

VICTORY_RELAY=1          # stage 2 loses shader-written data on vkd3d-proton
VICTORY_CARD_STEPS=0     # >0 corrupts skinned meshes; 2 removes the device
# everything else as scripts/play.ps1 sets it

Prefix needs Microsoft's d3dcompiler_47.dll (winetricks d3dcompiler_47) or the cinematic is black; VKD3D_CONFIG=descriptor_heap; and WINEDLLOVERRIDES="d3d12,d3d12core,dxgi=n" plus Proton's own wine (rather than proton run) to see VICTORY_LOG lines, because proton run swallows the child's output.

Happy to re-measure anything you want isolated: CARD_STEPS=1, the cost of RELAY=1, or which switch costs the facial animation. Every run here is one switch and four minutes.

**@⁠firefloc** on GitHub · 2026-11-25 23:26 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/issues/13) Report from a Linux box: the fork runs, and it is 10-30x faster than the tree we were using, but two of the new switches hand back wrong data on vkd3d-proton. Everything below is measured, one switch at a time, on one machine. ## Where this ran - CachyOS (Linux, kernel 7.3.6), Ryzen 7 7800X3D (8 cores / 16 threads), **30 GB RAM**, Radeon RX 7900 XTX (RADV 26.3.1, Mesa 26.3), **Proton Experimental** and its vkd3d-proton, 3840x2160 swapchain, Series X profile. - Built at `0a43566` on Linux, no MSVC needed (about 4 minutes cold, `cargo` reporting 39 s of compiling, links with `lld-link`): `cargo xwin build --locked --profile diag -p victory --target x86_64-pc-windows-msvc --features diagnostics` - Launched with the environment `scripts/play.ps1` sets, translated to a shell script, in a prefix holding Microsoft's `d3dcompiler_47.dll` from `winetricks` — without it the picture is black, exactly as upstream needs on Windows. So: not Windows, not your driver, less RAM than you recommend, and the fork still beats what we had by an order of magnitude. ## What breaks the picture, and it is two separate things | settings | picture | frame | |---|---|---| | `play.ps1` defaults (`VICTORY_RELAY=2`, `VICTORY_CARD_STEPS=2`) | menu fine, then **no face at all**: every character is a cloud of vertices | 353.7 ms at 4,045 draws | | `-Safe` (no `THIN` / `JOIN_PARTS` / `UPLOAD_AHEAD`) | unchanged — the fault is older than those three | 477.9 ms at 1,344 draws | | `VICTORY_RELAY=1` (stage 1) | **secondary characters' faces come back**, the main characters are still clouds | 560.9 ms at 3,570 draws | | `VICTORY_RELAY=1 VICTORY_CARD_STEPS=2` | device removed while loading (below) | — | | `VICTORY_RELAY=1 VICTORY_CARD_STEPS=0` | **geometry correct**, faces present but not animated, skin shading flat | median 208 ms over 347 samples (p10 94, p90 1,073; 1,012-21,497 draws), **143.9 ms in the 4,000-6,000 draws band**, no crash in 14 minutes | ### 1. `VICTORY_RELAY=2` reads what shaders wrote too early `host.rs` says stage 2 lets a submission that reads title memory a flight's shaders may write wait only until the flights that *declared* it are done, and at `1` it waits for everything. On vkd3d-proton, stage 2 is not enough: skinned meshes come back as garbage — no face at all — while stage 1 draws the same characters correctly. Your own note says the walls of the first room were drawn in every run with `2` and in fewer than half without it; on this stack `2` behaves like "without it". ### 2. `VICTORY_CARD_STEPS` above 0 breaks skinned meshes, and 2 removes the device With `RELAY=1` and `CARD_STEPS=2` the device was removed during a load, after a submission of one list: ``` VIctory: host GPU failure: host GPU device removed after a submission of 1 lists; device removed: 0x887A0005; a diagnostics build with VICTORY_D3D12_DEBUG=1 names the command #0 victory-image-b99f876b74d4a77f.dll+0x23cf683 ``` (+0x23cf683 is also where runs of the unpatched title die in our other tree, so it is the title's own failure path, not yours.) With `CARD_STEPS=0`, no crash in 14 minutes and geometry correct. We have not measured what turning it off costs here; your findings put card steps at 7 ms of a 48 ms preparing thread. ### 3. A soft lock in the second section Past the prison, the section asked for a weapon that **never appeared in the character's hand** while the scene loaded, so it cannot be progressed. Same family as the two above: something written on the card and read back by the title never arrived. ### 4. Faces are not animated Faces draw, but there is no facial or lip animation, and skin shading is flat (glossy or matte, never both). We did not isolate which switch removes it. ## vkd3d-proton warnings in every run (the Windows driver would not print these) ``` d3d12_resource_validate_texture_alignment: Invalid resource alignment 0x1000 (required 0x10000) vkd3d_get_image_allocation_info: Requested alignment 65536 < 131072 (dim 3, 512x512x3, 1 levels, 1 samples, fmt #35, flags #2) d3d12_pipeline_state_QueryInterface: {696442be-a72e-4059-bc79-5b5c98040fad} not implemented, returning E_NOINTERFACE (thousands per second during loads) d3d12_command_list_invalidate_descriptor_heap: Invalidating descriptor heap due to meta command which is incompatible with heaps ``` The `QueryInterface` one fires thousands of times a second while loading; if a code path is chosen on its result, that is worth knowing. ## Why it seems worth your time Same box, same prefix, same scenes: the tree we ran before this (fxceless base plus a handful of Proton fixes, all in launcher scripts and one DXC fallback) gives **3,132-14,996 ms a frame** at 5,385-5,695 draws. This fork gives 143.9-208 ms at the same draw counts, on the wrong driver, with 8 cores and 30 GB instead of 24 threads and 64 GB. That is 10-30x. Your 46-65 ms is still 2-3x away from us and part of that is the machine; it would be good to know how much is the driver. ## The switches that make it run here ```sh VICTORY_RELAY=1 # stage 2 loses shader-written data on vkd3d-proton VICTORY_CARD_STEPS=0 # >0 corrupts skinned meshes; 2 removes the device # everything else as scripts/play.ps1 sets it ``` Prefix needs Microsoft's `d3dcompiler_47.dll` (`winetricks d3dcompiler_47`) or the cinematic is black; `VKD3D_CONFIG=descriptor_heap`; and `WINEDLLOVERRIDES="d3d12,d3d12core,dxgi=n"` plus Proton's own `wine` (rather than `proton run`) to see `VICTORY_LOG` lines, because `proton run` swallows the child's output. Happy to re-measure anything you want isolated: `CARD_STEPS=1`, the cost of `RELAY=1`, or which switch costs the facial animation. Every run here is one switch and four minutes.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:31:17 +00:00
Author
Owner

@⁠itsonewi on GitHub · 2026-11-25 23:43 UTC · original

This is the most useful report on the tracker and it has had no answer, so here is what the source says about the two switches, and three asks that follow from it.

VICTORY_RELAY=2 is only as sound as the write declarations

Stage 2 does not wait for everything; it waits for the flights whose shaders declared a write that meets the read. The declaration comes from the pipeline's own list of shader writes, which is also what card_steps::writers builds its Writers from (crates/victory-gpu/src/host/card_steps.rs:138-192). So the guarantee holds exactly when every write a shader makes is in that list. When a shader writes through a descriptor the runtime classifies as data rather than as a binding — this fork logs precisely that case for five shaders in #1 (a descriptor read only as data is not supported) and for the u4/u5 null-heap-slot reads in #11 — the write is missing from the declaration and stage 2 has nothing to wait for. Stage 1 waits for all flights, which is why it is correct on the same shaders on your stack.

That makes your table readable: RELAY=1 correct, RELAY=2 garbage, on a driver whose submissions the title waits on differently, is what an under-declared write looks like. If you want to test the hypothesis on your box, the two runs worth four minutes each are RELAY=2 with the five descriptor-as-data shaders dropped, versus RELAY=2 with everything else dropped instead; if the first is correct, the declaration is the bug and not vkd3d.

VICTORY_CARD_STEPS above 0

2 is the stage that copies on the card (crates/victory-gpu/src/host/card_steps.rs:258-262: a buffer copy (VICTORY_CARD_STEPS=2 does it on the card)), 1 only does constant-buffer fills. So CARD_STEPS=1 is the run that separates "fills on the card corrupt skinned meshes" from "copies on the card corrupt them", and it is the one you offered first — it would be the most informative of the four runs.

The device removal at 2 with RELAY=1 arriving during a load, on one submission of one list, is consistent with an invalid copy source state on a shared resource under vkd3d; if 1 is clean, the copy path is the one to look at, and the alignment warnings you pasted are in the same family (Requested alignment 65536 < 131072 for a 3D texture). Note the fork does query GetResourceAllocationInfo and retries with Alignment = 0 (crates/victory-gpu/src/pool.rs:470-475), so that warning is vkd3d asking for a 128 KiB alignment the D3D12 spec lets us treat as 64 KiB — it is a host difference, not a bad descriptor here.

Three asks

  1. CARD_STEPS=1 alone (with RELAY=1), and CARD_STEPS=0 with RELAY=2, so the two switches are separated in both directions.
  2. The cost of RELAY=1 on your box at the same draw counts: you already have 143.9 ms with RELAY=1 CARD_STEPS=0, and the difference to the default set is what the maintainer needs in order to decide whether stage 2 can stay the default.
  3. For the missing facial animation: search the log for DROPPED lines. The drops are counted by reason (crate::pipeline::note_why, printed by take_drops), so if the face is not animated because pipelines or dispatches are missing, the reason and the hash are already in your log and that is a one-line answer instead of a switch hunt.

The QueryInterface {696442be-a72e-4059-bc79-5b5c98040fad} line firing thousands of times per second during loads is worth its own report: something in the load path asks every object for an interface that does not exist, and if any branch is taken on that result it is a wrong path on every host, not only on vkd3d.

AI use

AI-assisted reply (source reading). No build, no hardware run, no game files.

**@⁠itsonewi** on GitHub · 2026-11-25 23:43 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/issues/13#issuecomment-7177950533) This is the most useful report on the tracker and it has had no answer, so here is what the source says about the two switches, and three asks that follow from it. ## `VICTORY_RELAY=2` is only as sound as the write declarations Stage 2 does not wait for everything; it waits for the flights whose shaders **declared** a write that meets the read. The declaration comes from the pipeline's own list of shader writes, which is also what `card_steps::writers` builds its `Writer`s from (`crates/victory-gpu/src/host/card_steps.rs:138-192`). So the guarantee holds exactly when every write a shader makes is in that list. When a shader writes through a descriptor the runtime classifies as data rather than as a binding — this fork logs precisely that case for five shaders in #1 (`a descriptor read only as data is not supported`) and for the `u4`/`u5` null-heap-slot reads in #11 — the write is missing from the declaration and stage 2 has nothing to wait for. Stage 1 waits for all flights, which is why it is correct on the same shaders on your stack. That makes your table readable: `RELAY=1` correct, `RELAY=2` garbage, on a driver whose submissions the title waits on differently, is what an under-declared write looks like. If you want to test the hypothesis on your box, the two runs worth four minutes each are `RELAY=2` with the five descriptor-as-data shaders dropped, versus `RELAY=2` with everything else dropped instead; if the first is correct, the declaration is the bug and not vkd3d. ## `VICTORY_CARD_STEPS` above 0 `2` is the stage that copies on the card (`crates/victory-gpu/src/host/card_steps.rs:258-262`: `a buffer copy (VICTORY_CARD_STEPS=2 does it on the card)`), `1` only does constant-buffer fills. So `CARD_STEPS=1` is the run that separates "fills on the card corrupt skinned meshes" from "copies on the card corrupt them", and it is the one you offered first — it would be the most informative of the four runs. The device removal at `2` with `RELAY=1` arriving during a load, on one submission of one list, is consistent with an invalid copy source state on a *shared* resource under vkd3d; if `1` is clean, the copy path is the one to look at, and the alignment warnings you pasted are in the same family (`Requested alignment 65536 < 131072` for a 3D texture). Note the fork does query `GetResourceAllocationInfo` and retries with `Alignment = 0` (`crates/victory-gpu/src/pool.rs:470-475`), so that warning is vkd3d asking for a 128 KiB alignment the D3D12 spec lets us treat as 64 KiB — it is a host difference, not a bad descriptor here. ## Three asks 1. `CARD_STEPS=1` alone (with `RELAY=1`), and `CARD_STEPS=0` with `RELAY=2`, so the two switches are separated in both directions. 2. The cost of `RELAY=1` on your box at the same draw counts: you already have 143.9 ms with `RELAY=1 CARD_STEPS=0`, and the difference to the default set is what the maintainer needs in order to decide whether stage 2 can stay the default. 3. For the missing facial animation: search the log for `DROPPED ` lines. The drops are counted by reason (`crate::pipeline::note_why`, printed by `take_drops`), so if the face is not animated because pipelines or dispatches are missing, the reason and the hash are already in your log and that is a one-line answer instead of a switch hunt. The `QueryInterface {696442be-a72e-4059-bc79-5b5c98040fad}` line firing thousands of times per second during loads is worth its own report: something in the load path asks every object for an interface that does not exist, and if any branch is taken on that result it is a wrong path on every host, not only on vkd3d. ## AI use AI-assisted reply (source reading). No build, no hardware run, no game files.
Author
Owner

@⁠UwUCammie on GitHub · 2026-11-25 23:47 UTC · original · edited 2026-11-26 00:02 UTC

The suggested VICTORY_RELAY=1 VICTORY_CARD_STEPS=0 settings also reached a visible first room on a 20 GB RX 7900 XT, Ryzen 7 9700X, RADV 26.3.1, Wine 11.22 and vkd3d-proton v3.1-83. The character, room and movement prompt were visible at 170 s. I measured 234 accepted presents in 73.15 s (3.20 FPS, 4,948 draws/frame), with no device loss during the 230-second run.

I used the Series X profile and 0a43566 with the accepted-present counter. In the preceding cold run with the Windows preset, the movement prompt was visible over black at 216 s. The second run had also warmed the cache. These two runs establish one working configuration here, but they don’t isolate either switch or verify facial animation. Benchmark source and both measurements

After precompiling shaders offline, a repeat with the same RADV settings accepted 236 presents in 74.14 s (3.18 FPS, 4,959 draws/frame). The first room was visible at 175 s and the session completed without device loss. The pooled rate for the two visible-room runs is 3.19 FPS.

**@⁠UwUCammie** on GitHub · 2026-11-25 23:47 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/issues/13#issuecomment-7178052371) · edited 2026-11-26 00:02 UTC The suggested `VICTORY_RELAY=1 VICTORY_CARD_STEPS=0` settings also reached a visible first room on a 20 GB RX 7900 XT, Ryzen 7 9700X, RADV 26.3.1, Wine 11.22 and vkd3d-proton v3.1-83. The character, room and movement prompt were visible at 170 s. I measured 234 accepted presents in 73.15 s (3.20 FPS, 4,948 draws/frame), with no device loss during the 230-second run. I used the Series X profile and `0a43566` with the [accepted-present counter](https://git.gtahub.st/github/avatarmanz--VIctory-7900XTX/pulls/17). In the preceding cold run with the Windows preset, the movement prompt was visible over black at 216 s. The second run had also warmed the cache. These two runs establish one working configuration here, but they don’t isolate either switch or verify facial animation. [Benchmark source and both measurements](https://github.com/UwUCammie/VIctory-7900XTX/tree/bench/avatar-first-room-radv/benchmarks#first-room) After precompiling shaders offline, a repeat with the same RADV settings accepted 236 presents in 74.14 s (3.18 FPS, 4,959 draws/frame). The first room was visible at 175 s and the session completed without device loss. The pooled rate for the two visible-room runs is 3.19 FPS.
Author
Owner

@⁠itsonewi on GitHub · 2026-11-26 00:09 UTC · original

This is the measurement the thread needed, and it has two numbers in it worth pulling apart.

What the numbers say. 234 accepted presents in 73.15 s is 3.20 fps, so 312 ms per frame with 4,948 draws in it: about 63 µs per draw. The warm repeat (236 presents, 74.14 s, 4,959 draws) is the same to within 1 %, so the shader cache is not the variable — whatever costs 312 ms is per-draw submission, not pipeline compilation. On vkd3d-proton that is the expected shape: each draw crosses the translation layer, and the cost scales with draw count rather than with shader complexity.

Why the pair is a good "does it work" setting and a bad "which switch did it" experiment — you say so yourself, but it is worth writing down for the next reader: VICTORY_RELAY=1 waits for every flight (correct on any write declaration), while CARD_STEPS=0 removes the stepped staging whose writer lists stage 2 consults. The two are self-consistent — one waits for all, the other has nothing to book-keep — so a run with both says the title can reach the first room when neither mechanism is asked to be clever. It cannot say which of the two the other configurations need.

The two single-variable runs that would settle it, both cheap given you already have the present-counter:

run settings what a pass means
A VICTORY_RELAY=1, CARD_STEPS at its default relay alone is safe; the failure lives in staging
B RELAY at its default, CARD_STEPS=0 staging alone is safe; the failure lives in relay

If A passes and B does not, the staging path is the suspect and #13's stage-2 write declarations are where to look. If both pass, the failure needs both switches changed at once and it is not either mechanism alone — which would be a much more interesting result than either.

The 4,948 draws/frame figure is also the first number in this tracker that explains the pacing complaints: at 63 µs a draw, no amount of shader warming reaches 30 fps, and the vsync-locked 30.0 fps reports people post are being reached only where the frame is mostly waits. Worth a line in the performance thread if you keep the counter.

(AI-assisted: arithmetic from your numbers; switch semantics from the source at 0a43566.)

**@⁠itsonewi** on GitHub · 2026-11-26 00:09 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/issues/13#issuecomment-7178458722) This is the measurement the thread needed, and it has two numbers in it worth pulling apart. **What the numbers say.** 234 accepted presents in 73.15 s is 3.20 fps, so 312 ms per frame with 4,948 draws in it: about **63 µs per draw**. The warm repeat (236 presents, 74.14 s, 4,959 draws) is the same to within 1 %, so the shader cache is not the variable — whatever costs 312 ms is per-draw submission, not pipeline compilation. On vkd3d-proton that is the expected shape: each draw crosses the translation layer, and the cost scales with draw count rather than with shader complexity. **Why the pair is a good "does it work" setting and a bad "which switch did it" experiment** — you say so yourself, but it is worth writing down for the next reader: `VICTORY_RELAY=1` waits for *every* flight (correct on any write declaration), while `CARD_STEPS=0` removes the stepped staging whose writer lists stage 2 consults. The two are self-consistent — one waits for all, the other has nothing to book-keep — so a run with both says the title can reach the first room when neither mechanism is asked to be clever. It cannot say which of the two the other configurations need. **The two single-variable runs that would settle it**, both cheap given you already have the present-counter: | run | settings | what a pass means | |---|---|---| | A | `VICTORY_RELAY=1`, `CARD_STEPS` at its default | relay alone is safe; the failure lives in staging | | B | `RELAY` at its default, `CARD_STEPS=0` | staging alone is safe; the failure lives in relay | If A passes and B does not, the staging path is the suspect and #13's stage-2 write declarations are where to look. If both pass, the failure needs *both* switches changed at once and it is not either mechanism alone — which would be a much more interesting result than either. The 4,948 draws/frame figure is also the first number in this tracker that explains the pacing complaints: at 63 µs a draw, no amount of shader warming reaches 30 fps, and the vsync-locked 30.0 fps reports people post are being reached only where the frame is mostly waits. Worth a line in the performance thread if you keep the counter. (AI-assisted: arithmetic from your numbers; switch semantics from the source at `0a43566`.)
Author
Owner

@⁠schmiticle on GitHub · 2026-11-26 01:23 UTC · original

Windows, RX 9070 XT: VICTORY_CARD_STEPS=2 alone is what breaks skinned meshes here; VICTORY_RELAY=2 is fine

Machine: RX 9070 XT 16 GB (RDNA 4), Adrenalin 26.11.2 (32.0.32029.2010), Ryzen 7 7800X3D, 32 GB, Windows 11 26300. 0a43566 + Marvisak/VIctory #317, diag build, Series X, scripts\play.ps1 settings otherwise. Native D3D12, no Wine or vkd3d.

The same place each time, the crowded room in the prison, people walking about:

VICTORY_RELAY VICTORY_CARD_STEPS VICTORY_RELAY_COPY people frame
2 2 (play.ps1) 1 black triangles flicker on and around them about 15 fps (66 ms)
0 0 0 clean 5-7 fps (145-195 ms)
2 0 1 clean 14.5-16 fps (63-69 ms)

So on this card and Windows, card steps alone hands back wrong skinned vertices, and turning them off costs next to nothing (in line with the 7 ms of a 48 ms preparing thread in docs/findings.md). Relay stage 2 drew the same characters correctly, unlike on vkd3d-proton above. One session each; I looked for the triangles in the same room in each.

If it helps the default: -Safe keeps VICTORY_CARD_STEPS=2 (as #25 notes), so it would not have helped here.

AI-assisted (Claude Code): measured on this machine with my own copy of the game. Names and counts only; no screenshots or game data.

**@⁠schmiticle** on GitHub · 2026-11-26 01:23 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/issues/13#issuecomment-7179723939) **Windows, RX 9070 XT: `VICTORY_CARD_STEPS=2` alone is what breaks skinned meshes here; `VICTORY_RELAY=2` is fine** **Machine:** RX 9070 XT 16 GB (RDNA 4), Adrenalin 26.11.2 (32.0.32029.2010), Ryzen 7 7800X3D, 32 GB, Windows 11 26300. `0a43566` + Marvisak/VIctory #317, diag build, Series X, `scripts\play.ps1` settings otherwise. Native D3D12, no Wine or vkd3d. The same place each time, the crowded room in the prison, people walking about: | `VICTORY_RELAY` | `VICTORY_CARD_STEPS` | `VICTORY_RELAY_COPY` | people | frame | |---|---|---|---|---| | 2 | 2 (play.ps1) | 1 | black triangles flicker on and around them | about 15 fps (66 ms) | | 0 | 0 | 0 | clean | 5-7 fps (145-195 ms) | | **2** | **0** | 1 | **clean** | **14.5-16 fps (63-69 ms)** | So on this card and Windows, card steps alone hands back wrong skinned vertices, and turning them off costs next to nothing (in line with the 7 ms of a 48 ms preparing thread in `docs/findings.md`). Relay stage 2 drew the same characters correctly, unlike on vkd3d-proton above. One session each; I looked for the triangles in the same room in each. If it helps the default: `-Safe` keeps `VICTORY_CARD_STEPS=2` (as #25 notes), so it would not have helped here. _AI-assisted (Claude Code): measured on this machine with my own copy of the game. Names and counts only; no screenshots or game data._
Author
Owner

@⁠ThatZaliaSGuy on GitHub · 2026-11-26 01:57 UTC · original

Windows confirmation on an RX 7900 XTX (Adrenalin 26.11.2, 0a43566 diag): here it's VICTORY_CARD_STEPS alone. With the play.ps1 defaults (RELAY=2, CARD_STEPS=2), the main characters' faces are missing (only eyes, teeth and hair draw), while secondary characters such as the guard draw completely. VICTORY_CARD_STEPS=0 with RELAY=2 kept brings every face back (cutscene close-ups and crowd scenes), at about 15–16 fps in the opening cutscene. RELAY=1 plus CARD_STEPS=0 also has faces, but is slower.

**@⁠ThatZaliaSGuy** on GitHub · 2026-11-26 01:57 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/issues/13#issuecomment-7180322419) Windows confirmation on an RX 7900 XTX (Adrenalin 26.11.2, `0a43566` diag): here it's `VICTORY_CARD_STEPS` alone. With the `play.ps1` defaults (`RELAY=2`, `CARD_STEPS=2`), the main characters' faces are missing (only eyes, teeth and hair draw), while secondary characters such as the guard draw completely. `VICTORY_CARD_STEPS=0` with `RELAY=2` kept brings every face back (cutscene close-ups and crowd scenes), at about 15–16 fps in the opening cutscene. `RELAY=1` plus `CARD_STEPS=0` also has faces, but is slower.
Author
Owner

@⁠Deilach on GitHub · 2026-11-26 03:28 UTC · original

Linux numbers on an RX 9070 XT, one more symptom of the switches, and a setting that nearly tripled the frame rate here.

Setup. CachyOS, Wine 11.22 (system Wine, not Proton), vkd3d-proton master ec207194, Mesa/RADV
26.3.1, RX 9070 XT 16 GB, Ryzen 7 5800X3D, 31 GB RAM, Series X profile. 0a43566 built on Linux
with the diag profile and diagnostics, shaders translated ahead (victory shaders: 25,782 in
the cache, 203 not translated), native d3dcompiler_47. Launched with play.ps1's environment.

settings faces frames gameplay frame
play.ps1 defaults (RELAY=2, CARD_STEPS=2) Lucia's face missing frames jump backwards: earlier frames shown again, intermittently 200-380 ms (3-5 fps)
RELAY=1 CARD_STEPS=0 Lucia's face rendered; a few NPC faces still missing in order, no jumps 280-390 ms (~3 fps)

So on this card, the two switches cost correctness and gain no speed: both rows are about the
same once the world is up. I only tried them together, so I can't say which one causes the
backward jumps. Given the two Windows results above, CARD_STEPS is the likely
one for the faces. A frame that reads what a flight's shaders were still writing would show older
contents, and in motion that looks like time going backwards.

The frame line in the second configuration (gameplay, ~5,700 draws):

~280 ms/frame (60 preparing: copies 45 ms ~93 MB; 20-35 on the GPU; 16-19 copying back ~31 MB),
dropped ~315 without a host pipeline (6 being made) and 4-6 indirect

Two more observations from the same runs:

  • Memory: private memory peaked at 12.7 GB (5-minute run) and 16.2 GB (15-minute run,
    defaults), levelling off at ~15 GB after minute 10. That's far below the README's 40-46 GB. Wine
    only counts pages that are touched, so the Windows figure may include a lot of commit that's never
    used. 31 GB of RAM was enough.
  • "6 being made" stayed at 6 for the whole 15-minute session, and ~7 % of draws per frame were
    dropped without a host pipeline. I haven't looked into which pipelines those are yet; could they be
    the RDNA 4 compiler case from #60?

The biggest win on this card: VICTORY_PIPELINE_WAIT_MS=50. The six pipelines above never
finish ("host pipelines all made" is never logged), so the recording threads spend the whole
500 ms shared budget waiting on them in nearly every frame ("500.1 ms waiting for pipelines"). Same
save and route, minutes 4-8 of gameplay, with RELAY=1 CARD_STEPS=0 (and VICTORY_VRAM_KEEP=75,70, a local
threshold patch, in all three rows):

VICTORY_PIPELINE_WAIT_MS mean frame frames > 1 s heads
500 (default) 310-327 ms (~3.1 fps) 1-3 per 2 min present
0 129-134 ms 0-1 female heads missing (male ones drawn)
50 120-129 ms (~8 fps, stretches at 10) 0 present

RAM and VRAM didn't change (13.4 GB / 13.0 GB). With 0, the number of dropped draws per frame is the
same, yet the female heads never appear, so their first draw seems to matter (something drawn once
and reused?). A small budget keeps that and drops the rest of the stall. Maybe 50 would be a better
default, or the wait could skip pipelines that have already been waited on for a whole budget.

For comparison on the same PC and save: Marvisak/VIctory main at 63bcca4 runs this gameplay at
0.2-1.0 fps, so the fork is 3-5x faster here even with its defaults. (main only gets there with a local
dxil-spirv fix for a 64-bit image load; otherwise it aborts while loading under vkd3d-proton. I'll
report that upstream separately.)


This was AI-assisted: the tests, log analysis and write-up were done with Claude (Anthropic's Claude Code). I ran the game and checked what was on screen, and every number above comes from these runs' logs.

**@⁠Deilach** on GitHub · 2026-11-26 03:28 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/issues/13#issuecomment-7181743948) Linux numbers on an RX 9070 XT, one more symptom of the switches, and a setting that nearly tripled the frame rate here. **Setup.** CachyOS, Wine 11.22 (system Wine, not Proton), vkd3d-proton master `ec207194`, Mesa/RADV 26.3.1, **RX 9070 XT 16 GB**, Ryzen 7 5800X3D, **31 GB RAM**, Series X profile. `0a43566` built on Linux with the `diag` profile and `diagnostics`, shaders translated ahead (`victory shaders`: 25,782 in the cache, 203 not translated), native `d3dcompiler_47`. Launched with `play.ps1`'s environment. | settings | faces | frames | gameplay frame | |---|---|---|---| | `play.ps1` defaults (`RELAY=2`, `CARD_STEPS=2`) | Lucia's face missing | **frames jump backwards**: earlier frames shown again, intermittently | 200-380 ms (3-5 fps) | | `RELAY=1 CARD_STEPS=0` | Lucia's face rendered; a few NPC faces still missing | in order, no jumps | 280-390 ms (~3 fps) | So on this card, the two switches cost correctness and gain no speed: both rows are about the same once the world is up. I only tried them together, so I can't say which one causes the backward jumps. Given the two Windows results above, `CARD_STEPS` is the likely one for the faces. A frame that reads what a flight's shaders were still writing would show older contents, and in motion that looks like time going backwards. The frame line in the second configuration (gameplay, ~5,700 draws): ``` ~280 ms/frame (60 preparing: copies 45 ms ~93 MB; 20-35 on the GPU; 16-19 copying back ~31 MB), dropped ~315 without a host pipeline (6 being made) and 4-6 indirect ``` Two more observations from the same runs: - **Memory:** private memory peaked at **12.7 GB** (5-minute run) and **16.2 GB** (15-minute run, defaults), levelling off at ~15 GB after minute 10. That's far below the README's 40-46 GB. Wine only counts pages that are touched, so the Windows figure may include a lot of commit that's never used. 31 GB of RAM was enough. - **"6 being made"** stayed at 6 for the whole 15-minute session, and ~7 % of draws per frame were dropped without a host pipeline. I haven't looked into which pipelines those are yet; could they be the RDNA 4 compiler case from #60? **The biggest win on this card: `VICTORY_PIPELINE_WAIT_MS=50`.** The six pipelines above never finish ("host pipelines all made" is never logged), so the recording threads spend the whole 500 ms shared budget waiting on them in nearly every frame ("500.1 ms waiting for pipelines"). Same save and route, minutes 4-8 of gameplay, with `RELAY=1 CARD_STEPS=0` (and `VICTORY_VRAM_KEEP=75,70`, a local threshold patch, in all three rows): | `VICTORY_PIPELINE_WAIT_MS` | mean frame | frames > 1 s | heads | |---|---|---|---| | 500 (default) | 310-327 ms (~3.1 fps) | 1-3 per 2 min | present | | 0 | 129-134 ms | 0-1 | **female heads missing** (male ones drawn) | | 50 | **120-129 ms (~8 fps, stretches at 10)** | 0 | present | RAM and VRAM didn't change (13.4 GB / 13.0 GB). With 0, the number of dropped draws per frame is the same, yet the female heads never appear, so their first draw seems to matter (something drawn once and reused?). A small budget keeps that and drops the rest of the stall. Maybe 50 would be a better default, or the wait could skip pipelines that have already been waited on for a whole budget. For comparison on the same PC and save: Marvisak/VIctory `main` at `63bcca4` runs this gameplay at 0.2-1.0 fps, so the fork is 3-5x faster here even with its defaults. (`main` only gets there with a local dxil-spirv fix for a 64-bit image load; otherwise it aborts while loading under vkd3d-proton. I'll report that upstream separately.) --- *This was AI-assisted: the tests, log analysis and write-up were done with Claude (Anthropic's Claude Code). I ran the game and checked what was on screen, and every number above comes from these runs' logs.*
Author
Owner

@⁠bordersky on GitHub · 2026-11-26 05:17 UTC · original · edited 2026-11-26 06:57 UTC

Update (later): stage 2 does work under vkd3d-proton with VICTORY_FETCH_CHECK=1 — faces kept, ~66 ms a frame against ~82 with RELAY=1 CARD_STEPS=0; without it, torn fetches reach title memory. See #138.

Correction (later): the faces were not lost to a bad save but to loading a checkpoint at all; a clean checkpoint does it too, with the builder on or off. See #67. The rest of this comment stands.

Before blaming a switch for missing faces: clear the checkpoint save between runs. It changed a conclusion here.

On Linux (RX 7900 XT, Wine + vkd3d-proton master, RADV, b0cfe2b), a run with VICTORY_RELAY=2 lost the main characters' faces, as in this issue, and I had concluded that stage 2 was unusable on vkd3d-proton. That run came right after one that had been ended by closing the window, and runs ended abruptly (a closed window, an out-of-memory guard, a device removal) can leave the title's checkpoint save SARC0015 bad: loaded from it, the main characters have no faces (eyes, teeth and hair only), with any setting, builder on or off (#67).

With the checkpoint moved aside (<data>/7952987A/saves/<user>/<title>/SARC0015~…; the game starts again from the beginning, the Player save stays), VICTORY_RELAY=2 with VICTORY_CARD_STEPS=0 draws the faces correctly here, with the ray-tracing builder on too. So at least part of "RELAY=2 breaks skin on vkd3d-proton" may have been a bad save, as it was for me; it would be worth re-running the switch tables of this issue from a clean checkpoint.

What I do now for every A/B run:

  1. end runs from the game's menu when possible, not by closing the window or killing the process, and never while a checkpoint is being written;
  2. move SARC0015 aside (or restore a known-good copy) before each run of a comparison, so every run starts from the same, good state;
  3. keep a copy of the whole save folder from before each run (the launcher does it), to go back to a good checkpoint instead of the start.

VICTORY_CARD_STEPS=2 still needs its own clean run here; the Windows reports above already point at it on their own.

**@⁠bordersky** on GitHub · 2026-11-26 05:17 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/issues/13#issuecomment-7183351869) · edited 2026-11-26 06:57 UTC > **Update (later): stage 2 does work under vkd3d-proton with `VICTORY_FETCH_CHECK=1`** — faces kept, ~66 ms a frame against ~82 with `RELAY=1 CARD_STEPS=0`; without it, torn fetches reach title memory. See https://git.gtahub.st/github/avatarmanz--VIctory-7900XTX/issues/138. > **Correction (later):** the faces were not lost to a bad save but to **loading a checkpoint at all**; a clean checkpoint does it too, with the builder on or off. See https://git.gtahub.st/github/avatarmanz--VIctory-7900XTX/issues/67. The rest of this comment stands. **Before blaming a switch for missing faces: clear the checkpoint save between runs.** It changed a conclusion here. On Linux (RX 7900 XT, Wine + vkd3d-proton master, RADV, `b0cfe2b`), a run with `VICTORY_RELAY=2` lost the main characters' faces, as in this issue, and I had concluded that stage 2 was unusable on vkd3d-proton. That run came right after one that had been ended by closing the window, and runs ended abruptly (a closed window, an out-of-memory guard, a device removal) can leave the title's checkpoint save `SARC0015` bad: loaded from it, the main characters have no faces (eyes, teeth and hair only), with any setting, builder on or off (#67). With the checkpoint moved aside (`<data>/7952987A/saves/<user>/<title>/SARC0015~…`; the game starts again from the beginning, the `Player` save stays), **`VICTORY_RELAY=2` with `VICTORY_CARD_STEPS=0` draws the faces correctly here**, with the ray-tracing builder on too. So at least part of "RELAY=2 breaks skin on vkd3d-proton" may have been a bad save, as it was for me; it would be worth re-running the switch tables of this issue from a clean checkpoint. What I do now for every A/B run: 1. end runs from the game's menu when possible, not by closing the window or killing the process, and never while a checkpoint is being written; 2. move `SARC0015` aside (or restore a known-good copy) **before each run of a comparison**, so every run starts from the same, good state; 3. keep a copy of the whole save folder from before each run (the launcher does it), to go back to a good checkpoint instead of the start. `VICTORY_CARD_STEPS=2` still needs its own clean run here; the Windows reports above already point at it on their own.
Author
Owner

@⁠bordersky on GitHub · 2026-11-26 06:57 UTC · original

On Linux (RX 7900 XT, Wine + vkd3d-proton master, RADV) the faces lost with VICTORY_RELAY=2 come from fetches of card copies caught while a later flight was rewriting them (one or two pieces a frame). VICTORY_FETCH_CHECK=1 fixes it: with RELAY=2 CARD_STEPS=2 and the check, a new game keeps the main characters' faces at ~66 ms a frame, against ~82 ms with the RELAY=1 CARD_STEPS=0 workaround in the same build and scene. The fork's test a_result_caught_in_between_is_put_right fails 11-12 of 12 rounds under Wine without the check and passes with it. Details and the other opt-in tests under Wine: #138.

**@⁠bordersky** on GitHub · 2026-11-26 06:57 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/issues/13#issuecomment-7184944929) On Linux (RX 7900 XT, Wine + vkd3d-proton master, RADV) the faces lost with `VICTORY_RELAY=2` come from fetches of card copies caught while a later flight was rewriting them (one or two pieces a frame). **`VICTORY_FETCH_CHECK=1` fixes it**: with `RELAY=2 CARD_STEPS=2` and the check, a new game keeps the main characters' faces at ~66 ms a frame, against ~82 ms with the `RELAY=1 CARD_STEPS=0` workaround in the same build and scene. The fork's test `a_result_caught_in_between_is_put_right` fails 11-12 of 12 rounds under Wine without the check and passes with it. Details and the other opt-in tests under Wine: #138.
Author
Owner

@⁠Jrjy3 on GitHub · 2026-11-26 19:20 UTC · original · edited 2026-11-27 04:31 UTC

Correction (later the same day): stage 1 stretches the meshes too, only more slowly (it builds over a cutscene and with camera movement). Only CARD_STEPS=0 was clean. See #13

The CARD_STEPS=1 run asked for above: on Windows, stage 1 keeps the meshes right and is as fast as stage 2. Stage 2's copies on the card are what break skinned meshes.

Radeon AI PRO R9700 (RDNA 4, 32 GB), driver 32.0.32015.2008, Ryzen 9 9950X3D, Windows 11 26300, native D3D12. Release build of main c9c932c + #55 (with its faces fix) + Belobug 5d6bd84. scripts\play.ps1 settings otherwise, with renderer ports 1, 5, 6 and 7 and VICTORY_OUTPUT=2560x1440. Same idle spot on the water each time, two minutes each, measured once nothing was being compiled. Characters and the boat checked by eye (with stage 2, a vertex or two flies off and stretches the mesh):

VICTORY_RELAY VICTORY_CARD_STEPS Meshes Frame at the boat
2 2 (play.ps1) stretched 43.5 ms (23.0 fps)
2 1 right 43.4 ms (23.0 fps), about 30 fps in the indoor cutscene
2 0 right 52.8 ms (18.9 fps)
1 2 right 55.9 ms (17.9 fps)
  • The run with RELAY=1 doesn't test card steps. Card steps run only with the relay's second stage (card_steps.rs: "Only with the relay's second stage (relay_exact)"), so RELAY=1 with any CARD_STEPS value is in effect "both off". That row is slow because relay 2 is off, not because of the steps. A CARD_STEPS=1 test needs RELAY=2.
  • Stage 1 keeps all the speed here. It does the constant-buffer fills on the card, and that is about 9 ms a frame (52.8 → 43.4 ms). Stage 2's buffer copies add nothing measurable on this PC, and they are what breaks the meshes, which matches the comment above that copied bytes can miss a write the declarations don't name.

Suggestion: VICTORY_CARD_STEPS = '1' as scripts\play.ps1's default (and in -Safe, see #25) until stage 2's copies are sound. Every report run through play.ps1 would then show the meshes right at no measured cost. One PC, one scene, so a second machine's numbers on stage 1 would be worth having.

AI-assisted (Claude Code).

**@⁠Jrjy3** on GitHub · 2026-11-26 19:20 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/issues/13#issuecomment-7201484559) · edited 2026-11-27 04:31 UTC > **Correction (later the same day):** stage 1 stretches the meshes too, only more slowly (it builds over a cutscene and with camera movement). Only `CARD_STEPS=0` was clean. See https://git.gtahub.st/github/avatarmanz--VIctory-7900XTX/issues/13 **The `CARD_STEPS=1` run asked for above: on Windows, stage 1 keeps the meshes right and is as fast as stage 2. Stage 2's copies on the card are what break skinned meshes.** Radeon AI PRO R9700 (RDNA 4, 32 GB), driver 32.0.32015.2008, Ryzen 9 9950X3D, Windows 11 26300, native D3D12. Release build of main `c9c932c` + #55 (with its faces fix) + Belobug `5d6bd84`. `scripts\play.ps1` settings otherwise, with renderer ports 1, 5, 6 and 7 and `VICTORY_OUTPUT=2560x1440`. Same idle spot on the water each time, two minutes each, measured once nothing was being compiled. Characters and the boat checked by eye (with stage 2, a vertex or two flies off and stretches the mesh): | `VICTORY_RELAY` | `VICTORY_CARD_STEPS` | Meshes | Frame at the boat | |---|---|---|---| | 2 | 2 (`play.ps1`) | **stretched** | 43.5 ms (23.0 fps) | | 2 | **1** | right | **43.4 ms (23.0 fps)**, about 30 fps in the indoor cutscene | | 2 | 0 | right | 52.8 ms (18.9 fps) | | 1 | 2 | right | 55.9 ms (17.9 fps) | - **The run with `RELAY=1` doesn't test card steps.** Card steps run only with the relay's second stage (`card_steps.rs`: "Only with the relay's second stage (`relay_exact`)"), so `RELAY=1` with any `CARD_STEPS` value is in effect "both off". That row is slow because relay 2 is off, not because of the steps. A `CARD_STEPS=1` test needs `RELAY=2`. - **Stage 1 keeps all the speed here.** It does the constant-buffer fills on the card, and that is about 9 ms a frame (52.8 → 43.4 ms). Stage 2's buffer copies add nothing measurable on this PC, and they are what breaks the meshes, which matches the comment above that copied bytes can miss a write the declarations don't name. **Suggestion:** `VICTORY_CARD_STEPS = '1'` as `scripts\play.ps1`'s default (and in `-Safe`, see #25) until stage 2's copies are sound. Every report run through `play.ps1` would then show the meshes right at no measured cost. One PC, one scene, so a second machine's numbers on stage 1 would be worth having. AI-assisted (Claude Code).
Author
Owner

@⁠UwUCammie on GitHub · 2026-11-26 19:30 UTC · original

On the RX 7900 XT with RADV 26.3.1 I checked the actual card-step counters in the 32-minute session that produced my waterfront save. At RELAY=2 / CARD_STEPS=2, 1,790 of 1,850 intervals showed fills, but only three showed any buffer copies per frame. Those three were at about 34, 39 and 41 seconds after startup. A separate first boot also showed buffer copies around 93–103 seconds. A stationary sample late in a session could therefore miss the part that differs between stages 1 and 2 on this setup. I’ve queued a cold 720p run with just CARD_STEPS=1 changed. I haven’t tied those early copies to a particular mesh.

**@⁠UwUCammie** on GitHub · 2026-11-26 19:30 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/issues/13#issuecomment-7201664099) On the RX 7900 XT with RADV 26.3.1 I checked the actual card-step counters in the 32-minute session that produced my waterfront save. At RELAY=2 / CARD_STEPS=2, 1,790 of 1,850 intervals showed fills, but only three showed any buffer copies per frame. Those three were at about 34, 39 and 41 seconds after startup. A separate first boot also showed buffer copies around 93–103 seconds. A stationary sample late in a session could therefore miss the part that differs between stages 1 and 2 on this setup. I’ve queued a cold 720p run with just CARD_STEPS=1 changed. I haven’t tied those early copies to a particular mesh.
Author
Owner

@⁠UwUCammie on GitHub · 2026-11-26 20:22 UTC · original

I checked stage 1 on the 7900 XT / RADV 26.3.1 at 720p with the relay at 2. In the first 150 seconds, 20 of 45 reporting intervals had GPU fills and zero had GPU buffer copies. Stage 2 on the same stock binary showed copies in four intervals in one cold boot and three in the other.

Stage 1 still showed a blue-white washed-out street at 100 s and severe yellow glare at 115 s. By 130 s the diner and characters were visible. The dark stretched shape I saw in a separate stage-2 trial occurred in a different shot, so I can’t compare that mesh at the same pose or say anything about the boat. Another workload started at 186 s and I excluded this run from the FPS comparison. The lighting observations and counters above precede the interruption.

**@⁠UwUCammie** on GitHub · 2026-11-26 20:22 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/issues/13#issuecomment-7202600481) I checked stage 1 on the 7900 XT / RADV 26.3.1 at 720p with the relay at 2. In the first 150 seconds, 20 of 45 reporting intervals had GPU fills and zero had GPU buffer copies. Stage 2 on the same stock binary showed copies in four intervals in one cold boot and three in the other. Stage 1 still showed a blue-white washed-out street at 100 s and severe yellow glare at 115 s. By 130 s the diner and characters were visible. The dark stretched shape I saw in a separate stage-2 trial occurred in a different shot, so I can’t compare that mesh at the same pose or say anything about the boat. Another workload started at 186 s and I excluded this run from the FPS comparison. The lighting observations and counters above precede the interruption.
Author
Owner

@⁠UwUCammie on GitHub · 2026-11-26 20:37 UTC · original

The GPU-copy isolation run finished on the RX 7900 XT. With VICTORY_RELAY=2 and VICTORY_CARD_STEPS=1, it recorded GPU fills in 117 of 148 reporting intervals and GPU buffer copies in none. The two stage-2 controls recorded nonzero copy rates in 4 of 163 and 3 of 181 intervals.

The stage-1 captures at 70, 85 and 100 seconds were black. The world was visible at 115 seconds. Later it reached a lit interior while the controls were still showing credits. I couldn't match the suspected stretched geometry across those scenes. Turning off GPU buffer copies alone was insufficient to give a consistently visible opening here.

The full cold 300 seconds gave 2,480 presents (8.27 FPS), versus 3,298 (10.99) and 3,954 (13.18) for the stage-2 controls on the same executable. Loading and stalls are included. Eight interrupted attempts were excluded. Timing and settings

**@⁠UwUCammie** on GitHub · 2026-11-26 20:37 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/issues/13#issuecomment-7202894745) The GPU-copy isolation run finished on the RX 7900 XT. With `VICTORY_RELAY=2` and `VICTORY_CARD_STEPS=1`, it recorded GPU fills in 117 of 148 reporting intervals and GPU buffer copies in none. The two stage-2 controls recorded nonzero copy rates in 4 of 163 and 3 of 181 intervals. The stage-1 captures at 70, 85 and 100 seconds were black. The world was visible at 115 seconds. Later it reached a lit interior while the controls were still showing credits. I couldn't match the suspected stretched geometry across those scenes. Turning off GPU buffer copies alone was insufficient to give a consistently visible opening here. The full cold 300 seconds gave 2,480 presents (8.27 FPS), versus 3,298 (10.99) and 3,954 (13.18) for the stage-2 controls on the same executable. Loading and stalls are included. Eight interrupted attempts were excluded. [Timing and settings](https://github.com/UwUCammie/victory-amd/blob/b36fece6/benchmarks/README.md#card-fills-with-buffer-copies-handled-on-the-cpu)
Author
Owner

@⁠Jrjy3 on GitHub · 2026-11-27 04:31 UTC · original

Correction to my comment above: VICTORY_CARD_STEPS=1 does not keep the meshes right. It stretches them too, just more slowly. Only CARD_STEPS=0 was clean here.

Same PC (Radeon AI PRO R9700, Windows 11). Build: main 014d52d + #55, VICTORY_RELAY=2.

  • Stage 1, over a full cutscene: the stretching builds up. The boat cutscene starts almost clean. Then vertices fly off once or twice a second, more often the longer it plays, and much more often after the camera has moved up and down (orbiting on a flat plane does much less). It stays bad after the camera stops. I first tested stage 1 by idling at the boat for two minutes, which missed this.
  • Before today's port 1 ordering commits (2de9980), stage 1 does the same but less often.
  • CARD_STEPS=0, same cutscene and camera moves: no stretching at all. It costs about 9 ms a frame here (the 52.8 against 43.4 ms in the table above).

So the suggestion above is wrong. play.ps1's default should be CARD_STEPS=0 (relay 2 still on) until card steps are fixed. What stage 1 alone takes on the card is the constant-buffer fills in descriptor tables (Step::Fill). If I read card_steps.rs right, one of those sometimes reads a constant buffer before or beside a skinning pass's write that it doesn't account for. I'm looking into which one and will report back here.

AI-assisted (Claude Code).

**@⁠Jrjy3** on GitHub · 2026-11-27 04:31 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/issues/13#issuecomment-7209866014) **Correction to my comment above: `VICTORY_CARD_STEPS=1` does not keep the meshes right. It stretches them too, just more slowly. Only `CARD_STEPS=0` was clean here.** Same PC (Radeon AI PRO R9700, Windows 11). Build: main `014d52d` + #55, `VICTORY_RELAY=2`. - **Stage 1, over a full cutscene:** the stretching builds up. The boat cutscene starts almost clean. Then vertices fly off once or twice a second, more often the longer it plays, and much more often after the camera has moved up and down (orbiting on a flat plane does much less). It stays bad after the camera stops. I first tested stage 1 by idling at the boat for two minutes, which missed this. - **Before today's port 1 ordering commits** (`2de9980`), stage 1 does the same but less often. - **`CARD_STEPS=0`, same cutscene and camera moves:** no stretching at all. It costs about 9 ms a frame here (the 52.8 against 43.4 ms in the table above). So the suggestion above is wrong. `play.ps1`'s default should be `CARD_STEPS=0` (relay 2 still on) until card steps are fixed. What stage 1 alone takes on the card is the constant-buffer fills in descriptor tables (`Step::Fill`). If I read `card_steps.rs` right, one of those sometimes reads a constant buffer before or beside a skinning pass's write that it doesn't account for. I'm looking into which one and will report back here. AI-assisted (Claude Code).
Author
Owner

@⁠UwUCammie on GitHub · 2026-11-27 04:54 UTC · original

The earlier RX 7900 XT run here used stage 2 as its control, so it only isolated the buffer-copy part of stage 1. It didn't establish that stage 1 keeps the meshes right. I've queued stage 0 and stage 1 from the same saved route, with relay 2 and the same executable in both. I'll look for comparable views before comparing the deformation. The pictured eye and mouth issues are being tracked separately.

**@⁠UwUCammie** on GitHub · 2026-11-27 04:54 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/issues/13#issuecomment-7210185259) The earlier RX 7900 XT run here used stage 2 as its control, so it only isolated the buffer-copy part of stage 1. It didn't establish that stage 1 keeps the meshes right. I've queued stage 0 and stage 1 from the same saved route, with relay 2 and the same executable in both. I'll look for comparable views before comparing the deformation. The pictured eye and mouth issues are being tracked separately.
Author
Owner

@⁠Jrjy3 on GitHub · 2026-11-27 06:13 UTC · original

Follow-up to my correction above: the cause of the stretching with card steps is in #434. The title writes some constant buffers again after sending the submission that reads them, and a taken submission's fills (on the card and on the CPU) read them too early. With that change, CARD_STEPS=1 showed no stretching here, at the same frame time as without card steps.

AI-assisted (Claude Code).

**@⁠Jrjy3** on GitHub · 2026-11-27 06:13 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/issues/13#issuecomment-7211331372) Follow-up to my correction above: the cause of the stretching with card steps is in #434. The title writes some constant buffers again after sending the submission that reads them, and a taken submission's fills (on the card and on the CPU) read them too early. With that change, `CARD_STEPS=1` showed no stretching here, at the same frame time as without card steps. AI-assisted (Claude Code).
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/avatarmanz--VIctory-7900XTX#13
No description provided.