Linux under Wine: a launcher, 2.3 -> 36 frames a second on an RX 7900 GRE, people's faces #440

Open
github-bot wants to merge 26 commits from github-bot/gh-440 into main AGit
Owner

@⁠borntofrag34 on GitHub · 2026-11-27 08:03 UTC · original
borntofrag34:linux-wine-pr → main · +4269 −100 · 36 files · 26 commits · open

VIctory under Wine on Linux: from 2.3 to 36 frames a second in the title's first scene on an RX 7900 GRE (RADV, Proton Experimental's Wine, vkd3d-proton), ray tracing off. Everything that is Wine's alone is behind on_wine() or a switch documented where it is read; on Windows nothing changes unless a switch is set.

What was found, with the runs behind each figure, is in docs/linux-wine.md; the README gets a "Linux (Wine)" section.

The launcher

  • scripts/play.sh, the counterpart of play.ps1 (Proton's Wine, vkd3d-proton and DXVK's dxgi in a prefix of their own, Microsoft's d3dcompiler_47), VICTORY_FULLSCREEN, VICTORY_SCREEN for another monitor; scripts/play-1080p.sh, the fastest settings measured.

What made it slow under Wine

  • VICTORY_WINE_MAP: the title's physical pages shown with the host's mmap; Wine's server walked its list of views at every map and unmap (768 -> 13 ms of every second).
  • VICTORY_SINGLE_LATCH, VICTORY_PIPELINE_WATCH: loops with several back edges ran vkd3d-proton's dxil-spirv out of stack; one latch a loop, and a pipeline whose making ends its worker is given up (287 -> 47.9 ms a frame).
  • VICTORY_PORT_HOME: renderer patch 1 gave a black picture; amdgpu takes memory by address only as one anonymous mapping.
  • VICTORY_CLAMP_SYNC: the two waits around a clamp of indirect arguments as enhanced barriers that name what they wait for; under RADV each legacy one emptied the card (56.4 -> 34.0 ms with VICTORY_PORT_CONSTANTS_ORDER).
  • VICTORY_JOIN_PARTS_DRAWS: submissions joined only in frames of the world, so the intro videos stay in order.

People without a face (eyes and teeth only), in every second or third run

  • VICTORY_COMPUTE_WAIT_MS (10 s under Wine): the first use of a compute pass waits for its pipeline by a budget of its own. The table a character's face is deformed by is filled once on the card; that pass was dropped past the frame's half second while its pipeline was being made, and the face's vertices all lay in one point to the end of the run. 17 runs of 17 with heads since; 2 of 5 without, by turns, with it off.
  • VICTORY_LIBRARY_NULL: an empty pipeline library asked for with a null address. vkd3d-proton refuses a blob of no bytes at an address that is not null, so no library was ever kept under Wine and every run made the world's pipelines at its first frames.

Diagnostics

  • VICTORY_PROFILE/VICTORY_STACKS and the frame recorder work under Wine; victory replay --poke and raw views in --slots; VICTORY_BARRIER_GROUPS_LOG; a log line for each first use that goes without its pipeline.

Measured on one PC and in the title's first scene only; not looked at: play, other scenes, ray tracing, other cards and drivers.

🤖 Generated with Claude Code

**@⁠borntofrag34** on GitHub · 2026-11-27 08:03 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/pull/440) `borntofrag34:linux-wine-pr` → `main` · +4269 −100 · 36 files · 26 commits · open VIctory under Wine on Linux: from 2.3 to 36 frames a second in the title's first scene on an RX 7900 GRE (RADV, Proton Experimental's Wine, vkd3d-proton), ray tracing off. Everything that is Wine's alone is behind `on_wine()` or a switch documented where it is read; on Windows nothing changes unless a switch is set. What was found, with the runs behind each figure, is in `docs/linux-wine.md`; the README gets a "Linux (Wine)" section. **The launcher** - `scripts/play.sh`, the counterpart of `play.ps1` (Proton's Wine, vkd3d-proton and DXVK's dxgi in a prefix of their own, Microsoft's d3dcompiler_47), `VICTORY_FULLSCREEN`, `VICTORY_SCREEN` for another monitor; `scripts/play-1080p.sh`, the fastest settings measured. **What made it slow under Wine** - `VICTORY_WINE_MAP`: the title's physical pages shown with the host's `mmap`; Wine's server walked its list of views at every map and unmap (768 -> 13 ms of every second). - `VICTORY_SINGLE_LATCH`, `VICTORY_PIPELINE_WATCH`: loops with several back edges ran vkd3d-proton's dxil-spirv out of stack; one latch a loop, and a pipeline whose making ends its worker is given up (287 -> 47.9 ms a frame). - `VICTORY_PORT_HOME`: renderer patch 1 gave a black picture; amdgpu takes memory by address only as one anonymous mapping. - `VICTORY_CLAMP_SYNC`: the two waits around a clamp of indirect arguments as enhanced barriers that name what they wait for; under RADV each legacy one emptied the card (56.4 -> 34.0 ms with `VICTORY_PORT_CONSTANTS_ORDER`). - `VICTORY_JOIN_PARTS_DRAWS`: submissions joined only in frames of the world, so the intro videos stay in order. **People without a face (eyes and teeth only), in every second or third run** - `VICTORY_COMPUTE_WAIT_MS` (10 s under Wine): the first use of a compute pass waits for its pipeline by a budget of its own. The table a character's face is deformed by is filled once on the card; that pass was dropped past the frame's half second while its pipeline was being made, and the face's vertices all lay in one point to the end of the run. 17 runs of 17 with heads since; 2 of 5 without, by turns, with it off. - `VICTORY_LIBRARY_NULL`: an empty pipeline library asked for with a null address. vkd3d-proton refuses a blob of no bytes at an address that is not null, so no library was ever kept under Wine and every run made the world's pipelines at its first frames. **Diagnostics** - `VICTORY_PROFILE`/`VICTORY_STACKS` and the frame recorder work under Wine; `victory replay --poke` and raw views in `--slots`; `VICTORY_BARRIER_GROUPS_LOG`; a log line for each first use that goes without its pipeline. Measured on one PC and in the title's first scene only; not looked at: play, other scenes, ray tracing, other cards and drivers. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Fable 5.2 <[email protected]>
Co-Authored-By: Claude Fable 5.2 <[email protected]>
Co-Authored-By: Claude Fable 5.2 <[email protected]>
Co-Authored-By: Claude Fable 5.2 <[email protected]>
Co-Authored-By: Claude Fable 5.2 <[email protected]>
Co-Authored-By: Claude Fable 5.2 <[email protected]>
Co-Authored-By: Claude Fable 5.2 <[email protected]>
Co-Authored-By: Claude Fable 5.2 <[email protected]>
Co-Authored-By: Claude Fable 5.2 <[email protected]>
Co-Authored-By: Claude Fable 5.2 <[email protected]>
Co-Authored-By: Claude Fable 5.2 <[email protected]>
Co-Authored-By: Claude Fable 5.2 <[email protected]>
Co-Authored-By: Claude Fable 5.2 <[email protected]>
Co-Authored-By: Claude Fable 5.2 <[email protected]>
Co-Authored-By: Claude Fable 5.2 <[email protected]>
Co-Authored-By: Claude Fable 5.2 <[email protected]>
Co-Authored-By: Claude Fable 5.2 <[email protected]>
Co-Authored-By: Claude Fable 5.2 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 08:08:55 +00:00
Author
Owner

