Proton/vkd3d-proton: bounded wait for once-only compute dispatches (heads without skin); the pipeline library with a null blob (same as #151) #166
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!166
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-166"
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?
@Beqren on GitHub · 2026-11-26 08:54 UTC · original
Beqren:proton-fixes→main· +612 −19 · 6 files · 9 commits · openReplaces #129, which I opened before auditing it properly; what is here is only what held up. Three changes, each usable on its own (the branch also holds a stopgap commit and its revert, see 3). The branch sits on
f249fe0and merges intomain(014d52d) without conflict; the merged tree was built, its GPU unit tests run and the wait run on it once (I cannot push a merge or rebase itself: my token may not push a branch that carries the later change toci.yml).Updated 2026-11-27: the compute wait (section 2) is reshaped after UwUCammie measured 11 s stalls with its first form (in #386). It now holds a frame at most half a second. The same update removes this branch's one line in
Pending::make, which had come to conflict withmain.Tested on one machine only: CachyOS (kernel 7.3), Radeon RX 9070 16 GB, Mesa RADV 26.3.1, Proton Experimental 11.0-20261112 (its vkd3d-proton 3.2.0, build
2576c0b4), view-tree wineserver, Series X profile, theplay.ps1settings. Each piece was also run with vkd3d-proton master71cae09built from source. Not tested on Windows, NVIDIA, Intel or other AMD cards.1. An empty pipeline library is asked for with a null blob
#151 (gomeaw) is the same fix for this tree, was opened before this, and has a Windows test, which mine does not: please take #151 for this. I missed it when I opened this; I will drop this commit as soon as #151 is in (the other commits do not depend on it). What follows is only extra evidence that the fix works under Proton on RADV.
From Marvisak/VIctory#347 (AugustoZFJ), also fxceless/victory-fork#885 (Filip722); credit is theirs.
CreatePipelineLibrary(&[])passes a non-null pointer with length 0, which vkd3d-proton rejects (d3d12_pipeline_library_init:if (!blob_length && blob) return E_INVALIDARG), so under Proton there was never a library: "no host pipeline library: pipelines are not kept", every session cold.mainunder Proton and passes with the change.(0 being made)in every world frame.2. A compute dispatch waits for its own pipeline, within bounds
A draw dropped for a missing pipeline costs one frame's picture; a compute dispatch the title issues once costs its output for the session. With a cold driver shader cache the head blend-shape map (
61e54e90adccaf6a) was dropped and every head had no skin (eyes, teeth, hair only).71cae09; with warm caches the skin is there. So it is a cold-cache timing race, not a Wine fault, and probably the same thing as #75 on Windows and the checkpoint observation in #67.71cae09unless said):=0)main014d52dVICTORY_PIPELINE_WAIT_MS=0VICTORY_COMPUTE_WAIT=1turns it on anywhere,=0off. The cause is not Wine-specific, so the gate is a caution, not a finding: Windows is simply untested. It waits where #73 / #125 cap waits; it is limited to compute dispatches and bounded, but tell me if you would rather have it shaped differently.3. (Taken out) the single-latch stopgap
The branch first carried a change that emitted every loop with one latch under Wine, because with vkd3d-proton 3.2.0 six of the title's compute pipelines are never made (
17829ac71aab4e8d,32ed072b9f845048,afeea48bbb9913ad,559d9f0184e15fe3,a1b20bc47e3c9597,e8c962358d862e3f: 6 of 6 hang when built alone) and every frame then spends the whole pipeline-wait budget: 285 ms a frame against 55.It is reverted in this branch (the last two commits). That is a dxil-spirv bug already fixed upstream (
694cc67,3bc8276): with vkd3d-proton71cae09all six are made without it, which is what the people testing here run. And on by default under Wine it changed the shader cache key for every Wine user, so a first start re-translated and re-made everything for no gain there. On vkd3d-proton 3.2.0,VICTORY_PIPELINE_WAIT_MS=0gives the same frame time; the doc says so.4.
VICTORY_KEYSin every buildSo a launcher can press A on the start screen of a release build. Does nothing unless the variable is set.
5.
docs/proton.mdRequirements, building with
cargo xwin, the wineserver patch, thed3dcompiler_47build that is needed, and the above, each claim scoped to the versions it was seen on.Checks
cargo test -p victory-shader --lib: 210 pass. GPU unit tests for the touched modules under Proton: 32 pass.cargo clippy -D warnings(cross-compiled, toolchain 1.98.1): the same 3 warnings asmain, none in a touched file. Two independent reviews of the wait's first form; confirmed findings fixed. For the reshaped wait: GPU unit tests under Proton, 30 pass on the branch and 35 on the branch merged withmain014d52d(two tests added, the two of the old bounds rewritten); clippy as CI runs it has nothing inmake.rs; one more independent review found the locking sound and one low finding, confirmed and not fixed: a dispatch dropped after the frame's compute budget is spent can skip the once-per-pipeline log line (the fix sits beside linesmainrewrote; it can follow once this is onmain). No game data in any commit.Not claimed
Faces (the table-slot kinds are #114; a typed-load change that fixed torn faces here on vkd3d-proton 3.2.0 is untested on master and will come separately if it survives that), anything about GPU faults, anything on Windows.
Done with an AI coding assistant (Claude Code), directed and tested by me; the numbers are from this machine's logs.
With the vkd3d-proton in Proton Experimental 11.0-20261112 (3.2.0, build 2576c0b4, dxil-spirv 114e664) six of the title's compute programs are translated and never get a host pipeline: 17829ac71aab4e8d, 32ed072b9f845048, 559d9f0184e15fe3, a1b20bc47e3c9597, afeea48bbb9913ad, e8c962358d862e3f. Every world frame then shows "(6 being made)" and spends its whole 500 ms pipeline wait budget on them (about 285 ms a frame instead of 55). Cause, inferred from dxil-spirv's source (no debugger stack): a pre-pass that runs before the structurizer mishandles a loop with two back edges (a `continue`) and recurses. DXC writes every loop with one latch. dxil-spirv fixed it upstream on 2026-11-24/25: 694cc67 ("Only run fixup passes after structurizer has run") and 3bc8276, in vkd3d-proton 71cae09. With that vkd3d-proton built from source, all six are made without this change. So this is a stopgap: `Module::one_latch` gives every loop one latch (the blocks that branched back branch to a new block that joins what each brought and branches back alone; the program does the same). Remove it once Proton ships a vkd3d-proton with those commits. Without it, `VICTORY_PIPELINE_WAIT_MS=0` gives the same frame time (54-60 ms here, after one 10 s frame at the world's start in which compute dispatches wait for the six once); if you would rather not carry this, that is the alternative. Active only under Wine (`VICTORY_ONE_LATCH`: unset, on under Wine only; `0` never; `1` on any host). The shader cache key gains bytes only when it is on, so a host without it (Windows by default) keeps its key and its translations. The shader crate has its own copy of the Wine probe, since it cannot depend on the GPU crate. Verified here (RX 9070, RADV 26.3.1, Proton Experimental 11.0-20261112), tools/pipes.sh (translate one program, make its host pipeline) on the six, on this tree: - vkd3d-proton 2576c0b4 (Proton's 3.2.0), VICTORY_ONE_LATCH=0: 6 of 6 hung; - vkd3d-proton 2576c0b4, on: 6 of 6 made; - vkd3d-proton 71cae09 (built from source), on: 6 of 6 made (and 6 of 6 without it, in an earlier run on the previous base). Unit test `loops_get_one_latch`. Untested on Windows and on other cards.Proton/vkd3d-proton: keep the pipeline library (null blob), bounded wait for once-only compute dispatches (heads without skin), a single-latch stopgapto Proton/vkd3d-proton: bounded wait for once-only compute dispatches (heads without skin); the pipeline library with a null blob (same as #151)@ArturoWolff on GitHub · 2026-11-26 09:16 UTC · original
Independent source-bound check of the revised compute deadline, plus the shared native-cache fix. The change from #129 to #166 matters: the earlier per-call allowance did not establish a bound on aggregate compute waits. I exercised the new policy without risking another GPU-heavy retail launch on our 8 GB RTX 4060 / 16 GB host.
1. Revised scheduler (#166's second commit)
Receiver:
avatarmanz/VIctory-7900XTXmain at722c0e1ce1e80bd045ba63ecb88c440041233fea. Selected Beqren'sf63017aaf390a391d04a1ce61e10aa584a2f35f5, direct parent912d6f29dceb72daa1e25fe1585881931ba7730d, from PR headdf317809ed5333f28bef86b994f43caa53ffa715. The receiver's scheduler differs from that parent only by three timeline lines. After reproducing the missing admissions on the receiver, I composed the exact selected change while keeping those timeline boundaries; GPL-3.0-or-later declarations and license file agree. No other PR commits were applied.This is the actual Rust
pipeline/make.rs, compiled separately for the two arms as a small native Linux CPU fixture (Rust 1.98.1). The frame clock, host construction/publication inputs, library/timing sink and Wine selection are test stand-ins. The production queue, worker claim, condition-variable wait and deadline logic are not stand-ins. The only portability edits in the copied module are the Windows priority call's target guard, a test-only notification just before condition waits, and the fixture module. Fresh processes for each test, separate build targets; no game files or GPU devices exposed. The graphics budget is deliberately 80 ms for these tests; the compute budget remains the actual 10 s.Each pending synthetic job is held until all distinct recording callers have entered a condition wait or returned, then published exactly once. This includes legitimate refusal and opt-out controls. Setting
VICTORY_COMPUTE_WAIT=0restores both the old admission result and old queue order.Actual production time limits: I started one pending compute caller and, ~5 s later in the same frame, a second pending compute caller whose own worker had just begun. Both returned pending at the same frame deadline. A third new compute job on that expired frame did not receive another wait; the next frame admitted that job after its worker published. Both earlier jobs remained usable after late publication.
In the second case the worker already had the job for 7 s before the first dispatch waited. The remaining long wait was 3 s, not a new 10 s, and the next frame used the ordinary 80 ms budget. These are measured synthetic-host controls, not a hard scheduling/watchdog guarantee or measured title frame times. Both guarded runs retired without OOM. The two builds have the same unused-Windows-priority-variable warning from the adapter. The production Windows/Wine build of this receiving adaptation has not yet been exercised.
2. Shared native library correction — separate actual driver test
This is also new evidence for the null-blob hunk here and in #151, on a different receiver:
fxceless/victory-fork@46bf5351707b1697c04e5d871c30973ebaa3e973with the earlier scheduler/phase diagnostics from our #144 follow-up. The sole production difference in that A/B was Filip722's #885 exact empty-library hunk at664a251e3394ad67692369eaa71916e5766fb20e, from AugustoZFJ's Marvisak/VIctory#347 (197c7acf). It preserved nonempty-blob handling and rejected-file rename. Actual cross-built Windows test execution under GE-Proton 11-14, vkd3d-protoncae8353ed7959c4+, llvmpipe Mesa 26.3.1. The ordinary FL12_0 device initialization failed, and an FL11_0 test device lacked SM6.6. Therefore both narrowed A/B builds use a test-only FL11_0 minimum, authored validated SM6.0 compute code and fixture root signature; neither is a production shader-translator/readiness-gate qualification.Every process uses the same initial private prefix and identical shader/key; the warm arms carry only the resulting native library. Its hash remains unchanged. All five readbacks match the independent whole-buffer oracle, including two untouched sentinels. The before case executes correctly but fails the actual cache-save assertion. The phase trace shows the real cold driver load miss/create/store/serialization and the warm hit without recreate; all spans pair, and trace-off emits none. Thus native library persistence is independently justified, not a proxy for correct command execution. This complements our earlier RTX 4060 hardware and native-library-only retail comparison.
The selected compute policy's admissions and bounds now have separate actual-source CPU evidence, and the cache fix has an actual software-driver execution witness. Neither establishes correct faces, complete lighting or gameplay on NVIDIA. The next qualification should retain the merged timeline boundaries and exercise the combined real Windows-target scheduler, then a small checked driver dispatch on the intended hardware before another heavy retail trial. No title data, screenshots, executable assets or cache files attached.
AI assistance: Hermes Agent, working on behalf of ArturoWolff. (GPT 6.2 Sol High).
@Beqren on GitHub · 2026-11-26 09:31 UTC · original · edited 2026-11-26 14:14 UTC
Thank you, both for the check and for the correction on #111 that made me go back over the first version. The staggered case (a second caller 5 s into the frame returning at the same deadline) and the worker-age case are exactly the two things the unbounded version got wrong, so it is good to see them exercised on the real
make.rsby someone else.Two notes:
71cae09. I have no Windows or NVIDIA run of it, which is why it is off outside Wine unlessVICTORY_COMPUTE_WAIT=1.If the maintainer would rather have the wait shaped along #125's lines (a cumulative cap per pipeline across frames), I am glad to rework it on top of that.
Done with an AI coding assistant (Claude Code), directed and tested by me.
@ArturoWolff on GitHub · 2026-11-26 09:55 UTC · original
Thanks for the reply and for correcting the provenance of #151. Agreed: the native-library evidence applies to gomeaw's earlier #151 (and the #885 / AugustoZFJ #347 source family). I kept it out of this next experiment, along with the one-latch workaround, so the scheduler result does not depend on either change.
Follow-up: the selected bounded wait also passes in an actual Windows-target build under Wine, now on main
9576c45f1d551be0cfde154da027707658ce031e(the newer light-settling revision). Itspipeline/make.rsis byte-identical to the receiver in our previous CPU comparison. I reproduced the three behavioral failures on this receiver, then applied the exact previously tested adaptation off63017aaf390a391d04a1ce61e10aa584a2f35f5, keeping main's timeline boundaries. Only that production scheduler change and its Wine policy module are different between the arms.Both actual
victory-gpucrates were built with Rust 1.98.1 / LLVM MinGW,x86_64-pc-windows-gnullvm, diagnostics profile and feature, separate target directories, and tested in clean copied prefixes under Wine 11.22 (Staging). The full non-test diagnosticvictory.exealso builds on the candidate. All three Cargo build commands succeeded without compiler warnings. No actual native Windows host, GPU nodes, title files, or network were available to the test processes.The extra test fixture holds real worker jobs at their host-construction boundary, then deliberately returns
None. The actual queue,Pending::makepublication,pipeline::host_pipelinelookup, frame state, platform selection, condition waits and diagnostic wait counter execute. A test-only wait observation ensures distinct callers arrive before releasing the worker; none of these tests treats a refused host pipeline as a usable D3D12 object. The 80 ms ordinary wait is a test setting; the compute allowance remains the production 10 s.Actual native runtime output:
With
VICTORY_COMPUTE_WAITunset, the real Wine policy is on (the native ntdll export is independently verified).=1admits both waiting callers;=0restores zero wait and the old priority order. New workers after the first frame's deadline do not receive another long wait; the next frame can wait, and the refusal is visible only after the worker publishes. No duplicate claims or retained pending jobs in these controls.One infrastructure detail worth retaining: two direct
wine fixture.exeattempts printed a passing Rust threaded-test summary but the host process returned -9 (SIGKILL). Neither was an OOM or a behavioral failure of the new scheduler; both were rejected by our runner. A fresh-prefix repeat of the exact same baseline EXE through Winecmd.exereported the Windows child's real exit code and propagated it: native pass = 0 and each of the three intended assertion failures = 101, matching the outer process. Both arms then completed using that same exit-witness route. The source and test binary were not rebuilt to make this anomaly disappear. Its precise direct-launch cause remains unestablished.So the actual Windows compilation, native Wine policy and bounded wait behavior are now qualified. This still does not establish that an actual GPU executes a once-only dispatch successfully or restores the skin on our RTX 4060. Your RX 9070 cold-cache result is separate positive retail evidence. I'll retain this exact candidate for a small actual-driver checked execution test before evaluating a heavier game run. Thank you for keeping the changes separately reviewable.
AI assistance: Hermes Agent, working on behalf of ArturoWolff. (GPT 6.2 Sol High).
@YaBulochka on GitHub · 2026-11-26 09:59 UTC · original
On Wine/RADV this branch looked like a regression in the opening cutscene, and I stopped it after two world frames rather than burn the session. Reporting early because the numbers are far apart, and because the opening is deterministic (same cutscene, same frame count), so it is not scene variance.
Environment: CachyOS 7.3.5, Ryzen 5 9600X, 30 GB, RX 7600 XT 8 GB, RADV Mesa 27.0.0, Wine 11.22, vkd3d-proton from master, retail 1.0.2.1, Series S,
VICTORY_TEXTURE_BUDGET_MB=4608,VICTORY_CARD_BUFFERS_MB=1024, the launcher profile (RELAY=2,TEXTURE_NO_WAIT=1,JOIN_COPIES=1,CARD_STEPS=2,AMBIENT=0.8,PORT_DESCRIPTORS=1), plus adxcompiler.dllfallback forD3DCompile(Wine's compiler refuses the clamp and the two-plane composer; without it there is no 3D and no 2D).902b5bdThe texture traffic jumps by ~10x on the same scene, which is where I would look first if this reproduces for you: one of the five commits changes when once-only compiles are waited for, and if a texture refresh ends up behind that wait every frame, the frame becomes the streaming again.
Two questions:
No game files or dumps; numbers only.
@bordersky on GitHub · 2026-11-26 10:23 UTC · original
Tested on Linux: RX 7900 XT 20 GB, Ryzen 9 5900X, Mesa RADV, GE-Proton10-34's Wine with the view-tree wineserver, vkd3d-proton master, Series X profile. Your bounded wait (
f63017a) on top of main9576c45, with #151 and other local changes; not the one-latch commit, as vkd3d-proton master makes the six pipelines.The bound matters here. Before, I carried #129's unbounded wait (
c0fdca0+da4cee6). After every change to the translator (cold translation cache), resuming a checkpoint crashed during loading, about 40 s in, at the same place in the title's code:+0x23cf683, write to 0x0. That happened 3 of 3 times from a cold cache, and never with a warm one. The workaround was one warm-up run withVICTORY_COMPUTE_WAIT=0, faces missing, before every test. That fits your watchdog explanation.With this PR's bounded wait, from the same checkpoint and cold caches, loading went through on the first try. One dispatch hit the bound and was dropped:
The heads had their skin. Since then, five more starts from that checkpoint, warm, have loaded with the skin there.
On the typed-load change you mention under "Not claimed": I ported your
1711cd1c2onto this tree. A first port without your runtime check of the slot's word (VIEW_INTEGER | 2*count) also read raw through views whose element was wider, or of a float format, and one texture in the first room came out wrong. With the check back, and #114 giving table views their word, the faces no longer tear while characters talk. The observation is the player's, in the prologue. I have not isolated #114 from the raw loads.@UwUCammie on GitHub · 2026-11-26 10:30 UTC · original
I tried the bounded compute-wait commit (
f63017aa) on a second machine: RX 7900 XT, RADV 26.3.1, Wine 11.22 with the tree-index wineserver, vkd3d-proton 3.1, Series X. I applied it tolinux-amd-bestat830dc191, keeping that branch’s compiler recovery.Two controls on the original renderer, one with the heap worker and one without, showed eyes and teeth with the diner characters’ skin missing. Adding the compute wait brought back the server’s face and Lucia’s face and neck in the water-order exchange. A second patched launch with the worker on and the 256 KiB / 4 GiB card-buffer settings showed them again. All started from fresh copies of the same saved data and the same initial runtime and vkd3d caches.
The small head-map pipeline identified above actually finished within 6 ms of first bind in both broken controls on my machine. The corrected picture corroborates the change, but I can’t attribute it to that particular pipeline here. The bounds were exercised in the patched run, and all nine pipeline worker tests passed. Port to the Linux branch
@Beqren on GitHub · 2026-11-26 10:33 UTC · original · edited 2026-11-26 14:14 UTC
Thank you all for testing this; that is far more than I could do on one machine.
@YaBulochka: to your two questions.
VICTORY_ONE_LATCH=0, let it run past the first ten seconds of the world, and a second start should be normal. If it is still slow withVICTORY_COMPUTE_WAIT=0, then it is not this pull request at all and the base differs (my branch sits onf249fe0; I do not have your902b5bd).Change to the branch: the single-latch stopgap is reverted (two new commits; nothing rewritten). You are all on vkd3d-proton master, where the six pipelines are made without it; it only ever helped vkd3d-proton 3.2.0, and it made every Wine user pay a full re-translation.
VICTORY_PIPELINE_WAIT_MS=0does the same job there and the doc says so. It also clears the conflict withmain: the branch merges cleanly with0dec5dcagain and the merged result builds.@bordersky: thank you for the 3-of-3 cold-cache crash at
+0x23cf683with the unbounded version and the clean first try with the bound; that is the confirmation I could not get from one machine. And for the typed-load port: your finding that it needs the run-time check of the slot's word, or it reads raw through wider or float views, is exactly why I left it out until it is tested properly. If you isolate #114 from it, I would like to know whether the raw loads are still needed on vkd3d-proton master.@UwUCammie: noted that the head-map pipeline was ready within 6 ms in your broken controls. So on your machine the pass that is dropped is not that one, or not only that one, and my description names the wrong culprit for your case. The log line
a compute dispatch was dropped(and, in a diagnostics build, the drops by pipeline) would say which. I will not claim the blend-map pipeline as the general cause.@ArturoWolff: thank you for the Windows-target run under Wine; that covers a build I had not exercised.
Done with an AI coding assistant (Claude Code), directed and tested by me.
@ArturoWolff on GitHub · 2026-11-26 10:52 UTC · original
Physical NVIDIA/Proton follow-up: a once-only compute dispatch now produces the data its consumer reads. The latest reports make it especially important to separate missed dispatches from translation failures and to avoid identifying one retail shader as the universal culprit.
Receiver:
avatarmanz/VIctory-7900XTX@9576c45f1d551be0cfde154da027707658ce031e. Same selected Beqren scheduler commitf63017aaf390a391d04a1ce61e10aa584a2f35f5and adaptation as the earlier native Wine tests. I checked the change up to the updated PR headc61b25cc3fbc7ca594d1658f16481410b6eef163: the scheduler and Wine-policy files have not changed since the previous PR head. The one-latch change is not in either tested arm.Environment: RTX 4060 desktop, 8 GB (8,188 MiB reported), 16 GB system RAM; Linux, NVIDIA 620.73.04, GE-Proton 11-14's Wine 11.0 Staging, vkd3d-proton build
71cae091b06571e. Actual Windows targetx86_64-pc-windows-gnullvm, Rust 1.98.1/LLVM MinGW, diagnostics profile and feature. Independent Cargo targets; all three builds succeeded without compiler warnings. Fresh game-free Wine prefixes with matching graphics DLLs and empty private lower-layer cache directories; no title files, game execution, or network in the test processes.Fixture: the actual
Pending::makeworker is held at construction until a real caller enters the condition wait or returns without recording. A separate controlled graphics job spends the ordinary frame budget first (VICTORY_PIPELINE_WAIT_MS=80, shared budget on, two workers). Unlike the earlier deliberate-refusal test, both compute jobs now make actual host PSOs with authored HLSL compiled to validated SM6.6 DXIL and the production root signature. The twoState::dispatchcalls each get a single attempt; the consumer is already ready. A test-only one-slot raw UAV holds[41,4951,9320,59]. The producer writes word 1 = word 0 + 7; the consumer writes word 2 = word 1 XOR 165, after an explicit UAV barrier. The host list is submitted directly to the real device queue. We require fence completion, no device removal, and independent whole-buffer readback including the two untouched sentinels. No console translation, retail submission scheduling or title memory/descriptor mirroring is claimed by this authored test.[41,4951,5106,59][41,48,149,59]VICTORY_COMPUTE_WAIT=0[41,4951,5106,59]The receiver's producer is reported as still being made and drops exactly once. In all three cases its worker subsequently publishes a usable host PSO and retires; there is no retry of the producer. The successful consumer therefore sees different actual GPU data depending on admission of the original dispatch. The same candidate binary with the opt-out restores the receiver's behavior; the unrelated late-ready event alone would have been an insufficient success criterion. Each wait measurement is a single controlled admission, not a compilation benchmark or a retail frame-time result.
Independent #151 cache control, same scheduler and fixture. Both original arms on this receiving main got
no host pipeline library: pipelines are not kept, made two PSOs, and saved zero bytes, despite successfully creating/using the PSOs. After applying just the earlier #151 production correction (e97ab400899fc60dcbfbc11015bf15e38841b25a, AugustoZFJ, adapted here by gomeaw; also Marvisak#347 / fxceless#885), all source files other thanpipeline/library.rswere byte-identical to the scheduler candidate.[41,48,149,59][41,48,149,59]Both passed, with identical 440-byte library hashes before/after warm execution. The scheduler fix does not depend on the library fix, and the native library hit does not stand in for execution. This is additional NVIDIA evidence for taking #151 separately, as you recommended.
Five actual GPU readbacks total, four passing invocations and one specific intentional receiver failure. Both the immediate Windows child exit and outer Wine exit match each intended result. All three guarded arms retired without new matching kernel GPU faults or OOM kills; minimum available host memory was about 7,169 MiB over the trials, with peak sampled whole-card usage 1,343 MiB. Builds and hardware tests ran serially. These small fixtures do not establish safety of the much heavier retail workload.
Conclusion: this demonstrates the physical producer-consumer correctness mechanism on NVIDIA/Proton, as distinct from the previously qualified bounded wait and the RX 9070/7900 retail reports. It does not identify which missed title dispatch supplied the missing skin, prove console shader correctness, resolve the 8 GB retail memory issue, or establish a lighting/FPS improvement. Given the latest head's removal of the latch workaround, there is no reason to reintroduce that extra cache invalidation into this comparison. The next useful comparison is a guarded low-memory retail path with readiness/drop evidence and matched initial caches, rather than assuming a faster first two frames or the head-map hash alone proves repaired faces.
AI assistance: Hermes Agent, working on behalf of ArturoWolff. (GPT 6.2 Sol High).
@Beqren on GitHub · 2026-11-26 22:41 UTC · original
This now conflicts with main, in one place:
Pending::makeincrates/victory-gpu/src/pipeline/make.rs. Main rewrote that function's body; this branch had only added one line above the old body.The resolution is to keep main's body and keep that one line above it:
With that, main (
014d52d) merged into this branch builds here (cargo xwin build --release --locked -p victory). I have not run the merged build in the title yet, so I am not claiming more than that it compiles.I am away over the weekend and will push the update, with a run of the merged build, when I am back. If it is easier to resolve at merge time, that one line is all this branch needs in that function.
Done with an AI coding assistant (Claude Code), directed and tested by me.
@Beqren on GitHub · 2026-11-27 04:53 UTC · original
Updated: the compute wait now holds a frame at most half a second, and the branch merges with
mainagain.@UwUCammie's cold-start measurements in #386 (11.3 s longest gap, 30 gaps over 1 s with the wait on) were right, and I reproduced them here: 10.2 and 10.3 s, 8 and 9 gaps over 1 s in the first 300 s. That was this branch's own 10 s a frame being spent again and again. Thank you for running it.
What changed (two commits, nothing rewritten): a frame's compute waits end 500 ms after the first began; each pipeline gets one wait; the pipeline a dispatch is waiting for is made next, and one worker (of four or more) is kept free for it. The line this branch had in
Pending::makeis gone, which was the conflict.Here (RX 9070, RADV 26.3.1, vkd3d-proton
71cae09, diagnostics builds, every cache cold, first 300 s):main014d52dWhat it gives up: nine pipelines dispatched in the bursts of the first world frames never ran (the same nine as with the wait off; the 10 s form lost none), and the head map was made inside the 500 ms in every run of this form but with as little as 300 ms to spare, so the race is narrower, not closed. The description has the details and what is not verified. One machine, single runs; a repeat on other hardware would be welcome.
Done with an AI coding assistant (Claude Code), directed and tested by me.
@UwUCammie on GitHub · 2026-11-27 05:23 UTC · original
I’ve queued the updated scheduler for a same-binary cold on/off pair on the RX 7900 XT, with
71cae091and the 500 ms graphics wait in both arms. The scheduler source is unchanged from your updated head. The bench branch adds 720p output and accepted-present tracing. I’ll count from launch to 300 seconds and check matching diner shots for skin. The runner is yielding to another build at the moment. Bench branch@UwUCammie on GitHub · 2026-11-27 06:19 UTC · original
I reproduced the missing face on the RX 7900 XT with compute wait off using the updated scheduler. In the car close-up around 160 seconds, the eyes and teeth were visible and the facial surface was missing. The log confirms the 500 ms graphics wait. That attempt yielded to a parallel build about 17 seconds after the capture, so it’s excluded from the 300-second timing. The compute-on shot comparison is still pending.
@UwUCammie on GitHub · 2026-11-27 06:59 UTC · original
The opening car close-up at about 192 seconds showed facial skin with the 500 ms compute wait on. With it off, the same close-up showed eyes and teeth without the facial surface. I checked the executable, driver DLLs, inputs and graphics wait across both launches. The enabled screenshot was taken 24 seconds before a parallel build interrupted that run, so its 300-second timing is still pending.
I also tried keeping that last general worker reserved when both it and the dedicated screen workers would otherwise be eligible for a screen compile. The optional policy passed seven extracted queue tests. I’ll measure it separately with both wait budgets fixed at 500 ms. Control results and fixture
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.