Compile small screen pipelines at creation when requested #450

Open
github-bot wants to merge 1 commit from github-bot/gh-450 into main AGit
Owner

@⁠UwUCammie on GitHub · 2026-11-27 10:00 UTC · original
UwUCammie:perf/early-small-screen-pipelines → main · +51 −3 · 1 files · 1 commits · open

A 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_BYTES set, 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:00 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/pull/450) `UwUCammie:perf/early-small-screen-pipelines` → `main` · +51 −3 · 1 files · 1 commits · open A 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](https://github.com/UwUCammie/victory-amd/commit/c2c6b4f9) With `VICTORY_EARLY_SCREEN_MAX_BYTES` set, 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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 10:38:57 +00:00
Author
Owner

@⁠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 10:20 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/pull/450#issuecomment-7215767147) · 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](https://github.com/UwUCammie/victory-amd/commit/fecf512a) 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](https://github.com/UwUCammie/VIctory-7900XTX/commit/cc3b85bb) 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.
Author
Owner

@⁠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

**@⁠UwUCammie** on GitHub · 2026-11-27 12:58 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/pull/450#issuecomment-7218898908) · 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](https://github.com/UwUCammie/victory-amd/commit/f33ac788) 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](https://github.com/UwUCammie/victory-amd/commit/d2123c0d) 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](https://github.com/UwUCammie/victory-amd/commit/359a2671) 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](https://github.com/UwUCammie/victory-amd/commit/4969c674)
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/450/head:github-bot/gh-450'
git switch 'github-bot/gh-450'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-450'
git switch 'github-bot/gh-450'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-450'
git switch 'github-bot/gh-450'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-450'
git switch 'main'
git merge --squash 'github-bot/gh-450'
git switch 'main'
git merge --ff-only 'github-bot/gh-450'
git switch 'main'
git merge 'github-bot/gh-450'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.