@⁠UwUCammie on GitHub · 2026-11-27 08:33 UTC · original

I tried the Wine profile from b2bf3d99 on an RX 7900 XT with RADV 26.3.1, Wine 11.22 and vkd3d-proton 71cae091. I used a 720p scene, the 4K interface plane and five empty cache directories. Adding Beqren’s release-build input patch got the scripted launch into the opening scene. The +85 s sample showed skin on the character facing the camera and a centered two-line subtitle.

The run yielded to another build at 99 s. Before that it logged 379 compute waits over 100 ms, with 29 reports where the pipeline still had no result. The longest was 10,000 ms. Multiple threads can report waits at the same time.

I’ve queued a 300 s cold run with the 10,000 ms setting and an otherwise identical 500 ms run. I’ll check how much of the startup stall they remove and whether the faces still render. Runtime source, test setup and counters

**@⁠UwUCammie** on GitHub · 2026-11-27 08:33 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/pull/440#issuecomment-7213673271) I tried the Wine profile from `b2bf3d99` on an RX 7900 XT with RADV 26.3.1, Wine 11.22 and vkd3d-proton `71cae091`. I used a 720p scene, the 4K interface plane and five empty cache directories. Adding Beqren’s release-build input patch got the scripted launch into the opening scene. The +85 s sample showed skin on the character facing the camera and a centered two-line subtitle. The run yielded to another build at 99 s. Before that it logged 379 compute waits over 100 ms, with 29 reports where the pipeline still had no result. The longest was 10,000 ms. Multiple threads can report waits at the same time. I’ve queued a 300 s cold run with the 10,000 ms setting and an otherwise identical 500 ms run. I’ll check how much of the startup stall they remove and whether the faces still render. [Runtime source](https://github.com/UwUCammie/VIctory-7900XTX/commit/86c904b1), [test setup and counters](https://github.com/UwUCammie/victory-amd/commit/a7f7520d)
Author
Owner

@⁠borntofrag34 on GitHub · 2026-11-27 08:34 UTC · original

One more measurement, left out of this pull request because it is another contributor's work: VICTORY_WC_NO_BACK=1 from Belobug/VIctory-Belobug-AMD#477 (icecreammule277-dot), what shaders write into title memory asked for as write-combined staying on the card.

Its seven commits pick onto this branch with one trivial conflict (lib.rs, an export line). Under Wine on the same PC (RX 7900 GRE, RADV), the title's first scene, scripts/play-1080p.sh's settings, 200 s read from second 100:

Tree Without With VICTORY_WC_NO_BACK=1
this branch (merged with main), by turns, two runs each 33.2 and 32.2 ms a frame 29.0 and 27.9 ms
the Linux branch without main's order of clamps, one run each 25.1 ms (39.8 fps) 22.6 ms (44.3 fps)

The submitting thread works about 5 ms a frame less with it. The frames of the world kept of the runs with it are whole pictures, faces too, and it looked right on the screen; no more than the first scene was looked at. The commits are on linux-wine of the fork, with their author kept, for whoever wants to try them.

🤖 Generated with Claude Code

