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

Open
ubiquitarianism wants to merge 3 commits from upstream-pr/3377 into main
ubiquitarianism commented 2026-12-03 17:59:21 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by ubiquitarianism on 2026-12-03T17:59:21Z.


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.
<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5632075143 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3377). Originally posted by [ubiquitarianism](https://github.com/ubiquitarianism) on 2026-12-03T17:59:21Z. --- Claimed in the coordination issue as: `D3D12-TITLE-JOB-PRIORITY-CAP` from the [existing contributor claim](https://github.com/ProjectLeonida/mandy/issues/2570#issuecomment-7363519031). 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.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/3377:upstream-pr/3377'
git switch 'upstream-pr/3377'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/3377'
git switch 'upstream-pr/3377'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/3377'
git switch 'upstream-pr/3377'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/3377'
git switch 'main'
git merge --squash 'upstream-pr/3377'
git switch 'main'
git merge --ff-only 'upstream-pr/3377'
git switch 'main'
git merge 'upstream-pr/3377'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
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.

Reference
ProjectLeonida/mandy!3377
No description provided.