Linux under Wine: a launcher, 2.3 -> 36 frames a second on an RX 7900 GRE, people's faces #440
No reviewers
Labels
No labels
accessibility
already-solved
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
merged
needs-decision
needs-game-run
needs-rebase
not-merged
nvidia
obsolete
question
security
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/avatarmanz--VIctory-7900XTX!440
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-440"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@borntofrag34 on GitHub · 2026-11-27 08:03 UTC · original
borntofrag34:linux-wine-pr→main· +7752 −327 · 60 files · 72 commits · openVIctory 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 ofplay.ps1(Proton's Wine, vkd3d-proton and DXVK's dxgi in a prefix of their own, Microsoft's d3dcompiler_47),VICTORY_FULLSCREEN,VICTORY_SCREENfor 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'smmap; 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 withVICTORY_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_STACKSand the frame recorder work under Wine;victory replay --pokeand 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
014d52d) into linux-wine: pipeline/make.rs keeps main's guard of the workers beside the watch under Wine and the compute passes' own wait 3cce705107@UwUCammie on GitHub · 2026-11-27 08:33 UTC · original
I tried the Wine profile from
b2bf3d99on an RX 7900 XT with RADV 26.3.1, Wine 11.22 and vkd3d-proton71cae091. 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
@borntofrag34 on GitHub · 2026-11-27 08:34 UTC · original
One more measurement, left out of this pull request because it is another contributor's work:
VICTORY_WC_NO_BACK=1from 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:VICTORY_WC_NO_BACK=1The 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-wineof the fork, with their author kept, for whoever wants to try them.🤖 Generated with Claude Code
@UwUCammie on GitHub · 2026-11-27 08:50 UTC · original
The full cold run finished on the RX 7900 XT. I got 6,579 accepted presents in the first 300 s from launch, or 21.93 FPS. Seconds 140–240 gave 2,006 presents, averaging 20.06 FPS. This was 1280×720 output, with five empty graphics caches, a new story and vkd3d-proton
71cae091.The longest gap was 19.93 s. Thirteen compute waits returned without a pipeline result inside that gap. The opening shot at 85 s showed the man's face, and the driver's skin was missing in the car at 160 and 175 s. Her eyes and teeth drew. The 10,000 ms compute setting was active.
The next run changes only the compute wait to 500 ms. I’ve also staged the separate write-back off/on comparison from your follow-up. Timings and configuration, write-back test branch
@borntofrag34 on GitHub · 2026-11-27 09:00 UTC · original
@UwUCammie you are right, and thank you for measuring it. Reproduced here with every cache empty (the layer's, vkd3d-proton's and Mesa's; RX 7900 GRE, RADV 26.3.1, one run each, 240 s):
VICTORY_COMPUTE_WAIT_MSThe 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 (
1bf01b5on 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
@UwUCammie on GitHub · 2026-11-27 09:01 UTC · original
The 500 ms run reached the car this time. Both faces were missing skin in the front view around 175 s. The driver was also missing skin on the 10 s run, but the passenger’s face rendered there.
The shorter wait got 4,579 presents in the first 200 s versus 3,602, and the longest gap went from 19.93 to 10.93 s. Wait reports that ended without a pipeline result went from 36 to 310. The short run yielded to another build at 209.68 s.
I’m keeping the 10 s budget for the next test and changing only whether small compute pipelines can start at creation. A 1 KiB cutoff restored faces on an earlier build here. Results and test setup
@UwUCammie on GitHub · 2026-11-27 09:13 UTC · original
Thanks for checking it with the vkd3d cache empty. Another 10 s run here had both faces in the same car view with early compilation disabled, so the cold skin failure varies between runs. I’m keeping the 10 s budget in the 0 vs 1 KiB early-compile comparison so it changes one setting.
I also picked up the draw-count pacing commit separately. I’ll check the opening cadence, since a successful present can repeat a video frame. Control and pacing notes
@UwUCammie on GitHub · 2026-11-27 09:30 UTC · original
The 2.5 KiB cutoff got the facial-deformation pipeline ready at 2.54 s here. Both faces rendered in the car view where a repeat with early compilation off lost the driver's skin. The first 220 s had 4,143 presents with the cutoff and 3,853 without it. The longest gap was still about 20 s.
The enabled run logged device removal at 261.92 s, 658 ms before the overlap marker. I’ve kept it out of the full cold results and updated the launcher to record those two events in order. I’m keeping the same cutoff for a 2 s wait trial. Test results and setup
@YaBulochka on GitHub · 2026-11-27 09:35 UTC · original
Tested
linux-wine-pr(b62290c) on the smallest card I have, and your preset holds: 43 ms median (24.8 fps average, p10 30 ms = 33 fps) at 1280x720 on an 8 GB card.Environment: RX 7600 XT 8 GB (RDNA3), Mesa 27.0.0-devel (RADV), Wine 11.22 (system, shared prefix), kernel 7.3.5, 30 GB RAM, Series S profile, 1280x720, built for
x86_64-pc-windows-gnu.VICTORY_UPSCALER=6VICTORY_RENDER_SCALE=1.0play-1080p.shpreset (CONSTANTS, DESCRIPTORS, CBV, FRAME_INTERVAL_MS=16.667 + DRAWS=500, CARD_BUFFERS_MIN_KB=64, JOIN_PARTS_DRAWS=500)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:
FSR4 configuration mismatch: maxUpscaleSize must be 1920x1080; received 1280x720and then dies with0xc0000094at+0x28f03e827 s in — the divide you describe inresolution.rs.VICTORY_UPSCALER=6is what keeps 720p alive here.VICTORY_PORT_CONSTANTS=1makes the title hit its ownint3(0x80000003) 4 s in, before the world, when it is on together withPORT_DESCRIPTORS/PORT_CBV(andGUARD/JOURNAL).VICTORY_PORT_GUARD=1+VICTORY_PORT_JOURNAL=1on 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.VICTORY_RENDER_SCALE=1.0costs 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_MSworks here.First configuration on this card that goes past 30 fps in the dips. Thank you.
@borntofrag34 on GitHub · 2026-11-27 09:46 UTC · original
@YaBulochka thank you for the run on 8 GB, and for the list.
One point I cannot read for sure, (b): the table gives 43 ms with
play-1080p.sh's settings, which holdVICTORY_PORT_CONSTANTS=1withVICTORY_PORT_DESCRIPTORS=1andVICTORY_PORT_CBV=1, and the note saysVICTORY_PORT_CONSTANTS=1ends on the title's own int3 (0x80000003) at 4 s. Which of these is it?VICTORY_PORT_*alone (the launcher as it is): runs, 43 ms;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
@UwUCammie on GitHub · 2026-11-27 09:47 UTC · original
@YaBulochka Was the vkd3d-proton cache empty at the start of each run, and did the 300 s start at launch? My full 720p result was 21.93 accepted presents/s on an RX 7900 XT, Series X, counting from launch with five empty caches. The mmap-backed constants path was active here with GUARD and JOURNAL left off.
I also tried a 2 s compute wait with the 2.5 KiB early-compile cutoff. In the second run both faces had skin in the car, and the longest gap over the first 245 s went from 17.83 s to 11.92 s. P99 rose from 223 to 294 ms, and 125 waits ended without a pipeline result, up from 36. Both runs yielded to a parallel build before 300 s. Settings and results
@UwUCammie on GitHub · 2026-11-27 10:00 UTC · original
One follow-up on the 2 s trial. The 11.92 s present gap still overlapped 11.91 s of the separate screen-pass waits, and only 2.99 s of reported compute waits. One screen pipeline repeatedly hit the 10 s limit across three runs. Both stages together fit within 6 KiB.
I’ve put an opt-in early-compile test in #450. It leaves the 10 s screen wait in place and uses the regular early queue. I’ll compare it with early screen compilation off using the same cold 720p executable. Wait breakdown
@borntofrag34 on GitHub · 2026-11-27 10:29 UTC · original
Added #351's fix to this branch (
deebee8, Fedalv's commita803fd5picked with its author kept): with card steps on, a copy that reaches past its buffer is left out instead of recorded.play.shturns 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
@UwUCammie on GitHub · 2026-11-27 10:36 UTC · original
The write-back control lost the device at 264.32 s with write-back disabled. The guard recorded no overlap. The renderer returned DXGI_ERROR_DEVICE_REMOVED and vkd3d-proton logged VK_ERROR_DEVICE_LOST, as it did in the earlier 261.92 s run on the early-compute build. That leaves the failing command unknown.
I’ve held the write-back pair and started a separate probe on the same release executable with the driver’s fault reporting and breadcrumbs requested. The probe is excluded from timing. Reproduction notes
@UwUCammie on GitHub · 2026-11-27 10:48 UTC · original
I tried a follow-up to the bounds guard. If recording skips a read, its write and the planner’s taken-step bookkeeping can still go through. The follow-up checks the full batch before taking any deferred steps, so an invalid range leaves the submission on the existing waiting path. The hardware flight test passed on RX 7900 XT with RADV 26.3.1 and
71cae091, including a mixed valid and invalid batch. Follow-up against linux-wine-prThe first driver fault probe yielded at 202.54 s. The patched cold control is being built with the same write-back-disabled settings. Results so far
@UwUCammie on GitHub · 2026-11-27 11:16 UTC · original
I found a separate worker recovery bug in the current Wine branch. With 64 general workers and two priority workers, the watcher sent 66 handles to one wait and exited when Wine rejected it. The regression reproduces the failure on Wine 11.22 and verifies both wait groups with all 66 handles. I opened the fix against your Wine branch. Follow-up PR
@YaBulochka on GitHub · 2026-11-27 12:49 UTC · original
VICTORY_PORT_CONSTANTS=1does 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-prb62290c+ #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.PORT_CONSTANTS=0,PORT_CBV=0,CARD_BUFFERS_MIN_KB=64PORT_CONSTANTS=1With
PORT_CONSTANTS=1:int3(0x80000003) atvictory-image-...dll+0x31f50about 4 s in, before the world, while all the other switches were unchanged (PORT_CBV=0, noPORT_GUARD/PORT_JOURNAL);GPUVM faulton a title VA after about a minute:0x8002b2b00000,0x8002b5d00000(earlier0x800286b00000with the same switch), thencomp_1.x.0 ring timeout->MES failed to respond to msg=SUSPEND->device wedged, and the title reportsdevice removed: 0x887A0005;PORT_HOMEis on (default under Wine), so this is not the "memory by address is not one anonymous mapping" case.Question: is
PORT_CONSTANTSexpected 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 theint3is 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 on GitHub · 2026-11-27 13:09 UTC · original
I hit a similar failure with
VICTORY_PORT_CONSTANTS=1on 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 settingsI’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 on GitHub · 2026-11-27 13:21 UTC · original
@YaBulochka thank you, this is the report I needed. Short answer:
VICTORY_PORT_CONSTANTSis 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_HOMEdoes 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:
int3atvictory-image+0x31f50is 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.0x8002b2b00000is a GPU virtual address, not one of the title's: its 32-bit graphics pages sit around0x0afa0000-0x104a0000here. 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):
victory_gpu::portandvictory_hle::modules::xmem: regions in place and their size, refusals with theirwhy(not one stretch of a section / not committed / by the host / no buffer), the opening'scard_reads_itandattempt, and any "the card reads zeros in the heap".int3, and whether theint3still comes withVICTORY_PORT_HOME=0. Then the card reads zeros, but the pages are not placed, which separates the placing from the heap.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
@UwUCammie on GitHub · 2026-11-27 13:41 UTC · original
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_itcounters, so the logs can’t tell us what the GPU saw through the imported heap. Saved-route comparison and settings@UwUCammie on GitHub · 2026-11-27 14:30 UTC · original
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
@UwUCammie on GitHub · 2026-11-27 14:40 UTC · original
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
@YaBulochka on GitHub · 2026-11-27 14:51 UTC · original
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. Todayuse_host_diris only called under-Fsr4K, which also forcesVICTORY_DISPLAY_MODE=3840x2160. This is the same change Belobug #532 makes; it lets Series S stay at 1080p output while FidelityFX serves the upscale.2. Accept any FSR 4.x provider, not only 4.1.2. Under Wine the shim reports
4.1.1 *, sois_fsr_4_1_2()rejects the one provider that is there and FSR 4 never loads.fidelityfx.rs: keepis_fsr_4_1_2as the first choice, fall back to any4.<minor>.<patch>[letter](4.0.2cexists too), and allow it in the context-creation check as well.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_DIRwith the Redstone SDK DLLs, andamdxc64.dll(Proton 11.0) plusamdxcffx64.dll(Proton Hotfix) insystem32.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.2cloads too (version="4.0.2c") but fills the frame with white sparkle noise on this card; official4.1.1is clean. Neitheramd_fidelityfx_upscaler_dx12.dllshipped by STALKER 2 (4.0.2) nor Forza Horizon 6 (4.0.3) is accepted in place of the driver'samdxcffx64.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 on GitHub · 2026-11-27 15:06 UTC · original
On RDNA 4: RX 9070 XT, Arch Linux, this PR at
deebee8A second card for this PR, beside the RX 7900 GRE.
experimental-11.0-20261112(vkd3d-proton 3.2.0), Microsoft's 64-bitd3dcompiler_47.dlldiagbuild cross-built with cargo-xwin; shaders translated ahead withplay.sh --cmd shaders(25,790 in the cache, 195 do not translate)--windowed --no-hud, Enter pressed by--startFrame times are from the 5-second log lines of world frames in the first scene, grouped by draws a frame:
play.sh --start, first launch (empty pipeline cache)play-1080p.sh, second launchThe second launch's figures leave out its first ~25 s in the world. Frames there took ~400 ms while the
VICTORY_PORT_CBVset'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:
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 on GitHub · 2026-11-27 15:11 UTC · original
@borntofrag34 answering (b): the 43 ms was the three
PORT_*alone —PORT_CONSTANTS=1,PORT_DESCRIPTORS=1,PORT_CBV=1, noPORT_GUARD, noPORT_JOURNAL. That is exactlyplay-1080p.sh's set, and it ran 300 s on the 7600 XT.The
int3(0x80000003at+0x31f50, 4 s in) came when I addedVICTORY_PORT_GUARD=1andVICTORY_PORT_JOURNAL=1on top; and separately once with the threePORT_*andCARD_BUFFERS_MIN_KB=64in a build that also had #434 merged. Since then I took #446 (clear stale constant-buffer descriptors) into the tree, and with itPORT_CONSTANTS=1ran 7 minutes and then a 30-minute session without the title'sint3or a device loss, at 43 ms in a light scene. So I cannot tie theint3toPORT_CONSTANTSalone; guard/journal are the only reproducible part.On
VICTORY_WC_NO_BACK=1from #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 faulton a title VA right aftervkd3d_memory_transfer_queue_flush_locked: Clearing allocation 0: 65536, thencomp_1.x.0 ring timeout->MES failed to respond to msg=SUSPEND. Ifdeebee8is the bounds guard for card-steps copies, that fits: we runVICTORY_CARD_STEPS=2in the preset. I will rebase ontodeebee8and report whether the faults stop.@borntofrag34 on GitHub · 2026-11-27 15:15 UTC · original
@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 at542d441) 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=1and 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 the4.0.2cint8 path and on whichamdxcffx64.dllthe shim needs would be worth a line indocs/linux-wine.mdin the same PR.🤖 Generated with Claude Code
@borntofrag34 on GitHub · 2026-11-27 15:49 UTC · original
Two additions to this branch (now at
1d4c13d), both set byscripts/play-1080p.sh:VICTORY_WC_NO_BACK=1is 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.3721030)VICTORY_WC_NO_BACK=1One 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=1is 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 withVICTORY_PROFILEunder 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
@UwUCammie on GitHub · 2026-11-27 16:07 UTC · original
I pulled
1d4c13dinto my 720p benchmark build. The dirty-range test passed withVICTORY_CARD_TOUCHEDoff and on on the RX 7900 XT (RADV 26.3.1, Wine 11.22, vkd3d-proton71cae091). 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
@borntofrag34 on GitHub · 2026-11-27 16:09 UTC · original
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 forVICTORY_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.mdsaid for a few minutes that it was 6 ms slower than my Linux branch without main: wrong, the same mistake, corrected in89d93e2. In turn and without kept frames the two are not told apart (26.6 and 27.9 ms there).🤖 Generated with Claude Code
@YaBulochka on GitHub · 2026-11-27 16:20 UTC · original
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:So colour, depth and motion vectors arrive, but
jitteris 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:
None.Question: is the slot order in
DispatchUpscale::resourcesknown to match the console'sffxDispatchorder for this FidelityFX version, and isjitterexpected 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=6is the honest setting on this card: FSR 4 is sharper but leaves the particles noisy.v_cmp_f_{f32,f16} and v_cmp_tru_{f32,f16} lowered to fcmp false and fcmp true (predicates 0 and 15). DXC folds those away, so drivers never see them from it, and WARP removes its device at the first dispatch of a pipeline that has one ("The GPU device instance has been suspended"). The hardware adapter (RTX 5080) runs them. A removed WARP device stays removed for the process, so everything after it fails too. They are false and true whatever the operands, NaNs included (RDNA2 ISA), so they now lower as constants, as the integer v_cmp_f/v_cmp_t already do. FALSE and TRUE stay in the predicate table, unused. Found with a sweep of every 32-bit VALU instruction on the hardware adapter against WARP: all 62 compares now run and agree on both. Test: float_compares_that_are_always_false_or_true, f32 and f16 with ordinary and NaN operands, on the hardware adapter and WARP. On main WARP's dispatch fails with the device suspended. (cherry picked from commite3ee55bdbd)@UwUCammie on GitHub · 2026-11-27 16:27 UTC · original
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
@YaBulochka on GitHub · 2026-11-27 16:37 UTC · original
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: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
Nonein 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,VICTORY_UPSCALER=6is clean frame for frame;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 on GitHub · 2026-11-27 16:49 UTC · original
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
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.