**@⁠borntofrag34** on GitHub · 2026-11-27 08:34 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/pull/440#issuecomment-7213680361) One more measurement, left out of this pull request because it is another contributor's work: `VICTORY_WC_NO_BACK=1` from Belobug/VIctory-Belobug-AMD#477 (icecreammule277-dot), what shaders write into title memory asked for as write-combined staying on the card. Its seven commits pick onto this branch with one trivial conflict (`lib.rs`, an export line). Under Wine on the same PC (RX 7900 GRE, RADV), the title's first scene, `scripts/play-1080p.sh`'s settings, 200 s read from second 100: | Tree | Without | With `VICTORY_WC_NO_BACK=1` | |---|---|---| | this branch (merged with main), by turns, two runs each | 33.2 and 32.2 ms a frame | 29.0 and 27.9 ms | | the Linux branch without main's order of clamps, one run each | 25.1 ms (39.8 fps) | 22.6 ms (44.3 fps) | The submitting thread works about 5 ms a frame less with it. The frames of the world kept of the runs with it are whole pictures, faces too, and it looked right on the screen; no more than the first scene was looked at. The commits are on `linux-wine` of the fork, with their author kept, for whoever wants to try them. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Author
Owner

@⁠UwUCammie on GitHub · 2026-11-27 08:50 UTC · original

The full cold run finished on the RX 7900 XT. I got 6,579 accepted presents in the first 300 s from launch, or 21.93 FPS. Seconds 140–240 gave 2,006 presents, averaging 20.06 FPS. This was 1280×720 output, with five empty graphics caches, a new story and vkd3d-proton 71cae091.

The longest gap was 19.93 s. Thirteen compute waits returned without a pipeline result inside that gap. The opening shot at 85 s showed the man's face, and the driver's skin was missing in the car at 160 and 175 s. Her eyes and teeth drew. The 10,000 ms compute setting was active.

The next run changes only the compute wait to 500 ms. I’ve also staged the separate write-back off/on comparison from your follow-up. Timings and configuration, write-back test branch

**@⁠UwUCammie** on GitHub · 2026-11-27 08:50 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/pull/440#issuecomment-7213975062) The full cold run finished on the RX 7900 XT. I got 6,579 accepted presents in the first 300 s from launch, or **21.93 FPS**. Seconds 140–240 gave 2,006 presents, averaging **20.06 FPS**. This was 1280×720 output, with five empty graphics caches, a new story and vkd3d-proton `71cae091`. The longest gap was 19.93 s. Thirteen compute waits returned without a pipeline result inside that gap. The opening shot at 85 s showed the man's face, and the driver's skin was missing in the car at 160 and 175 s. Her eyes and teeth drew. The 10,000 ms compute setting was active. The next run changes only the compute wait to 500 ms. I’ve also staged the separate write-back off/on comparison from your follow-up. [Timings and configuration](https://github.com/UwUCammie/victory-amd/commit/907c75b1), [write-back test branch](https://github.com/UwUCammie/VIctory-7900XTX/commit/6416fd02)
Author
Owner

@⁠borntofrag34 on GitHub · 2026-11-27 09:00 UTC · original

