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· +4269 −100 · 36 files · 26 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.
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.