Compile small screen pipelines at creation when requested #450
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!450
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-450"
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?
@UwUCammie on GitHub · 2026-11-27 10:00 UTC · original
UwUCammie:perf/early-small-screen-pipelines→main· +51 −3 · 1 files · 1 commits · openA cold 720p run with a 2 s compute budget still had gaps up to 11.9 s. The separate screen-pass waits covered nearly all of the four longest gaps. One screen pipeline hit the wait limit repeatedly across three runs. Its two stages total about 5 KiB. Trace and setup
With
VICTORY_EARLY_SCREEN_MAX_BYTESset, queue a screen pipeline at creation if all its stages fit within that combined limit. The default is zero. Requests and early jobs keep their existing ordering, and the reserved screen workers still take requested passes with the existing wait budget.All 8 focused pipeline tests passed from the Windows MSVC build under Wine 11.22, with 111 PDB source checksums verified. The paired cold run will compare 0 and 6 KiB on the same 720p executable, including the existing 10 s screen wait.
@UwUCammie on GitHub · 2026-11-27 10:20 UTC · original · edited 2026-11-27 11:18 UTC
The first 6 KiB run confirmed the new path on the RX 7900 XT with RADV 26.3.1, Wine 11.22 and vkd3d-proton
71cae091. It queued its first small screen pipeline at 1.88 s. The executable, driver files, cold caches, new story and inputs matched the disabled arm.The control yielded at 242.74 s and the 6 KiB run at 20.78 s. That left the enabled run too early to compare the screen stalls or the faces. The queue is rotating both arms back in. Runtime checks
I got a longer 6 KiB repeat on the RX 7900 XT. It began early screen work at 1.79 s and yielded to a separate build at 144.62 s. Over the shared first 140 s, off had 2,767 accepted presents and 238 ms P99. The 6 KiB run had 2,593 and 874 ms P99. The longest gap was shorter at 6 KiB (10.13 s vs 12.47 s), with screen waits covering nearly all of both gaps. Time in holds over 100 ms rose from 74.20 s to 78.59 s.
Same executable, three vkd3d driver DLLs, new story, five empty caches, 720p scene, 4K interface and input. Only the screen cutoff changed. Both launches yielded before 300 s, so I’m keeping these as prefix measurements.
I also checked wait coverage on the qualifying 21.93 FPS cold run. Of 142.32 s in gaps over 100 ms, screen reports overlap 30.58 s and compute reports overlap 114.60 s. The union is 123.61 s, so the overlap between categories is counted once. That measures reported wait time during stalls. It doesn't estimate the time a worker change saves.
I have a second test that keeps the original total number of workers and reserves one priority worker for requested screen passes. The other can still take both screen and compute jobs. Ten focused tests passed on the Windows MSVC build under Wine, including both claim orders. The queued 720p runs leave early screen compile off and keep the compute and screen wait limits the same. Test branch
The reserved worker took its first screen pass at 26.45 s. The run then lost the GPU device at 89.10 s, with no guard overlap recorded. The shared run yielded to another build at 4.81 s. Both loaded vkd3d-proton 71cae091b06571e, with the same executable, five empty caches, new story, inputs and flags apart from the worker switch. The control still needs a complete run, so I’ve held the reserved setting.
@UwUCammie on GitHub · 2026-11-27 12:58 UTC · original · edited 2026-11-27 16:52 UTC
I measured the current shared-priority queue on the RX 7900 XT with fresh caches. In the first 100 seconds, all 342 recorded compute waits matched a unique worker claim. The time those jobs spent queued overlapped about 31 seconds of frame gaps of at least a second. The longest recorded request-to-worker delay was 39.86 seconds.
I’ve queued the same launch with priority for callers that still have budget left, keeping worker counts and wait budgets fixed. Diagnostic results
The priority run completed with the same binary and timing flags. Queue wait overlap fell from 30.97 s to 7.10 s, and the longest present gap fell from 19.97 s to 10.36 s. The trace had 1,513 accepted presents versus 1,556, and total time in gaps over 100 ms stayed near 73 s. The full uninstrumented comparison is still queued. Matched timing results
In a separate cold 720p trace, screen requests were still queued during 19.56 s of complete frame gaps. One request took 18.62 s to reach a worker. During two calls waiting for it, workers took 112 older compute jobs. I’ve added a mode that applies the existing priority hint only to actively waiting screen passes. The 12 worker tests passed under Wine in all three priority modes. The first gameplay attempts both yielded to other builds, so the matching release diagnostics are still in rotation. Trace and test details
The matched screen-only diagnostics finished on the same binary. In the first 75 s, the longest gap fell from 20.05 s to 10.51 s. Total time in gaps over 100 ms stayed at 50.71 s and 50.73 s. Accepted presents were 1,473 and 1,462, and the number of compute waits without a result rose from 25 to 35. The result looks like a change in how the stalls are distributed. The full 300 s run on the merged Wine branch is now in the queue. Matched results
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.