@⁠UwUCammie you are right, and thank you for measuring it. Reproduced here with every cache empty (the layer's, vkd3d-proton's and Mesa's; RX 7900 GRE, RADV 26.3.1, one run each, 240 s):

VICTORY_COMPUTE_WAIT_MS compute waits over 0.1 s longest of 1 s or more ended without the pipeline from the world's first frame to a usual frame time
10000 (what this branch had) 528 10,000 ms 95 16 about 60 s, some 25 s of it in frames of 5 s
500 433 501 ms 0 244 about 35 s

The 17 runs with faces behind the 10 s default all had vkd3d-proton's cache: no compute wait passed a tenth of a second in any of them, so I never saw the cold case. What counted there was not the length of the wait but that compute passes no longer share the frame's budget (a thread that came while another waited found nothing left and dropped its pass at once) and that their pipelines are made first.

So the default is half a second now, as in #166 (1bf01b5 on this branch). Faces were there in both cold runs above, but that is one run of each: with half a second, 798 compute first uses were still dropped in the cold run, three of the face's programs among them, so a pass that runs once can still be lost in a first run with nothing cached. The second run has the pipeline library (kept under Wine since this branch) and drops 7 to 70 first uses instead of hundreds.

🤖 Generated with Claude Code

**@⁠borntofrag34** on GitHub · 2026-11-27 09:00 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/pull/440#issuecomment-7214168214) @⁠UwUCammie you are right, and thank you for measuring it. Reproduced here with every cache empty (the layer's, vkd3d-proton's and Mesa's; RX 7900 GRE, RADV 26.3.1, one run each, 240 s): | `VICTORY_COMPUTE_WAIT_MS` | compute waits over 0.1 s | longest | of 1 s or more | ended without the pipeline | from the world's first frame to a usual frame time | |---|---|---|---|---|---| | 10000 (what this branch had) | 528 | 10,000 ms | 95 | 16 | about 60 s, some 25 s of it in frames of 5 s | | 500 | 433 | 501 ms | 0 | 244 | about 35 s | The 17 runs with faces behind the 10 s default all had vkd3d-proton's cache: no compute wait passed a tenth of a second in any of them, so I never saw the cold case. What counted there was not the length of the wait but that compute passes no longer share the frame's budget (a thread that came while another waited found nothing left and dropped its pass at once) and that their pipelines are made first. So the default is half a second now, as in #166 (1bf01b5 on this branch). Faces were there in both cold runs above, but that is one run of each: with half a second, 798 compute first uses were still dropped in the cold run, three of the face's programs among them, so a pass that runs once can still be lost in a first run with nothing cached. The second run has the pipeline library (kept under Wine since this branch) and drops 7 to 70 first uses instead of hundreds. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Author
Owner

@⁠UwUCammie on GitHub · 2026-11-27 09:01 UTC · original

The 500 ms run reached the car this time. Both faces were missing skin in the front view around 175 s. The driver was also missing skin on the 10 s run, but the passenger’s face rendered there.

The shorter wait got 4,579 presents in the first 200 s versus 3,602, and the longest gap went from 19.93 to 10.93 s. Wait reports that ended without a pipeline result went from 36 to 310. The short run yielded to another build at 209.68 s.

I’m keeping the 10 s budget for the next test and changing only whether small compute pipelines can start at creation. A 1 KiB cutoff restored faces on an earlier build here. Results and test setup

**@⁠UwUCammie** on GitHub · 2026-11-27 09:01 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/pull/440#issuecomment-7214199341) The 500 ms run reached the car this time. Both faces were missing skin in the front view around 175 s. The driver was also missing skin on the 10 s run, but the passenger’s face rendered there. The shorter wait got 4,579 presents in the first 200 s versus 3,602, and the longest gap went from 19.93 to 10.93 s. Wait reports that ended without a pipeline result went from 36 to 310. The short run yielded to another build at 209.68 s. I’m keeping the 10 s budget for the next test and changing only whether small compute pipelines can start at creation. A 1 KiB cutoff restored faces on an earlier build here. [Results and test setup](https://github.com/UwUCammie/victory-amd/commit/11e9a682)
Author
Owner

@⁠UwUCammie on GitHub · 2026-11-27 09:13 UTC · original

Thanks for checking it with the vkd3d cache empty. Another 10 s run here had both faces in the same car view with early compilation disabled, so the cold skin failure varies between runs. I’m keeping the 10 s budget in the 0 vs 1 KiB early-compile comparison so it changes one setting.

I also picked up the draw-count pacing commit separately. I’ll check the opening cadence, since a successful present can repeat a video frame. Control and pacing notes

**@⁠UwUCammie** on GitHub · 2026-11-27 09:13 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/pull/440#issuecomment-7214432790) Thanks for checking it with the vkd3d cache empty. Another 10 s run here had both faces in the same car view with early compilation disabled, so the cold skin failure varies between runs. I’m keeping the 10 s budget in the 0 vs 1 KiB early-compile comparison so it changes one setting. I also picked up the draw-count pacing commit separately. I’ll check the opening cadence, since a successful present can repeat a video frame. [Control and pacing notes](https://github.com/UwUCammie/victory-amd/commit/787c0b2e)
Every range a card step records (VICTORY_CARD_STEPS) is checked against
its buffer's width and the staging buffer before CopyBufferRegion: a
range past a buffer's end is left out, with a warning (the first 16, then
at powers of two), instead of being recorded.

vkd3d-proton does not validate CopyBufferRegion. On RADV a copy past a
buffer is a write by the command processor to an address of no
allocation: a GPU page fault, and when the queue reset fails a reset of
the whole GPU, which takes the Wayland compositor with it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
(cherry picked from commit a803fd5142)
Author
Owner

@⁠UwUCammie on GitHub · 2026-11-27 09:30 UTC · original

The 2.5 KiB cutoff got the facial-deformation pipeline ready at 2.54 s here. Both faces rendered in the car view where a repeat with early compilation off lost the driver's skin. The first 220 s had 4,143 presents with the cutoff and 3,853 without it. The longest gap was still about 20 s.

The enabled run logged device removal at 261.92 s, 658 ms before the overlap marker. I’ve kept it out of the full cold results and updated the launcher to record those two events in order. I’m keeping the same cutoff for a 2 s wait trial. Test results and setup

**@⁠UwUCammie** on GitHub · 2026-11-27 09:30 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/pull/440#issuecomment-7214762564) The 2.5 KiB cutoff got the facial-deformation pipeline ready at 2.54 s here. Both faces rendered in the car view where a repeat with early compilation off lost the driver's skin. The first 220 s had 4,143 presents with the cutoff and 3,853 without it. The longest gap was still about 20 s. The enabled run logged device removal at 261.92 s, 658 ms before the overlap marker. I’ve kept it out of the full cold results and updated the launcher to record those two events in order. I’m keeping the same cutoff for a 2 s wait trial. [Test results and setup](https://github.com/UwUCammie/victory-amd/commit/a937345b)
Author
Owner

@⁠YaBulochka on GitHub · 2026-11-27 09:35 UTC · original

Tested linux-wine-pr (b62290c) on the smallest card I have, and your preset holds: 43 ms median (24.8 fps average, p10 30 ms = 33 fps) at 1280x720 on an 8 GB card.

Environment: RX 7600 XT 8 GB (RDNA3), Mesa 27.0.0-devel (RADV), Wine 11.22 (system, shared prefix), kernel 7.3.5, 30 GB RAM, Series S profile, 1280x720, built for x86_64-pc-windows-gnu.

