d3d12: add and measure an opt-in title job priority ceiling #3377

Open
github-bot wants to merge 3 commits from github-bot/gh-3377 into main AGit
Owner

@⁠ubiquitarianism on GitHub · 2026-12-03 17:59 UTC · original
ProjectLeonida:perf/darner-title-priority-ceiling → main · +130 −4 · 4 files · 3 commits · open

Claimed in the coordination issue as: D3D12-TITLE-JOB-PRIORITY-CAP from the existing contributor claim. Current coordination is #3312. This change has no prerequisite pull request.

What and why

This reapplies the existing e0dba540d priority ceiling to the measured public main baseline b053a1813. The optional LEONIDA_TITLE_PRIORITY_MAX=0 caps ordinary guest requests at Windows normal while preserving the existing floor, the time-critical audio request and Windows background-mode commands. The existing default remains in place. The change includes a Windows regression through the HLE priority entry point, the switch index and the measured findings.

Tested

Four matched Series S Boat pairs used one candidate executable and separate launches for ceiling 2 and ceiling 0. Hardware was a six-core, twelve-thread AMD CPU, 32 GiB and Radeon RX 6800 on driver 32.0.21030.2001. Scene targets were 1280×720 with the title upscaler, a 1920×1080 swap chain and frame generation disabled.

Window Rendered FPS, ceiling 2 / 0 Mean frame time change, 0 minus 2 (95% paired interval) Mean of run p99s, 2 / 0
Stationary, four qualifying warm pairs 26.95 / 28.55 −2.16 ms (−5.18 to +0.87) 52.91 / 53.55 ms
Moving bridge approach, four original streaming pairs 21.31 / 19.07 +13.91 ms (−33.92 to +61.74) 123.24 / 270.86 ms

All original streaming traversals encountered native pipeline construction. One ceiling-0 traversal had a 10.03 s frame. One other ceiling-0 run saved its cache but missed the suspension deadline after both scoring windows. Its retry supplied the warm stationary sample. The submitter spent less time working while the GPU was idle, but neither route establishes a rendered frame-time improvement. The ceiling stays opt-in. Main and both settings showed the same boat, driver, wake, shoreline and bridge landmarks at four checkpoints. Longest stationary PCM silence was 60/20/90 ms on main/2/0 and the bridge maxima were 40/50/50 ms.

On Windows the new test failed against the original source when a request at ceiling 0 returned priority 2, then passed with the patch. The all-target workspace build, affected HLE crate and diagnostics GPU replay passed. The full Rust workspace run had 1,754 passes and one descriptor-heap view test failure, also reproduced separately on pinned main on this adapter. All 59 documentation tests and the full clean-room scan passed. Raw gameplay captures, per-frame logs, saves and caches are local.

GPUs tested: Radeon RX 6800, Windows 11, driver 32.0.21030.2001.

AI-assisted: yes. GPT-6.2 Sol was used for the original patch and GPT-6.2 Astra for the verification, findings and independent read-only review.

Checklist

  • Based on the requested measured main commit and verified to merge cleanly with current main at 8da914820.
  • One topic.
  • Clean-room scan passed. The findings contain aggregate measurements only.
  • Translator contract entry is inapplicable. This change touches Windows thread-priority handling.
**@⁠ubiquitarianism** on GitHub · 2026-12-03 17:59 UTC · [original](https://github.com/ProjectLeonida/mandy/pull/3377) `ProjectLeonida:perf/darner-title-priority-ceiling` → `main` · +130 −4 · 4 files · 3 commits · open Claimed in the coordination issue as: `D3D12-TITLE-JOB-PRIORITY-CAP` from the [existing contributor claim](https://git.gtahub.st/github/ubiquitarianism--leonida/issues/2570). Current coordination is #3312. This change has no prerequisite pull request. ### What and why This reapplies the existing `e0dba540d` priority ceiling to the measured public main baseline `b053a1813`. The optional `LEONIDA_TITLE_PRIORITY_MAX=0` caps ordinary guest requests at Windows normal while preserving the existing floor, the time-critical audio request and Windows background-mode commands. The existing default remains in place. The change includes a Windows regression through the HLE priority entry point, the switch index and the measured findings. ### Tested Four matched Series S Boat pairs used one candidate executable and separate launches for ceiling 2 and ceiling 0. Hardware was a six-core, twelve-thread AMD CPU, 32 GiB and Radeon RX 6800 on driver 32.0.21030.2001. Scene targets were 1280×720 with the title upscaler, a 1920×1080 swap chain and frame generation disabled. | Window | Rendered FPS, ceiling 2 / 0 | Mean frame time change, 0 minus 2 (95% paired interval) | Mean of run p99s, 2 / 0 | | --- | ---: | ---: | ---: | | Stationary, four qualifying warm pairs | 26.95 / 28.55 | −2.16 ms (−5.18 to +0.87) | 52.91 / 53.55 ms | | Moving bridge approach, four original streaming pairs | 21.31 / 19.07 | +13.91 ms (−33.92 to +61.74) | 123.24 / 270.86 ms | All original streaming traversals encountered native pipeline construction. One ceiling-0 traversal had a 10.03 s frame. One other ceiling-0 run saved its cache but missed the suspension deadline after both scoring windows. Its retry supplied the warm stationary sample. The submitter spent less time working while the GPU was idle, but neither route establishes a rendered frame-time improvement. The ceiling stays opt-in. Main and both settings showed the same boat, driver, wake, shoreline and bridge landmarks at four checkpoints. Longest stationary PCM silence was 60/20/90 ms on main/2/0 and the bridge maxima were 40/50/50 ms. On Windows the new test failed against the original source when a request at ceiling 0 returned priority 2, then passed with the patch. The all-target workspace build, affected HLE crate and diagnostics GPU replay passed. The full Rust workspace run had 1,754 passes and one descriptor-heap view test failure, also reproduced separately on pinned main on this adapter. All 59 documentation tests and the full clean-room scan passed. Raw gameplay captures, per-frame logs, saves and caches are local. GPUs tested: Radeon RX 6800, Windows 11, driver 32.0.21030.2001. AI-assisted: yes. GPT-6.2 Sol was used for the original patch and GPT-6.2 Astra for the verification, findings and independent read-only review. ### Checklist - [x] Based on the requested measured main commit and verified to merge cleanly with current main at `8da914820`. - [x] One topic. - [x] Clean-room scan passed. The findings contain aggregate measurements only. - Translator contract entry is inapplicable. This change touches Windows thread-priority handling.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-03 18:05:00 +00:00
This pull request can be merged automatically.
This branch is out-of-date with the base branch
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/3377/head:github-bot/gh-3377'
git switch 'github-bot/gh-3377'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-3377'
git switch 'github-bot/gh-3377'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-3377'
git switch 'github-bot/gh-3377'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-3377'
git switch 'main'
git merge --squash 'github-bot/gh-3377'
git switch 'main'
git merge --ff-only 'github-bot/gh-3377'
git switch 'main'
git merge 'github-bot/gh-3377'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/ubiquitarianism--leonida!3377
No description provided.