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

Open
borntofrag34 wants to merge 72 commits from upstream-pr/440 into main
borntofrag34 commented 2026-11-27 08:03:55 +00:00 (Migrated from github.com)

Imported from avatarmanz/VIctory-7900XTX. Originally posted by borntofrag34 on 2026-11-27T08:03:55Z.


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

<!-- greyfinch-sync:avatarmanz/VIctory-7900XTX:issue:5523273176 --> Imported from [avatarmanz/VIctory-7900XTX](https://github.com/avatarmanz/VIctory-7900XTX/pull/440). Originally posted by [borntofrag34](https://github.com/borntofrag34) on 2026-11-27T08:03:55Z. --- 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)
UwUCammie commented 2026-11-27 08:33:55 +00:00 (Migrated from github.com)

Imported from avatarmanz/VIctory-7900XTX. Originally posted by UwUCammie on 2026-11-27T08:33:55Z.


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

<!-- greyfinch-sync:avatarmanz/VIctory-7900XTX:comment:7213673271 --> Imported from [avatarmanz/VIctory-7900XTX](https://github.com/avatarmanz/VIctory-7900XTX/pull/440#issuecomment-7213673271). Originally posted by [UwUCammie](https://github.com/UwUCammie) on 2026-11-27T08:33:55Z. --- 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)
borntofrag34 commented 2026-11-27 08:34:20 +00:00 (Migrated from github.com)

Imported from avatarmanz/VIctory-7900XTX. Originally posted by borntofrag34 on 2026-11-27T08:34:20Z.


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

<!-- greyfinch-sync:avatarmanz/VIctory-7900XTX:comment:7213680361 --> Imported from [avatarmanz/VIctory-7900XTX](https://github.com/avatarmanz/VIctory-7900XTX/pull/440#issuecomment-7213680361). Originally posted by [borntofrag34](https://github.com/borntofrag34) on 2026-11-27T08:34:20Z. --- 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)
UwUCammie commented 2026-11-27 08:50:07 +00:00 (Migrated from github.com)

Imported from avatarmanz/VIctory-7900XTX. Originally posted by UwUCammie on 2026-11-27T08:50:07Z.


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

<!-- greyfinch-sync:avatarmanz/VIctory-7900XTX:comment:7213975062 --> Imported from [avatarmanz/VIctory-7900XTX](https://github.com/avatarmanz/VIctory-7900XTX/pull/440#issuecomment-7213975062). Originally posted by [UwUCammie](https://github.com/UwUCammie) on 2026-11-27T08:50:07Z. --- 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)
borntofrag34 commented 2026-11-27 09:00:19 +00:00 (Migrated from github.com)

Imported from avatarmanz/VIctory-7900XTX. Originally posted by borntofrag34 on 2026-11-27T09:00:19Z.


@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

<!-- greyfinch-sync:avatarmanz/VIctory-7900XTX:comment:7214168214 --> Imported from [avatarmanz/VIctory-7900XTX](https://github.com/avatarmanz/VIctory-7900XTX/pull/440#issuecomment-7214168214). Originally posted by [borntofrag34](https://github.com/borntofrag34) on 2026-11-27T09:00:19Z. --- @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)
UwUCammie commented 2026-11-27 09:01:55 +00:00 (Migrated from github.com)

Imported from avatarmanz/VIctory-7900XTX. Originally posted by UwUCammie on 2026-11-27T09:01:55Z.


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

<!-- greyfinch-sync:avatarmanz/VIctory-7900XTX:comment:7214199341 --> Imported from [avatarmanz/VIctory-7900XTX](https://github.com/avatarmanz/VIctory-7900XTX/pull/440#issuecomment-7214199341). Originally posted by [UwUCammie](https://github.com/UwUCammie) on 2026-11-27T09:01:55Z. --- 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)
UwUCammie commented 2026-11-27 09:13:47 +00:00 (Migrated from github.com)

Imported from avatarmanz/VIctory-7900XTX. Originally posted by UwUCammie on 2026-11-27T09:13:47Z.


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

<!-- greyfinch-sync:avatarmanz/VIctory-7900XTX:comment:7214432790 --> Imported from [avatarmanz/VIctory-7900XTX](https://github.com/avatarmanz/VIctory-7900XTX/pull/440#issuecomment-7214432790). Originally posted by [UwUCammie](https://github.com/UwUCammie) on 2026-11-27T09:13:47Z. --- 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)
UwUCammie commented 2026-11-27 09:30:28 +00:00 (Migrated from github.com)

Imported from avatarmanz/VIctory-7900XTX. Originally posted by UwUCammie on 2026-11-27T09:30:28Z.


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

<!-- greyfinch-sync:avatarmanz/VIctory-7900XTX:comment:7214762564 --> Imported from [avatarmanz/VIctory-7900XTX](https://github.com/avatarmanz/VIctory-7900XTX/pull/440#issuecomment-7214762564). Originally posted by [UwUCammie](https://github.com/UwUCammie) on 2026-11-27T09:30:28Z. --- 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)
YaBulochka commented 2026-11-27 09:35:01 +00:00 (Migrated from github.com)

Imported from avatarmanz/VIctory-7900XTX. Originally posted by YaBulochka on 2026-11-27T09:35:01Z.


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.

<!-- greyfinch-sync:avatarmanz/VIctory-7900XTX:comment:7214852210 --> Imported from [avatarmanz/VIctory-7900XTX](https://github.com/avatarmanz/VIctory-7900XTX/pull/440#issuecomment-7214852210). Originally posted by [YaBulochka](https://github.com/YaBulochka) on 2026-11-27T09:35:01Z. --- 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.
borntofrag34 commented 2026-11-27 09:46:37 +00:00 (Migrated from github.com)

Imported from avatarmanz/VIctory-7900XTX. Originally posted by borntofrag34 on 2026-11-27T09:46:37Z.


@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

<!-- greyfinch-sync:avatarmanz/VIctory-7900XTX:comment:7215081417 --> Imported from [avatarmanz/VIctory-7900XTX](https://github.com/avatarmanz/VIctory-7900XTX/pull/440#issuecomment-7215081417). Originally posted by [borntofrag34](https://github.com/borntofrag34) on 2026-11-27T09:46:37Z. --- @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)
UwUCammie commented 2026-11-27 09:47:59 +00:00 (Migrated from github.com)

Imported from avatarmanz/VIctory-7900XTX. Originally posted by UwUCammie on 2026-11-27T09:47:59Z.


@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

<!-- greyfinch-sync:avatarmanz/VIctory-7900XTX:comment:7215108726 --> Imported from [avatarmanz/VIctory-7900XTX](https://github.com/avatarmanz/VIctory-7900XTX/pull/440#issuecomment-7215108726). Originally posted by [UwUCammie](https://github.com/UwUCammie) on 2026-11-27T09:47:59Z. --- @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)
UwUCammie commented 2026-11-27 10:00:43 +00:00 (Migrated from github.com)

Imported from avatarmanz/VIctory-7900XTX. Originally posted by UwUCammie on 2026-11-27T10:00:43Z.


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

<!-- greyfinch-sync:avatarmanz/VIctory-7900XTX:comment:7215367465 --> Imported from [avatarmanz/VIctory-7900XTX](https://github.com/avatarmanz/VIctory-7900XTX/pull/440#issuecomment-7215367465). Originally posted by [UwUCammie](https://github.com/UwUCammie) on 2026-11-27T10:00:43Z. --- 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)
borntofrag34 commented 2026-11-27 10:29:13 +00:00 (Migrated from github.com)

Imported from avatarmanz/VIctory-7900XTX. Originally posted by borntofrag34 on 2026-11-27T10:29:13Z.


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

<!-- greyfinch-sync:avatarmanz/VIctory-7900XTX:comment:7215941588 --> Imported from [avatarmanz/VIctory-7900XTX](https://github.com/avatarmanz/VIctory-7900XTX/pull/440#issuecomment-7215941588). Originally posted by [borntofrag34](https://github.com/borntofrag34) on 2026-11-27T10:29:13Z. --- 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)
UwUCammie commented 2026-11-27 10:36:58 +00:00 (Migrated from github.com)

Imported from avatarmanz/VIctory-7900XTX. Originally posted by UwUCammie on 2026-11-27T10:36:58Z.


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

<!-- greyfinch-sync:avatarmanz/VIctory-7900XTX:comment:7216099328 --> Imported from [avatarmanz/VIctory-7900XTX](https://github.com/avatarmanz/VIctory-7900XTX/pull/440#issuecomment-7216099328). Originally posted by [UwUCammie](https://github.com/UwUCammie) on 2026-11-27T10:36:58Z. --- 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)
UwUCammie commented 2026-11-27 10:48:33 +00:00 (Migrated from github.com)

Imported from avatarmanz/VIctory-7900XTX. Originally posted by UwUCammie on 2026-11-27T10:48:33Z.


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

<!-- greyfinch-sync:avatarmanz/VIctory-7900XTX:comment:7216330623 --> Imported from [avatarmanz/VIctory-7900XTX](https://github.com/avatarmanz/VIctory-7900XTX/pull/440#issuecomment-7216330623). Originally posted by [UwUCammie](https://github.com/UwUCammie) on 2026-11-27T10:48:33Z. --- 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)
UwUCammie commented 2026-11-27 11:16:49 +00:00 (Migrated from github.com)

Imported from avatarmanz/VIctory-7900XTX. Originally posted by UwUCammie on 2026-11-27T11:16:49Z.


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

<!-- greyfinch-sync:avatarmanz/VIctory-7900XTX:comment:7216890079 --> Imported from [avatarmanz/VIctory-7900XTX](https://github.com/avatarmanz/VIctory-7900XTX/pull/440#issuecomment-7216890079). Originally posted by [UwUCammie](https://github.com/UwUCammie) on 2026-11-27T11:16:49Z. --- 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)
YaBulochka commented 2026-11-27 12:49:10 +00:00 (Migrated from github.com)

Imported from avatarmanz/VIctory-7900XTX. Originally posted by YaBulochka on 2026-11-27T12:49:10Z.


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.

<!-- greyfinch-sync:avatarmanz/VIctory-7900XTX:comment:7218710994 --> Imported from [avatarmanz/VIctory-7900XTX](https://github.com/avatarmanz/VIctory-7900XTX/pull/440#issuecomment-7218710994). Originally posted by [YaBulochka](https://github.com/YaBulochka) on 2026-11-27T12:49:10Z. --- `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.
UwUCammie commented 2026-11-27 13:09:45 +00:00 (Migrated from github.com)

Imported from avatarmanz/VIctory-7900XTX. Originally posted by UwUCammie on 2026-11-27T13:09:45Z.


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.

<!-- greyfinch-sync:avatarmanz/VIctory-7900XTX:comment:7219134623 --> Imported from [avatarmanz/VIctory-7900XTX](https://github.com/avatarmanz/VIctory-7900XTX/pull/440#issuecomment-7219134623). Originally posted by [UwUCammie](https://github.com/UwUCammie) on 2026-11-27T13:09:45Z. --- 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.
borntofrag34 commented 2026-11-27 13:21:13 +00:00 (Migrated from github.com)

Imported from avatarmanz/VIctory-7900XTX. Originally posted by borntofrag34 on 2026-11-27T13:21:13Z.


@YaBulochka thank you, this is the report I needed. Short answer: VICTORY_PORT_CONSTANTS is meant to work under Wine/RADV, but so far it has only been shown to hold on one card and one scene. With what you see, keep it off on yours until we have the lines below.

What holds here. RX 7900 GRE, RADV 26.3.1, vkd3d-proton 3.2.0, Proton Experimental's Wine. 88 launches with renderer port 1 on: no panic, no rejected submission, no lost device, no int3. The limits matter, though: all 88 are in the opening cutscene, 100-240 s, Series X 1920x1080. None was in play, none in Series S, none with the system Wine 11.22 or Mesa 27-devel. @UwUCammie's black world on a 7900 XT points the same way: it is not only an 8 GB thing.

What VICTORY_PORT_HOME does under Wine. vkd3d-proton backs a heap opened on a section's view with memory of its own, so the card read zeros. Instead, the title's 32-bit graphics pages are shown as the process's own memory, made one mapping first (whole_home), and the heap is opened right where the title has them. At opening, the card is asked whether it sees the bytes. If it reads zeros, the stretch is tried 4 times, then given up (home_given_up) and copied as before. That check only runs at opening, so zeros later in a run (your black patches?) would not be caught.

Guesses, not verified:

  • The int3 at victory-image+0x31f50 is not one of the layer's patched sites, so it is most likely an assert of the title itself. Before the world, what this switch changes is where the 32-bit graphics pages are placed; an assert in the title's allocator is plausible, nothing more.
  • 0x8002b2b00000 is a GPU virtual address, not one of the title's: its 32-bit graphics pages sit around 0x0afa0000-0x104a0000 here. A heap opened on process memory (userptr) where a page is then unmapped, remapped or made read-only gives exactly this kind of fault, or a rejected submission. I measured the read-only case here: every submission is rejected. With 7.46 of 8.14 GB in use, eviction is possible too. I can't tell the two apart yet.

What would narrow it, beyond what @UwUCammie asked for (the first vkd3d error, the kernel lines just before the first GPUVM fault, the exact SHAs):

  1. Every "renderer port 1" line, from both victory_gpu::port and victory_hle::modules::xmem: regions in place and their size, refusals with their why (not one stretch of a section / not committed / by the host / no buffer), the opening's card_reads_it and attempt, and any "the card reads zeros in the heap".
  2. The periodic line "renderer port 1 (VICTORY_PORT_CONSTANTS=1): N regions ... since the start refused: ..." nearest to the fault.
  3. The last 30 lines before the int3, and whether the int3 still comes with VICTORY_PORT_HOME=0. Then the card reads zeros, but the pages are not placed, which separates the placing from the heap.
  4. VRAM in use at the fault, and if you can, one run in Series X or with less VRAM taken, for the eviction idea.
  5. If you can, the same test without your four local merges (#451, #454, #434, #437), on the branch's current head 3f9ac64, to rule them out. I haven't read them, and #434 changes what card steps read after a submission is sent.

No need to cause another reset just for this: the logs of the runs you already have are enough.

🤖 Generated with Claude Code

<!-- greyfinch-sync:avatarmanz/VIctory-7900XTX:comment:7219373643 --> Imported from [avatarmanz/VIctory-7900XTX](https://github.com/avatarmanz/VIctory-7900XTX/pull/440#issuecomment-7219373643). Originally posted by [borntofrag34](https://github.com/borntofrag34) on 2026-11-27T13:21:13Z. --- @YaBulochka thank you, this is the report I needed. Short answer: `VICTORY_PORT_CONSTANTS` is meant to work under Wine/RADV, but so far it has only been shown to hold on one card and one scene. With what you see, keep it off on yours until we have the lines below. **What holds here.** RX 7900 GRE, RADV 26.3.1, vkd3d-proton 3.2.0, Proton Experimental's Wine. 88 launches with renderer port 1 on: no panic, no rejected submission, no lost device, no int3. The limits matter, though: all 88 are in the opening cutscene, 100-240 s, Series X 1920x1080. None was in play, none in Series S, none with the system Wine 11.22 or Mesa 27-devel. @UwUCammie's black world on a 7900 XT points the same way: it is not only an 8 GB thing. **What `VICTORY_PORT_HOME` does under Wine.** vkd3d-proton backs a heap opened on a section's view with memory of its own, so the card read zeros. Instead, the title's 32-bit graphics pages are shown as the process's own memory, made one mapping first (`whole_home`), and the heap is opened right where the title has them. At opening, the card is asked whether it sees the bytes. If it reads zeros, the stretch is tried 4 times, then given up (`home_given_up`) and copied as before. That check only runs at opening, so zeros later in a run (your black patches?) would not be caught. **Guesses, not verified:** - The `int3` at `victory-image+0x31f50` is not one of the layer's patched sites, so it is most likely an assert of the title itself. Before the world, what this switch changes is where the 32-bit graphics pages are placed; an assert in the title's allocator is plausible, nothing more. - `0x8002b2b00000` is a GPU virtual address, not one of the title's: its 32-bit graphics pages sit around `0x0afa0000-0x104a0000` here. A heap opened on process memory (userptr) where a page is then unmapped, remapped or made read-only gives exactly this kind of fault, or a rejected submission. I measured the read-only case here: every submission is rejected. With 7.46 of 8.14 GB in use, eviction is possible too. I can't tell the two apart yet. **What would narrow it**, beyond what @UwUCammie asked for (the first vkd3d error, the kernel lines just before the first GPUVM fault, the exact SHAs): 1. Every "renderer port 1" line, from both `victory_gpu::port` and `victory_hle::modules::xmem`: regions in place and their size, refusals with their `why` (not one stretch of a section / not committed / by the host / no buffer), the opening's `card_reads_it` and `attempt`, and any "the card reads zeros in the heap". 2. The periodic line "renderer port 1 (VICTORY_PORT_CONSTANTS=1): N regions ... since the start refused: ..." nearest to the fault. 3. The last 30 lines before the `int3`, and whether the `int3` still comes with `VICTORY_PORT_HOME=0`. Then the card reads zeros, but the pages are not placed, which separates the placing from the heap. 4. VRAM in use at the fault, and if you can, one run in Series X or with less VRAM taken, for the eviction idea. 5. If you can, the same test without your four local merges (#451, #454, #434, #437), on the branch's current head `3f9ac64`, to rule them out. I haven't read them, and #434 changes what card steps read after a submission is sent. No need to cause another reset just for this: the logs of the runs you already have are enough. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
UwUCammie commented 2026-11-27 13:41:20 +00:00 (Migrated from github.com)

Imported from avatarmanz/VIctory-7900XTX. Originally posted by UwUCammie on 2026-11-27T13:41:20Z.


I checked the two older RX 7900 XT logs. The run with a black world accepted one 185 MB graphics-memory region. The last counters show one region refused because it wasn’t one stretch of a section, zero host refusals, and zero regions forgotten. That run completed the saved route with the HUD visible. The separate startup breakpoint run had already accepted the same size region and reported zero refusals before the breakpoint.

Those builds predate the card_reads_it counters, so the logs can’t tell us what the GPU saw through the imported heap. Saved-route comparison and settings

<!-- greyfinch-sync:avatarmanz/VIctory-7900XTX:comment:7219814038 --> Imported from [avatarmanz/VIctory-7900XTX](https://github.com/avatarmanz/VIctory-7900XTX/pull/440#issuecomment-7219814038). Originally posted by [UwUCammie](https://github.com/UwUCammie) on 2026-11-27T13:41:20Z. --- I checked the two older RX 7900 XT logs. The run with a black world accepted one 185 MB graphics-memory region. The last counters show one region refused because it wasn’t one stretch of a section, zero host refusals, and zero regions forgotten. That run completed the saved route with the HUD visible. The separate startup breakpoint run had already accepted the same size region and reported zero refusals before the breakpoint. Those builds predate the `card_reads_it` counters, so the logs can’t tell us what the GPU saw through the imported heap. [Saved-route comparison and settings](https://github.com/UwUCammie/victory-amd/commit/2dd26fa2)
UwUCammie commented 2026-11-27 14:30:05 +00:00 (Migrated from github.com)

Imported from avatarmanz/VIctory-7900XTX. Originally posted by UwUCammie on 2026-11-27T14:30:05Z.


I got a stage trace through the first long gap on the RX 7900 XT, with the 10 s compute wait and five empty caches. It was a 10.37 s gap. The driver’s compute pipeline creation calls overlapped 9.21 s of it, compared with 1.04 s before worker claims and about 5 ms in root signature work. These are wall times, and waits can overlap. The run yielded to another build at 38 s. I’ve queued a CPU sample inside that window to see where the driver threads spend their time. Trace summary

<!-- greyfinch-sync:avatarmanz/VIctory-7900XTX:comment:7220861568 --> Imported from [avatarmanz/VIctory-7900XTX](https://github.com/avatarmanz/VIctory-7900XTX/pull/440#issuecomment-7220861568). Originally posted by [UwUCammie](https://github.com/UwUCammie) on 2026-11-27T14:30:05Z. --- I got a stage trace through the first long gap on the RX 7900 XT, with the 10 s compute wait and five empty caches. It was a 10.37 s gap. The driver’s compute pipeline creation calls overlapped 9.21 s of it, compared with 1.04 s before worker claims and about 5 ms in root signature work. These are wall times, and waits can overlap. The run yielded to another build at 38 s. I’ve queued a CPU sample inside that window to see where the driver threads spend their time. [Trace summary](https://github.com/UwUCammie/victory-amd/commit/a2fbe905)
UwUCammie commented 2026-11-27 14:40:16 +00:00 (Migrated from github.com)

Imported from avatarmanz/VIctory-7900XTX. Originally posted by UwUCammie on 2026-11-27T14:40:16Z.


The CPU sample completed this time. It covered 30.32–36.59 s after launch inside the first long gap. RADV accounted for 52.64% of about 28,000 user-mode samples. The 12 pipeline workers used 8.67 CPU-seconds per second of wall time over that window. I’ve queued cold runs with 6 and 14 general workers against the default 10 on the same 720p face build, keeping the 3 KiB cutoff and 10 s wait. Profile and test settings

<!-- greyfinch-sync:avatarmanz/VIctory-7900XTX:comment:7221076383 --> Imported from [avatarmanz/VIctory-7900XTX](https://github.com/avatarmanz/VIctory-7900XTX/pull/440#issuecomment-7221076383). Originally posted by [UwUCammie](https://github.com/UwUCammie) on 2026-11-27T14:40:16Z. --- The CPU sample completed this time. It covered 30.32–36.59 s after launch inside the first long gap. RADV accounted for 52.64% of about 28,000 user-mode samples. The 12 pipeline workers used 8.67 CPU-seconds per second of wall time over that window. I’ve queued cold runs with 6 and 14 general workers against the default 10 on the same 720p face build, keeping the 3 KiB cutoff and 10 s wait. [Profile and test settings](https://github.com/UwUCammie/victory-amd/commit/b9d94b60)
YaBulochka commented 2026-11-27 14:51:20 +00:00 (Migrated from github.com)

Imported from avatarmanz/VIctory-7900XTX. Originally posted by YaBulochka on 2026-11-27T14:51:20Z.


FSR 4 runs under Wine on RDNA3 at the title's own resolution with two small changes. Both are in this branch's own code, no Windows behaviour changes.

1. VICTORY_PC_FSR=1: load the PC provider without the 4K preset. Today use_host_dir is only called under -Fsr4K, which also forces VICTORY_DISPLAY_MODE=3840x2160. This is the same change Belobug #532 makes; it lets Series S stay at 1080p output while FidelityFX serves the upscale.

// apps/victory/src/run.rs, before `let image = if let Some(preset) = fsr {`
if fsr.is_none() && execute && std::env::var_os("VICTORY_PC_FSR").is_some_and(|v| v == "1") {
    let dir = cfg.fidelityfx_dir.as_deref().context(
        "PC FidelityFX requires amd_fidelityfx_upscaler_dx12.dll. Set VICTORY_FIDELITYFX_DIR or [paths].fidelityfx_dir to its folder.",
    )?;
    victory_hle::modules::fidelityfx::use_host_dir(dir)
        .map_err(anyhow::Error::msg)
        .with_context(|| format!("loading the PC FSR upscaler from {}", dir.display()))?;
}

2. Accept any FSR 4.x provider, not only 4.1.2. Under Wine the shim reports 4.1.1 *, so is_fsr_4_1_2() rejects the one provider that is there and FSR 4 never loads. fidelityfx.rs: keep is_fsr_4_1_2 as the first choice, fall back to any 4.<minor>.<patch>[letter] (4.0.2c exists too), and allow it in the context-creation check as well.

fn is_fsr_4(name: &str) -> bool {
    let Some(rest) = name.strip_prefix("4.") else { return false };
    let core = rest.trim_end_matches(" *");
    let parts: Vec<&str> = core.split('.').collect();
    parts.len() == 2
        && parts.iter().all(|part| {
            let digits = part.trim_end_matches(|c: char| c.is_ascii_alphabetic());
            !digits.is_empty() && digits.chars().all(|c| c.is_ascii_digit())
        })
}

What it ran as here. RX 7600 XT 8 GB (RDNA3), Mesa 27.0.0-devel (RADV), Wine 11.22, kernel 7.3.5, 30 GB RAM. FSR4_UPGRADE=1, DXIL_SPIRV_CONFIG=wmma_rdna3_workaround, VICTORY_UPSCALER=7, VICTORY_FIDELITYFX_DIR with the Redstone SDK DLLs, and amdxc64.dll (Proton 11.0) plus amdxcffx64.dll (Proton Hotfix) in system32.

FidelityFX: selected PC upscaler version="4.1.1 *"
FidelityFX: upscaler context on the host provider="4.1.1 *" render=[1280, 720] output=[1920, 1080]

Frame: 76 ms median in a 7,659-draw scene, 32 ms of it on the GPU, about 4 ms more than the title's own upscaler; no device loss in the run.

For whoever tries the other variant: int8 4.0.2c loads too (version="4.0.2c") but fills the frame with white sparkle noise on this card; official 4.1.1 is clean. Neither amd_fidelityfx_upscaler_dx12.dll shipped by STALKER 2 (4.0.2) nor Forza Horizon 6 (4.0.3) is accepted in place of the driver's amdxcffx64.dll — the shim needs that one.

If this is welcome here I can send it as a separate PR against the branch; it is the two hunks above and nothing else.

<!-- greyfinch-sync:avatarmanz/VIctory-7900XTX:comment:7221313257 --> Imported from [avatarmanz/VIctory-7900XTX](https://github.com/avatarmanz/VIctory-7900XTX/pull/440#issuecomment-7221313257). Originally posted by [YaBulochka](https://github.com/YaBulochka) on 2026-11-27T14:51:20Z. --- FSR 4 runs under Wine on RDNA3 at the title's own resolution with two small changes. Both are in this branch's own code, no Windows behaviour changes. **1. `VICTORY_PC_FSR=1`: load the PC provider without the 4K preset.** Today `use_host_dir` is only called under `-Fsr4K`, which also forces `VICTORY_DISPLAY_MODE=3840x2160`. This is the same change Belobug #532 makes; it lets Series S stay at 1080p output while FidelityFX serves the upscale. ```rust // apps/victory/src/run.rs, before `let image = if let Some(preset) = fsr {` if fsr.is_none() && execute && std::env::var_os("VICTORY_PC_FSR").is_some_and(|v| v == "1") { let dir = cfg.fidelityfx_dir.as_deref().context( "PC FidelityFX requires amd_fidelityfx_upscaler_dx12.dll. Set VICTORY_FIDELITYFX_DIR or [paths].fidelityfx_dir to its folder.", )?; victory_hle::modules::fidelityfx::use_host_dir(dir) .map_err(anyhow::Error::msg) .with_context(|| format!("loading the PC FSR upscaler from {}", dir.display()))?; } ``` **2. Accept any FSR 4.x provider, not only 4.1.2.** Under Wine the shim reports `4.1.1 *`, so `is_fsr_4_1_2()` rejects the one provider that is there and FSR 4 never loads. `fidelityfx.rs`: keep `is_fsr_4_1_2` as the first choice, fall back to any `4.<minor>.<patch>[letter]` (`4.0.2c` exists too), and allow it in the context-creation check as well. ```rust fn is_fsr_4(name: &str) -> bool { let Some(rest) = name.strip_prefix("4.") else { return false }; let core = rest.trim_end_matches(" *"); let parts: Vec<&str> = core.split('.').collect(); parts.len() == 2 && parts.iter().all(|part| { let digits = part.trim_end_matches(|c: char| c.is_ascii_alphabetic()); !digits.is_empty() && digits.chars().all(|c| c.is_ascii_digit()) }) } ``` **What it ran as here.** RX 7600 XT 8 GB (RDNA3), Mesa 27.0.0-devel (RADV), Wine 11.22, kernel 7.3.5, 30 GB RAM. `FSR4_UPGRADE=1`, `DXIL_SPIRV_CONFIG=wmma_rdna3_workaround`, `VICTORY_UPSCALER=7`, `VICTORY_FIDELITYFX_DIR` with the Redstone SDK DLLs, and `amdxc64.dll` (Proton 11.0) plus `amdxcffx64.dll` (Proton Hotfix) in `system32`. ``` FidelityFX: selected PC upscaler version="4.1.1 *" FidelityFX: upscaler context on the host provider="4.1.1 *" render=[1280, 720] output=[1920, 1080] ``` Frame: 76 ms median in a 7,659-draw scene, 32 ms of it on the GPU, about 4 ms more than the title's own upscaler; no device loss in the run. For whoever tries the other variant: int8 `4.0.2c` loads too (`version="4.0.2c"`) but fills the frame with white sparkle noise on this card; official `4.1.1` is clean. Neither `amd_fidelityfx_upscaler_dx12.dll` shipped by STALKER 2 (4.0.2) nor Forza Horizon 6 (4.0.3) is accepted in place of the driver's `amdxcffx64.dll` — the shim needs that one. If this is welcome here I can send it as a separate PR against the branch; it is the two hunks above and nothing else.
ntgata1-dotcom commented 2026-11-27 15:06:56 +00:00 (Migrated from github.com)

Imported from avatarmanz/VIctory-7900XTX. Originally posted by ntgata1-dotcom on 2026-11-27T15:06:56Z.


On RDNA 4: RX 9070 XT, Arch Linux, this PR at deebee8

A second card for this PR, beside the RX 7900 GRE.

  • RX 9070 XT 16 GB, Ryzen 9 7900X, 32 GB, Arch Linux (kernel 7.3.5), Mesa RADV 26.3.1
  • Proton Experimental experimental-11.0-20261112 (vkd3d-proton 3.2.0), Microsoft's 64-bit d3dcompiler_47.dll
  • diag build cross-built with cargo-xwin; shaders translated ahead with play.sh --cmd shaders (25,790 in the cache, 195 do not translate)
  • --windowed --no-hud, Enter pressed by --start

Frame times are from the 5-second log lines of world frames in the first scene, grouped by draws a frame:

Launch 2,500+ draws 500-2,500 draws
play.sh --start, first launch (empty pipeline cache) 63.9 ms (15.6 fps), 32 samples 47.0 ms (21.3 fps), 15 samples
play-1080p.sh, second launch 36.2 ms (27.6 fps), 35 samples (p10 27.0, p90 62.1) 26.3 ms (38 fps), 16 samples

The second launch's figures leave out its first ~25 s in the world. Frames there took ~400 ms while the VICTORY_PORT_CBV set's shaders were translated, as the script's comment says. After that, one 5-second window came out at 301 ms. These weren't measured like yours (seconds 140-240 of scripted runs), so they don't compare directly with your 27.1 ms.

What I saw:

  • No crash and no GPU reset in either launch (5 and 5.5 minutes).
  • In the second launch the picture looked right apart from the mouths.
  • Mouths don't move when people speak, in both launches. That's item 11 in docs/linux-wine.md, so it isn't specific to RDNA 3.

AI-assisted (Claude Code). Measured on my own machine; no game data in this comment.

<!-- greyfinch-sync:avatarmanz/VIctory-7900XTX:comment:7221643405 --> Imported from [avatarmanz/VIctory-7900XTX](https://github.com/avatarmanz/VIctory-7900XTX/pull/440#issuecomment-7221643405). Originally posted by [ntgata1-dotcom](https://github.com/ntgata1-dotcom) on 2026-11-27T15:06:56Z. --- **On RDNA 4: RX 9070 XT, Arch Linux, this PR at `deebee8`** A second card for this PR, beside the RX 7900 GRE. - RX 9070 XT 16 GB, Ryzen 9 7900X, 32 GB, Arch Linux (kernel 7.3.5), Mesa RADV 26.3.1 - Proton Experimental `experimental-11.0-20261112` (vkd3d-proton 3.2.0), Microsoft's 64-bit `d3dcompiler_47.dll` - `diag` build cross-built with cargo-xwin; shaders translated ahead with `play.sh --cmd shaders` (25,790 in the cache, 195 do not translate) - `--windowed --no-hud`, Enter pressed by `--start` Frame times are from the 5-second log lines of world frames in the first scene, grouped by draws a frame: | Launch | 2,500+ draws | 500-2,500 draws | |---|---|---| | `play.sh --start`, first launch (empty pipeline cache) | 63.9 ms (15.6 fps), 32 samples | 47.0 ms (21.3 fps), 15 samples | | `play-1080p.sh`, second launch | **36.2 ms (27.6 fps)**, 35 samples (p10 27.0, p90 62.1) | **26.3 ms (38 fps)**, 16 samples | The second launch's figures leave out its first ~25 s in the world. Frames there took ~400 ms while the `VICTORY_PORT_CBV` set's shaders were translated, as the script's comment says. After that, one 5-second window came out at 301 ms. These weren't measured like yours (seconds 140-240 of scripted runs), so they don't compare directly with your 27.1 ms. What I saw: - No crash and no GPU reset in either launch (5 and 5.5 minutes). - In the second launch the picture looked right apart from the mouths. - **Mouths don't move when people speak, in both launches.** That's item 11 in `docs/linux-wine.md`, so it isn't specific to RDNA 3. *AI-assisted (Claude Code). Measured on my own machine; no game data in this comment.*
YaBulochka commented 2026-11-27 15:11:59 +00:00 (Migrated from github.com)

Imported from avatarmanz/VIctory-7900XTX. Originally posted by YaBulochka on 2026-11-27T15:11:59Z.


@borntofrag34 answering (b): the 43 ms was the three PORT_* alone — PORT_CONSTANTS=1, PORT_DESCRIPTORS=1, PORT_CBV=1, no PORT_GUARD, no PORT_JOURNAL. That is exactly play-1080p.sh's set, and it ran 300 s on the 7600 XT.

The int3 (0x80000003 at +0x31f50, 4 s in) came when I added VICTORY_PORT_GUARD=1 and VICTORY_PORT_JOURNAL=1 on top; and separately once with the three PORT_* and CARD_BUFFERS_MIN_KB=64 in a build that also had #434 merged. Since then I took #446 (clear stale constant-buffer descriptors) into the tree, and with it PORT_CONSTANTS=1 ran 7 minutes and then a 30-minute session without the title's int3 or a device loss, at 43 ms in a light scene. So I cannot tie the int3 to PORT_CONSTANTS alone; guard/journal are the only reproducible part.

On VICTORY_WC_NO_BACK=1 from #477: thank you for measuring it. That is the one I want next — our copy-back is 17-19 ms a frame for 7-10 MB, the biggest CPU item left here.

One more data point for the ring timeout: mine are GPUVM fault on a title VA right after vkd3d_memory_transfer_queue_flush_locked: Clearing allocation 0: 65536, then comp_1.x.0 ring timeout -> MES failed to respond to msg=SUSPEND. If deebee8 is the bounds guard for card-steps copies, that fits: we run VICTORY_CARD_STEPS=2 in the preset. I will rebase onto deebee8 and report whether the faults stop.

<!-- greyfinch-sync:avatarmanz/VIctory-7900XTX:comment:7221755403 --> Imported from [avatarmanz/VIctory-7900XTX](https://github.com/avatarmanz/VIctory-7900XTX/pull/440#issuecomment-7221755403). Originally posted by [YaBulochka](https://github.com/YaBulochka) on 2026-11-27T15:11:59Z. --- @borntofrag34 answering (b): the 43 ms was the **three `PORT_*` alone** — `PORT_CONSTANTS=1`, `PORT_DESCRIPTORS=1`, `PORT_CBV=1`, no `PORT_GUARD`, no `PORT_JOURNAL`. That is exactly `play-1080p.sh`'s set, and it ran 300 s on the 7600 XT. The `int3` (`0x80000003` at `+0x31f50`, 4 s in) came when I added `VICTORY_PORT_GUARD=1` and `VICTORY_PORT_JOURNAL=1` on top; and separately once with the three `PORT_*` and `CARD_BUFFERS_MIN_KB=64` in a build that also had #434 merged. Since then I took #446 (clear stale constant-buffer descriptors) into the tree, and with it `PORT_CONSTANTS=1` ran 7 minutes and then a 30-minute session without the title's `int3` or a device loss, at 43 ms in a light scene. So I cannot tie the `int3` to `PORT_CONSTANTS` alone; guard/journal are the only reproducible part. On `VICTORY_WC_NO_BACK=1` from #477: thank you for measuring it. That is the one I want next — our copy-back is 17-19 ms a frame for 7-10 MB, the biggest CPU item left here. One more data point for the ring timeout: mine are `GPUVM fault` on a title VA right after `vkd3d_memory_transfer_queue_flush_locked: Clearing allocation 0: 65536`, then `comp_1.x.0 ring timeout` -> `MES failed to respond to msg=SUSPEND`. If `deebee8` is the bounds guard for card-steps copies, that fits: we run `VICTORY_CARD_STEPS=2` in the preset. I will rebase onto `deebee8` and report whether the faults stop.
borntofrag34 commented 2026-11-27 15:15:31 +00:00 (Migrated from github.com)

Imported from avatarmanz/VIctory-7900XTX. Originally posted by borntofrag34 on 2026-11-27T15:15:31Z.


@ntgata1-dotcom thank you for the RDNA 4 run: a second card with no crash and no GPU reset, 27.6 fps in the heavier frames at 1080p, is what this branch needed. The mouths are fixed since then. e47cce0 (in this PR at 542d441) brings #114 together with the half views of fxceless#927 and the raw typed loads, the three Fedalv described for the 7900 XTX. On the RX 7900 GRE the lips now follow the lines and close between them, at no frame cost. If you rebuild from the current head, your translations will be redone once (the translator version changed).

@YaBulochka yes, please send it as a separate PR against linux-wine-pr. VICTORY_PC_FSR=1 and accepting any FSR 4.x provider are both small, off by default, and the Wine shim's "4.1.1 *" is the case we hit here too (on the RX 7900 GRE the SDK offered "4.1.1 *, 3.1.5, 2.3.4" and the title stopped at start). Your notes on the 4.0.2c int8 path and on which amdxcffx64.dll the shim needs would be worth a line in docs/linux-wine.md in the same PR.

🤖 Generated with Claude Code

<!-- greyfinch-sync:avatarmanz/VIctory-7900XTX:comment:7221830996 --> Imported from [avatarmanz/VIctory-7900XTX](https://github.com/avatarmanz/VIctory-7900XTX/pull/440#issuecomment-7221830996). Originally posted by [borntofrag34](https://github.com/borntofrag34) on 2026-11-27T15:15:31Z. --- @ntgata1-dotcom thank you for the RDNA 4 run: a second card with no crash and no GPU reset, 27.6 fps in the heavier frames at 1080p, is what this branch needed. The mouths are fixed since then. `e47cce0` (in this PR at `542d441`) brings #114 together with the half views of fxceless#927 and the raw typed loads, the three Fedalv described for the 7900 XTX. On the RX 7900 GRE the lips now follow the lines and close between them, at no frame cost. If you rebuild from the current head, your translations will be redone once (the translator version changed). @YaBulochka yes, please send it as a separate PR against `linux-wine-pr`. `VICTORY_PC_FSR=1` and accepting any FSR 4.x provider are both small, off by default, and the Wine shim's "4.1.1 *" is the case we hit here too (on the RX 7900 GRE the SDK offered "4.1.1 *, 3.1.5, 2.3.4" and the title stopped at start). Your notes on the `4.0.2c` int8 path and on which `amdxcffx64.dll` the shim needs would be worth a line in `docs/linux-wine.md` in the same PR. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
borntofrag34 commented 2026-11-27 15:49:45 +00:00 (Migrated from github.com)

Imported from avatarmanz/VIctory-7900XTX. Originally posted by borntofrag34 on 2026-11-27T15:49:45Z.


Two additions to this branch (now at 1d4c13d), both set by scripts/play-1080p.sh:

VICTORY_WC_NO_BACK=1 is in now: the seven commits of Belobug/VIctory-Belobug-AMD#477 by @icecreammule277-dot, picked as they are with their author. Thank you for it: it is the largest single gain measured on this branch. What shaders write into title memory the title asked for as write-combined stays on the card instead of being copied back.

this branch, RX 7900 GRE, RADV 26.3.1, 1920x1080, 200 s read from second 100 ms a frame the submitting thread works
before (3721030) 38.0 33.5 ms
with VICTORY_WC_NO_BACK=1 33.8 27.0 ms

One run each, in the opening cutscene; the frames kept of the run with it are whole pictures, faces too. @YaBulochka, this is the one you asked for first: on your card the copy back was the largest item, so the gain there may well be larger than here.

VICTORY_CARD_TOUCHED=1 is new: at every submission (28 a frame) the layer asked each of the 3,450 copies it keeps in the card's memory whether it had changed, where some 130 had. It now asks only the ones marked as changed. Found with VICTORY_PROFILE under Wine, where that one function was 6.9 % of the submitting thread's samples. By turns of 10 s in one run: its time for these copies 2.60 -> 1.30 ms a frame. Small, and unset it changes nothing.

Also in docs/linux-wine.md (items 12 to 14): what was tried the same day and not kept (the Series S profile, two presents in the line, joined parts sent in one call), and that a thread priority asked above normal changes nothing on a default Linux setup, since Wine may not raise one (Max nice priority 0).

Thanks as well to @UwUCammie for the two fixes merged earlier (the card-step bounds and the pipeline workers' handle groups), and to @Fedalv for #351.

🤖 Generated with Claude Code

<!-- greyfinch-sync:avatarmanz/VIctory-7900XTX:comment:7222531308 --> Imported from [avatarmanz/VIctory-7900XTX](https://github.com/avatarmanz/VIctory-7900XTX/pull/440#issuecomment-7222531308). Originally posted by [borntofrag34](https://github.com/borntofrag34) on 2026-11-27T15:49:45Z. --- Two additions to this branch (now at 1d4c13d), both set by `scripts/play-1080p.sh`: **`VICTORY_WC_NO_BACK=1`** is in now: the seven commits of Belobug/VIctory-Belobug-AMD#477 by @icecreammule277-dot, picked as they are with their author. Thank you for it: it is the largest single gain measured on this branch. What shaders write into title memory the title asked for as write-combined stays on the card instead of being copied back. | this branch, RX 7900 GRE, RADV 26.3.1, 1920x1080, 200 s read from second 100 | ms a frame | the submitting thread works | |---|---|---| | before (3721030) | 38.0 | 33.5 ms | | with `VICTORY_WC_NO_BACK=1` | 33.8 | 27.0 ms | One run each, in the opening cutscene; the frames kept of the run with it are whole pictures, faces too. @YaBulochka, this is the one you asked for first: on your card the copy back was the largest item, so the gain there may well be larger than here. **`VICTORY_CARD_TOUCHED=1`** is new: at every submission (28 a frame) the layer asked each of the 3,450 copies it keeps in the card's memory whether it had changed, where some 130 had. It now asks only the ones marked as changed. Found with `VICTORY_PROFILE` under Wine, where that one function was 6.9 % of the submitting thread's samples. By turns of 10 s in one run: its time for these copies 2.60 -> 1.30 ms a frame. Small, and unset it changes nothing. Also in `docs/linux-wine.md` (items 12 to 14): what was tried the same day and not kept (the Series S profile, two presents in the line, joined parts sent in one call), and that a thread priority asked above normal changes nothing on a default Linux setup, since Wine may not raise one (`Max nice priority 0`). Thanks as well to @UwUCammie for the two fixes merged earlier (the card-step bounds and the pipeline workers' handle groups), and to @Fedalv for #351. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
UwUCammie commented 2026-11-27 16:07:42 +00:00 (Migrated from github.com)

Imported from avatarmanz/VIctory-7900XTX. Originally posted by UwUCammie on 2026-11-27T16:07:42Z.


I pulled 1d4c13d into my 720p benchmark build. The dirty-range test passed with VICTORY_CARD_TOUCHED off and on on the RX 7900 XT (RADV 26.3.1, Wine 11.22, vkd3d-proton 71cae091). It checks writes made before registration, overlapping ranges, and writes made after a scan has drained them.

I’m measuring this one switch first, with write-back on in both runs. Both will start from a fresh story and empty graphics caches and count every stall in the first 300 seconds. Test source

<!-- greyfinch-sync:avatarmanz/VIctory-7900XTX:comment:7222889474 --> Imported from [avatarmanz/VIctory-7900XTX](https://github.com/avatarmanz/VIctory-7900XTX/pull/440#issuecomment-7222889474). Originally posted by [UwUCammie](https://github.com/UwUCammie) on 2026-11-27T16:07:42Z. --- I pulled `1d4c13d` into my 720p benchmark build. The dirty-range test passed with `VICTORY_CARD_TOUCHED` off and on on the RX 7900 XT (RADV 26.3.1, Wine 11.22, vkd3d-proton `71cae091`). It checks writes made before registration, overlapping ranges, and writes made after a scan has drained them. I’m measuring this one switch first, with write-back on in both runs. Both will start from a fresh story and empty graphics caches and count every stall in the first 300 seconds. [Test source](https://github.com/UwUCammie/VIctory-7900XTX/commit/8687cd22)
borntofrag34 commented 2026-11-27 16:09:19 +00:00 (Migrated from github.com)

Imported from avatarmanz/VIctory-7900XTX. Originally posted by borntofrag34 on 2026-11-27T16:09:19Z.


A correction to my comment above, about the table.

The two figures in it (38.0 and 33.8 ms a frame) are both from runs that also kept every eighth frame of the world as a picture (VICTORY_CAPTURE_WORLD=1, to look at faces afterwards). Keeping them costs several ms a frame, so both levels are too high. The difference between them, about 4 ms for VICTORY_WC_NO_BACK=1, stands: both runs paid the same cost.

Without keeping frames, this branch at 1d4c13d, 200 s read from second 100, two runs: 31.1 and 27.0 ms a frame (32 to 37 frames a second), the submitting thread working 22.2 and 19.1 ms. That is the level to expect on an RX 7900 GRE in the opening cutscene.

The branch's docs/linux-wine.md said for a few minutes that it was 6 ms slower than my Linux branch without main: wrong, the same mistake, corrected in 89d93e2. In turn and without kept frames the two are not told apart (26.6 and 27.9 ms there).

🤖 Generated with Claude Code

<!-- greyfinch-sync:avatarmanz/VIctory-7900XTX:comment:7222921556 --> Imported from [avatarmanz/VIctory-7900XTX](https://github.com/avatarmanz/VIctory-7900XTX/pull/440#issuecomment-7222921556). Originally posted by [borntofrag34](https://github.com/borntofrag34) on 2026-11-27T16:09:19Z. --- A correction to my comment above, about the table. The two figures in it (38.0 and 33.8 ms a frame) are both from runs that also kept every eighth frame of the world as a picture (`VICTORY_CAPTURE_WORLD=1`, to look at faces afterwards). Keeping them costs several ms a frame, so both levels are too high. The difference between them, about 4 ms for `VICTORY_WC_NO_BACK=1`, stands: both runs paid the same cost. Without keeping frames, this branch at 1d4c13d, 200 s read from second 100, two runs: 31.1 and 27.0 ms a frame (32 to 37 frames a second), the submitting thread working 22.2 and 19.1 ms. That is the level to expect on an RX 7900 GRE in the opening cutscene. The branch's `docs/linux-wine.md` said for a few minutes that it was 6 ms slower than my Linux branch without main: wrong, the same mistake, corrected in 89d93e2. In turn and without kept frames the two are not told apart (26.6 and 27.9 ms there). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
YaBulochka commented 2026-11-27 16:20:01 +00:00 (Migrated from github.com)

Imported from avatarmanz/VIctory-7900XTX. Originally posted by YaBulochka on 2026-11-27T16:20:01Z.


A follow-up on FSR 4 with the PC provider at the title's resolution, because I think I found why it looks noisy.

The host dispatch gets no jitter and no masks. From the log of a run with VICTORY_PC_FSR=1, FSR 4.1.1 on RDNA3:

FidelityFX 4 recorded the title's temporal dispatch
  render=[1280, 720] output=[1920, 1080]
  backing_extents=[Some((1280,720)), Some((1280,720)), Some((1280,720)), None, None, None, Some((1920,1080))]
  jitter=[-0.0, -0.0]
  motion_vector_scale=[1.0, 1.0]
  first upscaling, host formats of its textures formats=[10, 19, 34, 67]

So colour, depth and motion vectors arrive, but jitter is 0.0 and three resource slots (exposure, reactive mask, transparency mask) are absent. FSR 4 is a temporal ML upscaler: with a zero jitter it never gets a second sample, and without the transparency/reactive mask it treats additive particles and transparent surfaces as solid, stable geometry. Its history then carries noise instead of resolving it.

What that looks like in game: bright red-white "sparkles" over the car body and glass whenever the car's own dust/smoke particles are on screen (the brake-light reflection is just what makes them red). The same drive with VICTORY_UPSCALER=6 (title's own upscaler) is clean, frame for frame. The pesticide spray from the plane is clean even with FSR 4, so it is not every particle, only the ones that pass through the upscaler's history.

Two likely causes, and I cannot tell which without the title's side:

  1. the console FidelityFX call this build makes really does pass zero jitter and no masks (its TAA may own the jitter, and the Xbox entry point may not fill exposure/reactive/transparency at this title's settings), or
  2. our HLE maps the console's resource slots to the PC provider's slots wrongly, so masks that the title does pass land in None.

Question: is the slot order in DispatchUpscale::resources known to match the console's ffxDispatch order for this FidelityFX version, and is jitter expected to be the title's TAA jitter or the upscaler's own? If you tell me which, I can dump the raw dispatch (jitter, motion scale, and the formats of all seven slots) for a few frames with particles on screen.

Until then UPSCALER=6 is the honest setting on this card: FSR 4 is sharper but leaves the particles noisy.

<!-- greyfinch-sync:avatarmanz/VIctory-7900XTX:comment:7223134906 --> Imported from [avatarmanz/VIctory-7900XTX](https://github.com/avatarmanz/VIctory-7900XTX/pull/440#issuecomment-7223134906). Originally posted by [YaBulochka](https://github.com/YaBulochka) on 2026-11-27T16:20:01Z. --- A follow-up on FSR 4 with the PC provider at the title's resolution, because I think I found why it looks noisy. **The host dispatch gets no jitter and no masks.** From the log of a run with `VICTORY_PC_FSR=1`, FSR 4.1.1 on RDNA3: ``` FidelityFX 4 recorded the title's temporal dispatch render=[1280, 720] output=[1920, 1080] backing_extents=[Some((1280,720)), Some((1280,720)), Some((1280,720)), None, None, None, Some((1920,1080))] jitter=[-0.0, -0.0] motion_vector_scale=[1.0, 1.0] first upscaling, host formats of its textures formats=[10, 19, 34, 67] ``` So colour, depth and motion vectors arrive, but `jitter` is **0.0** and three resource slots (exposure, reactive mask, transparency mask) are **absent**. FSR 4 is a temporal ML upscaler: with a zero jitter it never gets a second sample, and without the transparency/reactive mask it treats additive particles and transparent surfaces as solid, stable geometry. Its history then carries noise instead of resolving it. **What that looks like in game:** bright red-white "sparkles" over the car body and glass whenever the car's own dust/smoke particles are on screen (the brake-light reflection is just what makes them red). The same drive with `VICTORY_UPSCALER=6` (title's own upscaler) is clean, frame for frame. The pesticide spray from the plane is clean even with FSR 4, so it is not every particle, only the ones that pass through the upscaler's history. Two likely causes, and I cannot tell which without the title's side: 1. the console FidelityFX call this build makes really does pass zero jitter and no masks (its TAA may own the jitter, and the Xbox entry point may not fill exposure/reactive/transparency at this title's settings), or 2. our HLE maps the console's resource slots to the PC provider's slots wrongly, so masks that the title does pass land in `None`. Question: is the slot order in `DispatchUpscale::resources` known to match the console's `ffxDispatch` order for this FidelityFX version, and is `jitter` expected to be the title's TAA jitter or the upscaler's own? If you tell me which, I can dump the raw dispatch (jitter, motion scale, and the formats of all seven slots) for a few frames with particles on screen. Until then `UPSCALER=6` is the honest setting on this card: FSR 4 is sharper but leaves the particles noisy.
UwUCammie commented 2026-11-27 16:27:48 +00:00 (Migrated from github.com)

Imported from avatarmanz/VIctory-7900XTX. Originally posted by UwUCammie on 2026-11-27T16:27:48Z.


The shim uses the same seven-slot order as the public PC header. On a dispatch the provider accepts, it replaces each non-null texture with its host equivalent in the same slot. If an input is present but can’t be resolved, the shim returns an error. So those Nones mean the shim read nulls at those offsets. The bridge still assumes the console layout matches the PC layout there.

Jitter is copied from the incoming dispatch. The AMD SDK expects the offset already applied when rendering the input frame. The current log only shows the first successful dispatch per context, so one zero sample doesn’t tell us what happened during the drive. A short summary during the smoke would help: how many frames had nonzero jitter, and how many supplied exposure, reactive, or transparency inputs. Presence counts are enough. PC header · AMD jitter guidance

<!-- greyfinch-sync:avatarmanz/VIctory-7900XTX:comment:7223289860 --> Imported from [avatarmanz/VIctory-7900XTX](https://github.com/avatarmanz/VIctory-7900XTX/pull/440#issuecomment-7223289860). Originally posted by [UwUCammie](https://github.com/UwUCammie) on 2026-11-27T16:27:48Z. --- The shim uses the same seven-slot order as the public PC header. On a dispatch the provider accepts, it replaces each non-null texture with its host equivalent in the same slot. If an input is present but can’t be resolved, the shim returns an error. So those `None`s mean the shim read nulls at those offsets. The bridge still assumes the console layout matches the PC layout there. Jitter is copied from the incoming dispatch. The AMD SDK expects the offset already applied when rendering the input frame. The current log only shows the first successful dispatch per context, so one zero sample doesn’t tell us what happened during the drive. A short summary during the smoke would help: how many frames had nonzero jitter, and how many supplied exposure, reactive, or transparency inputs. Presence counts are enough. [PC header](https://github.com/GPUOpen-LibrariesAndSDKs/FidelityFX-SDK/blob/main/Kits/FidelityFX/upscalers/include/ffx_upscale.h) · [AMD jitter guidance](https://github.com/GPUOpen-LibrariesAndSDKs/FidelityFX-SDK/blob/main/Kits/FidelityFX/docs/techniques/super-resolution-upscaler.md#jittering)
YaBulochka commented 2026-11-27 16:37:18 +00:00 (Migrated from github.com)

Imported from avatarmanz/VIctory-7900XTX. Originally posted by YaBulochka on 2026-11-27T16:37:18Z.


Correction to my own report above, with the summary they asked for: the jitter is fine. The jitter=[-0.0, -0.0] I quoted was only the first dispatch (the log prints one line per context). I added a summary every 600 dispatches and among a normal drive:

FidelityFX: jitter over the last dispatches (x,y): 0 is no offset at all
  dispatches=600  moving=564  largest=0.490
  dispatches=600  moving=567  largest=0.490

So ~94 % of dispatches carry a sub-pixel offset, up to 0.49 px — the title does apply jitter and we pass it through. Scratch point 1 of my previous comment.

What stays is the masks: exposure, reactive and transparency are None in the dispatch here, so the console call really passes nulls at those offsets (as @UwUCammie said, the shim only sees nulls). And the behaviour fits that: with the same null masks,

  • FSR 4.1.1 sparkles on additive particles (dust/smoke from the car) — red-white dots that stay in the history; VICTORY_UPSCALER=6 is clean frame for frame;
  • FSR 3.1.5 (same provider path, VICTORY_FSR_VERSION=3.1.5) is clean on the same drive, just softer. It also gets null masks, so the ML upscaler is the sensitive one.

So the practical split for this title is: FSR 3.1.5 = clean, FSR 4.1.1 = sharper but sparkles on particles, the title's own upscaler = worst of the three but no temporal component at all.

Frame time here (7600 XT, 720p -> 1080p, heavy street): FSR 4.1.1 62-76 ms, FSR 3.1.5 103-106 ms in that spot, so 4.1.1 is also cheaper. Not a controlled comparison yet — different traffic in the scene — but the direction is clear.

If a reactive/transparency mask can be synthesised cheaply (the ambient stand-in already knows which pixels are particles? probably not), FSR 4 might become usable. Otherwise 3.1.5 is the honest default on this card.

The patch that produced the summary is in my fork (asked_version, note_jitter), if you want it in the branch for future FSR work.

<!-- greyfinch-sync:avatarmanz/VIctory-7900XTX:comment:7223474434 --> Imported from [avatarmanz/VIctory-7900XTX](https://github.com/avatarmanz/VIctory-7900XTX/pull/440#issuecomment-7223474434). Originally posted by [YaBulochka](https://github.com/YaBulochka) on 2026-11-27T16:37:18Z. --- Correction to my own report above, with the summary they asked for: **the jitter is fine.** The `jitter=[-0.0, -0.0]` I quoted was only the first dispatch (the log prints one line per context). I added a summary every 600 dispatches and among a normal drive: ``` FidelityFX: jitter over the last dispatches (x,y): 0 is no offset at all dispatches=600 moving=564 largest=0.490 dispatches=600 moving=567 largest=0.490 ``` So ~94 % of dispatches carry a sub-pixel offset, up to 0.49 px — the title does apply jitter and we pass it through. Scratch point 1 of my previous comment. What stays is the masks: exposure, reactive and transparency are `None` in the dispatch here, so the console call really passes nulls at those offsets (as @UwUCammie said, the shim only sees nulls). And the behaviour fits that: with the same null masks, - **FSR 4.1.1** sparkles on additive particles (dust/smoke from the car) — red-white dots that stay in the history; `VICTORY_UPSCALER=6` is clean frame for frame; - **FSR 3.1.5** (same provider path, `VICTORY_FSR_VERSION=3.1.5`) is **clean** on the same drive, just softer. It also gets null masks, so the ML upscaler is the sensitive one. So the practical split for this title is: FSR 3.1.5 = clean, FSR 4.1.1 = sharper but sparkles on particles, the title's own upscaler = worst of the three but no temporal component at all. Frame time here (7600 XT, 720p -> 1080p, heavy street): FSR 4.1.1 62-76 ms, FSR 3.1.5 103-106 ms in that spot, so 4.1.1 is also cheaper. Not a controlled comparison yet — different traffic in the scene — but the direction is clear. If a reactive/transparency mask can be synthesised cheaply (the ambient stand-in already knows which pixels are particles? probably not), FSR 4 might become usable. Otherwise 3.1.5 is the honest default on this card. The patch that produced the summary is in my fork (`asked_version`, `note_jitter`), if you want it in the branch for future FSR work.
UwUCammie commented 2026-11-27 16:49:44 +00:00 (Migrated from github.com)

Imported from avatarmanz/VIctory-7900XTX. Originally posted by UwUCammie on 2026-11-27T16:49:44Z.


Thanks for checking the longer window. The two samples confirm that the shim passes the title’s jitter through during the drive. The clean 3.1.5 result on the same provider path is useful too. I’d keep explicit provider selection separate from generating a reactive mask. AMD’s helper needs both the opaque-only color buffer and the composited color buffer, and this bridge currently receives just one color input. AMD reactive-mask guidance

<!-- greyfinch-sync:avatarmanz/VIctory-7900XTX:comment:7223716603 --> Imported from [avatarmanz/VIctory-7900XTX](https://github.com/avatarmanz/VIctory-7900XTX/pull/440#issuecomment-7223716603). Originally posted by [UwUCammie](https://github.com/UwUCammie) on 2026-11-27T16:49:44Z. --- Thanks for checking the longer window. The two samples confirm that the shim passes the title’s jitter through during the drive. The clean 3.1.5 result on the same provider path is useful too. I’d keep explicit provider selection separate from generating a reactive mask. AMD’s helper needs both the opaque-only color buffer and the composited color buffer, and this bridge currently receives just one color input. [AMD reactive-mask guidance](https://github.com/GPUOpen-LibrariesAndSDKs/FidelityFX-SDK/blob/main/Kits/FidelityFX/docs/techniques/super-resolution-upscaler.md#automatically-generating-reactivity)
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/440:upstream-pr/440'
git switch 'upstream-pr/440'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/440'
git switch 'upstream-pr/440'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/440'
git switch 'upstream-pr/440'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/440'
git switch 'main'
git merge --squash 'upstream-pr/440'
git switch 'main'
git merge --ff-only 'upstream-pr/440'
git switch 'main'
git merge 'upstream-pr/440'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
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.

Reference
avatarmanz/VIctory-7900XTX!440
No description provided.