Config median p10 p90 fps
branch, defaults, VICTORY_UPSCALER=6 54 ms 50 88 19.8
+ VICTORY_RENDER_SCALE=1.0 64 ms 53 77 18.8
+ your play-1080p.sh preset (CONSTANTS, DESCRIPTORS, CBV, FRAME_INTERVAL_MS=16.667 + DRAWS=500, CARD_BUFFERS_MIN_KB=64, JOIN_PARTS_DRAWS=500) 43 ms 30 56 24.8

300 s each, no device loss. VRAM 7,459 of 8,142 MiB in the last one, textures at 3 GB and card buffers at 2 GB.

What the 8 GB end runs into:

  1. The FSR4 path cannot run at 720p output. The title says FSR4 configuration mismatch: maxUpscaleSize must be 1920x1080; received 1280x720 and then dies with 0xc0000094 at +0x28f03e8 27 s in — the divide you describe in resolution.rs. VICTORY_UPSCALER=6 is what keeps 720p alive here.
  2. VICTORY_PORT_CONSTANTS=1 makes the title hit its own int3 (0x80000003) 4 s in, before the world, when it is on together with PORT_DESCRIPTORS/PORT_CBV (and GUARD/JOURNAL).
  3. VICTORY_PORT_GUARD=1 + VICTORY_PORT_JOURNAL=1 on top of that: 350-400 ms a frame (2.7 fps). Your preset without those two is what works; on 8 GB they are the wrong switches.
  4. VICTORY_RENDER_SCALE=1.0 costs almost nothing (53 vs 50 ms) and removes the 480p blur from the title's 2/3 scale.

Still wrong on this card: character meshes stretch now and then (less than on the Scarlett line I came from), and faces do not animate — static, but no longer collapsed to a single point, so that part of VICTORY_COMPUTE_WAIT_MS works here.

First configuration on this card that goes past 30 fps in the dips. Thank you.

**@⁠YaBulochka** on GitHub · 2026-11-27 09:35 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/pull/440#issuecomment-7214852210) Tested `linux-wine-pr` (`b62290c`) on the smallest card I have, and your preset holds: **43 ms median (24.8 fps average, p10 30 ms = 33 fps) at 1280x720 on an 8 GB card**. Environment: RX 7600 XT 8 GB (RDNA3), Mesa 27.0.0-devel (RADV), Wine 11.22 (system, shared prefix), kernel 7.3.5, 30 GB RAM, Series S profile, 1280x720, built for `x86_64-pc-windows-gnu`. | Config | median | p10 | p90 | fps | |---|---|---|---|---| | branch, defaults, `VICTORY_UPSCALER=6` | 54 ms | 50 | 88 | 19.8 | | + `VICTORY_RENDER_SCALE=1.0` | 64 ms | 53 | 77 | 18.8 | | + your `play-1080p.sh` preset (CONSTANTS, DESCRIPTORS, CBV, FRAME_INTERVAL_MS=16.667 + DRAWS=500, CARD_BUFFERS_MIN_KB=64, JOIN_PARTS_DRAWS=500) | **43 ms** | **30** | **56** | **24.8** | 300 s each, no device loss. VRAM 7,459 of 8,142 MiB in the last one, textures at 3 GB and card buffers at 2 GB. What the 8 GB end runs into: 1. **The FSR4 path cannot run at 720p output.** The title says `FSR4 configuration mismatch: maxUpscaleSize must be 1920x1080; received 1280x720` and then dies with `0xc0000094` at `+0x28f03e8` 27 s in — the divide you describe in `resolution.rs`. `VICTORY_UPSCALER=6` is what keeps 720p alive here. 2. **`VICTORY_PORT_CONSTANTS=1` makes the title hit its own `int3` (`0x80000003`) 4 s in**, before the world, when it is on together with `PORT_DESCRIPTORS`/`PORT_CBV` (and `GUARD`/`JOURNAL`). 3. **`VICTORY_PORT_GUARD=1` + `VICTORY_PORT_JOURNAL=1` on top of that: 350-400 ms a frame (2.7 fps).** Your preset without those two is what works; on 8 GB they are the wrong switches. 4. `VICTORY_RENDER_SCALE=1.0` costs almost nothing (53 vs 50 ms) and removes the 480p blur from the title's 2/3 scale. Still wrong on this card: character meshes stretch now and then (less than on the Scarlett line I came from), and faces do not animate — static, but no longer collapsed to a single point, so that part of `VICTORY_COMPUTE_WAIT_MS` works here. First configuration on this card that goes past 30 fps in the dips. Thank you.
Author
Owner

@⁠borntofrag34 on GitHub · 2026-11-27 09:46 UTC · original

@⁠YaBulochka thank you for the run on 8 GB, and for the list.

One point I cannot read for sure, (b): the table gives 43 ms with play-1080p.sh's settings, which hold VICTORY_PORT_CONSTANTS=1 with VICTORY_PORT_DESCRIPTORS=1 and VICTORY_PORT_CBV=1, and the note says VICTORY_PORT_CONSTANTS=1 ends on the title's own int3 (0x80000003) at 4 s. Which of these is it?

  1. the three VICTORY_PORT_* alone (the launcher as it is): runs, 43 ms;
  2. the same with the guard and the journal added: int3 at 4 s;
  3. something else (then: the exact line of settings of the run that stopped, and the last twenty lines of its log, would be enough).

