Linux/Wine: character skin baked at the title's loading rate (VICTORY_LOAD_FPS), fixes #400 #449
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!449
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-449"
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?
@LofisMusk on GitHub · 2026-11-27 09:55 UTC · original
LofisMusk:load-fps→main· +280 −4 · 9 files · 2 commits · openFixes the missing head skin of #400 on Linux under Wine (RX 7900 XTX).
Cause: the title bakes its characters' skin while it loads. At 25+ frames a second every head came out without skin (20 runs of 20). With the title's own frame rate setting at 5, it was there (2 of 2). Slowing only our clock while the title stayed at 30 did not help, and neither did the title at 60.
Change:
VICTORY_LOAD_FPS=<rate>runs the title at that rate while it loads. Loading counts as over after ten seconds without a bake draw. The title is then switched to its playing rate at runtime: the three patched reads, its frame time (+0x98f84ac) and its timers' shortest step (+0x6849844). Our clock keeps the playing interval, because the title asks for the loading rate's 66.7 ms again right after the switch.Measured (release,
play.ps1set,VICTORY_LOAD_FPS=5):VICTORY_FRAME_INTERVAL_MS=16.667as well: 33 fps in the lighter scene after loading.Off by default. Builds on #386 (branch
linux-wine).Known remaining issue: lips look puffed on Lucia (facial rig). It's separate from this change; the SDWA sext fix (upstream #3124) changes none of this title's 25,790 shaders.
🤖 Generated with Claude Code
https://claude.ai/code/session_018VwqyDRnxhcvy1dojRs4Cr
@UwUCammie on GitHub · 2026-11-27 10:03 UTC · original · edited 2026-11-27 10:07 UTC
One edge case with the opt-in.
VICTORY_LOAD_FPS=0orofffails the loader's numeric check, butframe.rsstill enables its loading gate because the variable exists. After the bake goes quiet it can switch the playing interval even though the loader never changed the title rate. The shared parser passed its Windows MSVC test under Wine, and the app's cargo check passed. Patch against load-fpsI reproduced the missing-driver-skin shot in another cold 720p Series X run. The first logged bake draw was at 24.50 s, the tracked facial-deformation pipeline returned at 76.44 s, and the driver was still missing skin at 160 s. That leaves open whether the pipeline was needed earlier. Do you know if it had already compiled when the first bake ran in your 25+ FPS runs without skin? Timing notes
@borntofrag34 on GitHub · 2026-11-27 10:08 UTC · original
On UwUCammie's question, in case it helps separate the two paths: here (RX 7900 GRE, RADV, Wine) the same symptom (eyes and teeth, no skin) came with the facial deformation's compute passes being dropped on their first use, not with the loading rate itself.
970c4fbb3b017c0e,068c90badc86f1fd,e4a7e088c7780ce8,36e010b53acffd77) were used for the first time and dropped, at the frame the man's face first shows (111-114 frames into the world). Their pipelines were still being made, and the frame's 500 ms wait was used up.0xFFFFFFFFon the card. That pass fills it only once, so the deformer's output was one value for every vertex, and the meshlet cull then kept 10 groups of 105 instead of 94.#440 makes a compute pass wait for its pipeline on a budget of its own (
VICTORY_COMPUTE_WAIT_MS, now 500 ms under Wine) and puts its pipeline first in the queue. It also keeps the pipeline library under vkd3d-proton (VICTORY_LIBRARY_NULL), so later runs start them while loading. With a warm vkd3d-proton cache it went from 2 of 5 runs without skin to 17 of 17 with it. Cold it is not settled: UwUCammie still sees it now and then in the car.A way to tell the two apart in your 25+ fps runs: #440 logs each first use that goes without its pipeline, with the program's hash. If the four above show up there in the runs without skin, it is the same cause.
On Lucia's lips: the same here. The faces don't animate, because the deformer's shared input reads zeros. With #114 they move, but wrongly on RADV (mouths wide open; notes on #114).
🤖 Generated with Claude Code
@UwUCammie on GitHub · 2026-11-27 10:12 UTC · original · edited 2026-11-27 10:48 UTC
I checked the four programs against the 2 s / 2.5 KiB run. The two that fit the cutoff had host pipelines by about 2.65 s. The 2,704-byte one still had waits ending without a result, and both faces showed skin in the car shot.
I’ve queued 3 KiB against 2.5 KiB on the same executable and 2 s wait. That covers the 2,704-byte program and would add 55 distinct first-bound compute shaders in each of the three traces I checked. The cold timing should show what that extra work costs. Trace notes and setup
The first 3 KiB run had that pipeline ready at 2.51 s, before its first recorded bind at 56.77 s. The 2.5 KiB run had it ready at 76.66 s after resultless waits. This was the same binary and cold setup, with only the cutoff changed. The 3 KiB run yielded to a parallel build at 59.61 s, before the car shot. Timing and test setup
A second 3 KiB run had the same pipeline ready at 3.14 s and showed the driver’s skin in the 160 s car close-up. The first 160 s had 2,868 accepts versus 2,855 at 2.5 KiB, with a higher P99 on the 3 KiB side. The second run yielded at 162.87 s. Repeat and timing
@UwUCammie on GitHub · 2026-11-27 12:54 UTC · original
Five attempts now have a comparable first 150 seconds with the same Wine binary, driver, input, empty caches and 2 s compute wait. The 2.5 KiB runs presented 2,358, 2,521 and 2,683 frames. The 3 KiB runs presented 2,648 and 2,714.
The latest 3 KiB run had 597 ms P99, while the earlier one had 1,248 ms. The equivalent 2.5 KiB prefixes ranged from 768 to 1,374 ms. The latest run yielded at 152 seconds, before the car shot. The full cold comparison is still pending. Run details
View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.