Here on an RX 7900 GRE the launcher's settings have not stopped that way in some forty runs, but none of them had the guard or the journal on.

On (e): the faces that do not move are the same here; it is what #114 is about, and on this card #114 makes them move but wrongly (notes there). The stretched meshes I have not looked at yet.

🤖 Generated with Claude Code

**@⁠borntofrag34** on GitHub · 2026-11-27 09:46 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/pull/440#issuecomment-7215081417) @⁠YaBulochka thank you for the run on 8 GB, and for the list. One point I cannot read for sure, (b): the table gives 43 ms with `play-1080p.sh`'s settings, which hold `VICTORY_PORT_CONSTANTS=1` with `VICTORY_PORT_DESCRIPTORS=1` and `VICTORY_PORT_CBV=1`, and the note says `VICTORY_PORT_CONSTANTS=1` ends on the title's own int3 (0x80000003) at 4 s. Which of these is it? 1. the three `VICTORY_PORT_*` alone (the launcher as it is): runs, 43 ms; 2. the same with the guard and the journal added: int3 at 4 s; 3. something else (then: the exact line of settings of the run that stopped, and the last twenty lines of its log, would be enough). Here on an RX 7900 GRE the launcher's settings have not stopped that way in some forty runs, but none of them had the guard or the journal on. On (e): the faces that do not move are the same here; it is what #114 is about, and on this card #114 makes them move but wrongly (notes there). The stretched meshes I have not looked at yet. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Author
Owner

@⁠UwUCammie on GitHub · 2026-11-27 09:47 UTC · original

@⁠YaBulochka Was the vkd3d-proton cache empty at the start of each run, and did the 300 s start at launch? My full 720p result was 21.93 accepted presents/s on an RX 7900 XT, Series X, counting from launch with five empty caches. The mmap-backed constants path was active here with GUARD and JOURNAL left off.

I also tried a 2 s compute wait with the 2.5 KiB early-compile cutoff. In the second run both faces had skin in the car, and the longest gap over the first 245 s went from 17.83 s to 11.92 s. P99 rose from 223 to 294 ms, and 125 waits ended without a pipeline result, up from 36. Both runs yielded to a parallel build before 300 s. Settings and results

**@⁠UwUCammie** on GitHub · 2026-11-27 09:47 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/pull/440#issuecomment-7215108726) @⁠YaBulochka Was the vkd3d-proton cache empty at the start of each run, and did the 300 s start at launch? My full 720p result was 21.93 accepted presents/s on an RX 7900 XT, Series X, counting from launch with five empty caches. The mmap-backed constants path was active here with GUARD and JOURNAL left off. I also tried a 2 s compute wait with the 2.5 KiB early-compile cutoff. In the second run both faces had skin in the car, and the longest gap over the first 245 s went from 17.83 s to 11.92 s. P99 rose from 223 to 294 ms, and 125 waits ended without a pipeline result, up from 36. Both runs yielded to a parallel build before 300 s. [Settings and results](https://github.com/UwUCammie/victory-amd/commit/31e144d8)
Author
Owner

@⁠UwUCammie on GitHub · 2026-11-27 10:00 UTC · original

One follow-up on the 2 s trial. The 11.92 s present gap still overlapped 11.91 s of the separate screen-pass waits, and only 2.99 s of reported compute waits. One screen pipeline repeatedly hit the 10 s limit across three runs. Both stages together fit within 6 KiB.

I’ve put an opt-in early-compile test in #450. It leaves the 10 s screen wait in place and uses the regular early queue. I’ll compare it with early screen compilation off using the same cold 720p executable. Wait breakdown

**@⁠UwUCammie** on GitHub · 2026-11-27 10:00 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/pull/440#issuecomment-7215367465) One follow-up on the 2 s trial. The 11.92 s present gap still overlapped 11.91 s of the separate screen-pass waits, and only 2.99 s of reported compute waits. One screen pipeline repeatedly hit the 10 s limit across three runs. Both stages together fit within 6 KiB. I’ve put an opt-in early-compile test in #450. It leaves the 10 s screen wait in place and uses the regular early queue. I’ll compare it with early screen compilation off using the same cold 720p executable. [Wait breakdown](https://github.com/UwUCammie/victory-amd/commit/c2c6b4f9)
Author
Owner

@⁠borntofrag34 on GitHub · 2026-11-27 10:29 UTC · original

Added #351's fix to this branch (deebee8, Fedalv's commit a803fd5 picked with its author kept): with card steps on, a copy that reaches past its buffer is left out instead of recorded. play.sh turns card steps on (VICTORY_CARD_STEPS=2), and #351 reports such copies giving a GPU page fault and a whole-GPU reset on RADV.

Here (RX 7900 GRE, RADV 26.3.1), one 200 s run with it: no copy was left out ("a copy out of its buffer's range left out" never logged), no error, 23.5 ms a frame median. One launch here hung the GPU (amdgpu ring timeout, reset failed) on 2026-11-26; nothing shows this would have prevented it, it is in as a guard.

🤖 Generated with Claude Code

**@⁠borntofrag34** on GitHub · 2026-11-27 10:29 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/pull/440#issuecomment-7215941588) Added #351's fix to this branch (`deebee8`, Fedalv's commit a803fd5 picked with its author kept): with card steps on, a copy that reaches past its buffer is left out instead of recorded. `play.sh` turns card steps on (`VICTORY_CARD_STEPS=2`), and #351 reports such copies giving a GPU page fault and a whole-GPU reset on RADV. Here (RX 7900 GRE, RADV 26.3.1), one 200 s run with it: no copy was left out ("a copy out of its buffer's range left out" never logged), no error, 23.5 ms a frame median. One launch here hung the GPU (amdgpu ring timeout, reset failed) on 2026-11-26; nothing shows this would have prevented it, it is in as a guard. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Author
Owner

@⁠UwUCammie on GitHub · 2026-11-27 10:36 UTC · original

The write-back control lost the device at 264.32 s with write-back disabled. The guard recorded no overlap. The renderer returned DXGI_ERROR_DEVICE_REMOVED and vkd3d-proton logged VK_ERROR_DEVICE_LOST, as it did in the earlier 261.92 s run on the early-compute build. That leaves the failing command unknown.

I’ve held the write-back pair and started a separate probe on the same release executable with the driver’s fault reporting and breadcrumbs requested. The probe is excluded from timing. Reproduction notes

**@⁠UwUCammie** on GitHub · 2026-11-27 10:36 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/pull/440#issuecomment-7216099328) The write-back control lost the device at 264.32 s with write-back disabled. The guard recorded no overlap. The renderer returned DXGI_ERROR_DEVICE_REMOVED and vkd3d-proton logged VK_ERROR_DEVICE_LOST, as it did in the earlier 261.92 s run on the early-compute build. That leaves the failing command unknown. I’ve held the write-back pair and started a separate probe on the same release executable with the driver’s fault reporting and breadcrumbs requested. The probe is excluded from timing. [Reproduction notes](https://github.com/UwUCammie/victory-amd/commit/c0d1260b)
Author
Owner

@⁠UwUCammie on GitHub · 2026-11-27 10:48 UTC · original

I tried a follow-up to the bounds guard. If recording skips a read, its write and the planner’s taken-step bookkeeping can still go through. The follow-up checks the full batch before taking any deferred steps, so an invalid range leaves the submission on the existing waiting path. The hardware flight test passed on RX 7900 XT with RADV 26.3.1 and 71cae091, including a mixed valid and invalid batch. Follow-up against linux-wine-pr

The first driver fault probe yielded at 202.54 s. The patched cold control is being built with the same write-back-disabled settings. Results so far

**@⁠UwUCammie** on GitHub · 2026-11-27 10:48 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/pull/440#issuecomment-7216330623) I tried a follow-up to the bounds guard. If recording skips a read, its write and the planner’s taken-step bookkeeping can still go through. The follow-up checks the full batch before taking any deferred steps, so an invalid range leaves the submission on the existing waiting path. The hardware flight test passed on RX 7900 XT with RADV 26.3.1 and `71cae091`, including a mixed valid and invalid batch. [Follow-up against linux-wine-pr](https://github.com/borntofrag34/VIctory-7900XTX/pull/1) The first driver fault probe yielded at 202.54 s. The patched cold control is being built with the same write-back-disabled settings. [Results so far](https://github.com/UwUCammie/victory-amd/commit/ba43f95d)
Author
Owner

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

I found a separate worker recovery bug in the current Wine branch. With 64 general workers and two priority workers, the watcher sent 66 handles to one wait and exited when Wine rejected it. The regression reproduces the failure on Wine 11.22 and verifies both wait groups with all 66 handles. I opened the fix against your Wine branch. Follow-up PR

**@⁠UwUCammie** on GitHub · 2026-11-27 11:16 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/pull/440#issuecomment-7216890079) I found a separate worker recovery bug in the current Wine branch. With 64 general workers and two priority workers, the watcher sent 66 handles to one wait and exited when Wine rejected it. The regression reproduces the failure on Wine 11.22 and verifies both wait groups with all 66 handles. I opened the fix against your Wine branch. [Follow-up PR](https://github.com/borntofrag34/VIctory-7900XTX/pull/2)
Author
Owner

@⁠YaBulochka on GitHub · 2026-11-27 12:49 UTC · original

VICTORY_PORT_CONSTANTS=1 does not survive here; the rest of the branch runs. Reporting the data in case it is a known limit on small cards, or a bug with a cheap fix.

Build: linux-wine-pr b62290c + #451 + #454 + #434 + #437 merged locally. RX 7600 XT 8 GB (RDNA3), Mesa 27.0.0-devel (RADV), Wine 11.22 (system), kernel 7.3.5, 30 GB RAM. Series S, 1280x720, VICTORY_RENDER_SCALE=1.0, VICTORY_UPSCALER=6, textures 3 GB, card buffers 2 GB.

Settings Frame Stability
PORT_CONSTANTS=0, PORT_CBV=0, CARD_BUFFERS_MIN_KB=64 50-53 ms (19-20 fps); open world median 64-71 ms 30+ minutes, no device loss, half the story played
+ PORT_CONSTANTS=1 43 ms crashes, see below

With PORT_CONSTANTS=1:

  • twice the title's own int3 (0x80000003) at victory-image-...dll+0x31f50 about 4 s in, before the world, while all the other switches were unchanged (PORT_CBV=0, no PORT_GUARD/PORT_JOURNAL);
  • otherwise a GPUVM fault on a title VA after about a minute: 0x8002b2b00000, 0x8002b5d00000 (earlier 0x800286b00000 with the same switch), then comp_1.x.0 ring timeout -> MES failed to respond to msg=SUSPEND -> device wedged, and the title reports device removed: 0x887A0005;
  • once, black patches on wall and door textures that were not there without it.

PORT_HOME is on (default under Wine), so this is not the "memory by address is not one anonymous mapping" case.

Question: is PORT_CONSTANTS expected to work under Wine/RADV at all, or is it Windows-only in practice? If it should work, tell me what to collect — the fault address is a title VA, and the int3 is at one fixed site, so it may narrow quickly. The 7 ms it buys (50 -> 43 ms) is the difference between 20 and 23 fps here, which matters on a card this small.

For reference, the stable configuration above is already a big win over the fork I came from (Op-lite/victory-scarlett: 63-67 ms with 38 ms of copies). Your #440 took copies down to 10-12 ms and gave the first 30+ fps dips on this card.

**@⁠YaBulochka** on GitHub · 2026-11-27 12:49 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/pull/440#issuecomment-7218710994) `VICTORY_PORT_CONSTANTS=1` does not survive here; the rest of the branch runs. Reporting the data in case it is a known limit on small cards, or a bug with a cheap fix. Build: `linux-wine-pr` `b62290c` + #451 + #454 + #434 + #437 merged locally. RX 7600 XT 8 GB (RDNA3), Mesa 27.0.0-devel (RADV), Wine 11.22 (system), kernel 7.3.5, 30 GB RAM. Series S, 1280x720, `VICTORY_RENDER_SCALE=1.0`, `VICTORY_UPSCALER=6`, textures 3 GB, card buffers 2 GB. | Settings | Frame | Stability | |---|---|---| | `PORT_CONSTANTS=0`, `PORT_CBV=0`, `CARD_BUFFERS_MIN_KB=64` | 50-53 ms (19-20 fps); open world median 64-71 ms | **30+ minutes, no device loss**, half the story played | | + `PORT_CONSTANTS=1` | 43 ms | crashes, see below | With `PORT_CONSTANTS=1`: - twice the title's own `int3` (`0x80000003`) at `victory-image-...dll+0x31f50` about 4 s in, before the world, while all the other switches were unchanged (`PORT_CBV=0`, no `PORT_GUARD`/`PORT_JOURNAL`); - otherwise a `GPUVM fault` on a title VA after about a minute: `0x8002b2b00000`, `0x8002b5d00000` (earlier `0x800286b00000` with the same switch), then `comp_1.x.0 ring timeout` -> `MES failed to respond to msg=SUSPEND` -> `device wedged`, and the title reports `device removed: 0x887A0005`; - once, black patches on wall and door textures that were not there without it. `PORT_HOME` is on (default under Wine), so this is not the "memory by address is not one anonymous mapping" case. Question: is `PORT_CONSTANTS` expected to work under Wine/RADV at all, or is it Windows-only in practice? If it should work, tell me what to collect — the fault address is a title VA, and the `int3` is at one fixed site, so it may narrow quickly. The 7 ms it buys (50 -> 43 ms) is the difference between 20 and 23 fps here, which matters on a card this small. For reference, the stable configuration above is already a big win over the fork I came from (Op-lite/victory-scarlett: 63-67 ms with 38 ms of copies). Your #440 took copies down to 10-12 ms and gave the first 30+ fps dips on this card.
Author
Owner

@⁠UwUCammie on GitHub · 2026-11-27 13:09 UTC · original

I hit a similar failure with VICTORY_PORT_CONSTANTS=1 on an RX 7900 XT under Wine 11.22. In a matched saved-waterfront run, the HUD drew over a black world with in-place constants enabled. With the switch off, the same save and camera showed the world at all four checkpoints. I also saw an early breakpoint in a separate run. That was an older build, so I can’t tie it to the same fault on your 7600 XT. Results and settings

I’d keep the switch off on that build given the ring timeout. If you still have the failed run’s logs, the first vkd3d error and the kernel lines immediately before the first GPUVM fault would help. The exact merge SHAs would make it easier to match the breakpoint. No need to trigger another reset or send a dump.

**@⁠UwUCammie** on GitHub · 2026-11-27 13:09 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/pull/440#issuecomment-7219134623) I hit a similar failure with `VICTORY_PORT_CONSTANTS=1` on an RX 7900 XT under Wine 11.22. In a matched saved-waterfront run, the HUD drew over a black world with in-place constants enabled. With the switch off, the same save and camera showed the world at all four checkpoints. I also saw an early breakpoint in a separate run. That was an older build, so I can’t tie it to the same fault on your 7600 XT. [Results and settings](https://github.com/UwUCammie/victory-amd/commit/2dd26fa2) I’d keep the switch off on that build given the ring timeout. If you still have the failed run’s logs, the first vkd3d error and the kernel lines immediately before the first GPUVM fault would help. The exact merge SHAs would make it easier to match the breakpoint. No need to trigger another reset or send a dump.
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/440/head:github-bot/gh-440'
git switch 'github-bot/gh-440'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-440'
git switch 'github-bot/gh-440'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-440'
git switch 'github-bot/gh-440'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-440'
git switch 'main'
git merge --squash 'github-bot/gh-440'
git switch 'main'
git merge --ff-only 'github-bot/gh-440'
git switch 'main'
git merge 'github-bot/gh-440'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.