kernel: the title's SetProcessPriorityBoost logged, left undone with VICTORY_TITLE_BOOST_KEEP=1 (off by default) #3757

Open
bigboss22869 wants to merge 1 commit from upstream-pr/3757 into main
bigboss22869 commented 2026-11-30 06:05:05 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by bigboss22869 on 2026-11-30T06:05:05Z.


What it changes

The title calls SetProcessPriorityBoost(process, TRUE) at its start, turning the scheduler's wake-up boosts off for the whole process, the layer's own threads included. This exports it from the kernel module: the call is logged, and VICTORY_TITLE_BOOST_KEEP=1 leaves the boosts on. Off by default: done as the title asks.

How it was tested

  • GPU and profile: RTX 5070 Ti, Ryzen 7 7800X3D, Series X profile, frame generation on, release, camera turning, 4-min runs
  • Before: 22.0 / 22.6 rendered fps, p99 91–102 ms
  • After (together with VICTORY_TITLE_AFFINITY=free): 23.0 / 23.1 rendered fps, p99 82–84 ms; the boosts alone 22.3 against 22.0
  • cargo test passed for the crates it touches: yes (victory-hle kernel, 17/17)

Details in discussion #3752.

Checked for overlap

  • I searched the open pull requests for the same issue and for the files this touches. Related: none for SetProcessPriorityBoost

🤖 Generated with Claude Code

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5559982478 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3757). Originally posted by [bigboss22869](https://github.com/bigboss22869) on 2026-11-30T06:05:05Z. --- ## What it changes The title calls `SetProcessPriorityBoost(process, TRUE)` at its start, turning the scheduler's wake-up boosts off for the whole process, the layer's own threads included. This exports it from the kernel module: the call is logged, and `VICTORY_TITLE_BOOST_KEEP=1` leaves the boosts on. Off by default: done as the title asks. ## How it was tested - GPU and profile: RTX 5070 Ti, Ryzen 7 7800X3D, Series X profile, frame generation on, release, camera turning, 4-min runs - Before: 22.0 / 22.6 rendered fps, p99 91–102 ms - After (together with `VICTORY_TITLE_AFFINITY=free`): 23.0 / 23.1 rendered fps, p99 82–84 ms; the boosts alone 22.3 against 22.0 - `cargo test` passed for the crates it touches: yes (victory-hle kernel, 17/17) Details in discussion #3752. ## Checked for overlap - [x] I searched the open pull requests for the same issue and for the files this touches. Related: none for SetProcessPriorityBoost 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Smoodie7 commented 2026-11-30 06:12:05 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Smoodie7 on 2026-11-30T06:12:05Z.


Looks good to me.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7270405933 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3757#issuecomment-7270405933). Originally posted by [Smoodie7](https://github.com/Smoodie7) on 2026-11-30T06:12:05Z. --- Looks good to me.
nicolasabosch commented 2026-11-30 23:19:17 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by nicolasabosch on 2026-11-30T23:19:17Z.


Tested on an RTX 4070 Laptop 8 GB with VICTORY_TITLE_BOOST_KEEP=1: no measurable fps difference in this scene (2 runs).

What was built

  • Main e1251c31 with four opt-in PRs merged together and nothing else changed: #4069, #3757, #3614 and #4206. This PR's head was 32dfd3a7.
  • Release build, same profile as main.
  • Every switch was off except the one under test. The combined build with all switches off is the control.

Setup

  • PC: RTX 4070 Laptop 8 GB, i9-14900HX, 32 GB RAM, Windows 11.
  • Command: victory play --series-s --dlss performance --framegen 2, with no fps cap and the window minimized.
  • Route: scripted Enter presses into the world from a fixed copy of a save, then the character idles there for 300 s.
  • fps is the mean of the last 40 host: reports, about 200 s. These are real frames, not generated ones.
run fps ms/frame submit thread ms refreshes ms
main, 5 runs 15.94 – 16.41 61.0 – 62.8 38.4 – 40.5 14.2 – 15.2
combined build, switches off, run 1 16.45 60.8 35.4 12.4
combined build, switches off, run 2 16.93 59.2 37.3 13.9
VICTORY_TITLE_BOOST_KEEP=1, run 1 16.70 59.9 35.4 12.9
VICTORY_TITLE_BOOST_KEEP=1, run 2 16.80 59.6 37.5 13.5

On this laptop, identical runs differ by about 0.5–1 fps, so only an effect of roughly 1.5 fps or more would show.

In this scene the frame (~60 ms) is longer than the submit thread's own work (~33–40 ms), so a gain on the submit thread alone may not reach the fps here. Both runs came in about 0.3 fps above the control, which is within noise. The test used the switch alone, without VICTORY_TITLE_AFFINITY=free.

Not tested: driving, camera turns, interiors, an image comparison, other GPUs.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7294978272 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3757#issuecomment-7294978272). Originally posted by [nicolasabosch](https://github.com/nicolasabosch) on 2026-11-30T23:19:17Z. --- **Tested on an RTX 4070 Laptop 8 GB with `VICTORY_TITLE_BOOST_KEEP=1`: no measurable fps difference in this scene (2 runs).** **What was built** - Main `e1251c31` with four opt-in PRs merged together and nothing else changed: #4069, #3757, #3614 and #4206. This PR's head was `32dfd3a7`. - Release build, same profile as main. - Every switch was off except the one under test. The combined build with all switches off is the control. **Setup** - PC: RTX 4070 Laptop 8 GB, i9-14900HX, 32 GB RAM, Windows 11. - Command: `victory play --series-s --dlss performance --framegen 2`, with no fps cap and the window minimized. - Route: scripted Enter presses into the world from a fixed copy of a save, then the character idles there for 300 s. - fps is the mean of the last 40 `host:` reports, about 200 s. These are real frames, not generated ones. | run | fps | ms/frame | submit thread ms | refreshes ms | |---|---|---|---|---| | main, 5 runs | 15.94 – 16.41 | 61.0 – 62.8 | 38.4 – 40.5 | 14.2 – 15.2 | | combined build, switches off, run 1 | 16.45 | 60.8 | 35.4 | 12.4 | | combined build, switches off, run 2 | 16.93 | 59.2 | 37.3 | 13.9 | | VICTORY_TITLE_BOOST_KEEP=1, run 1 | 16.70 | 59.9 | 35.4 | 12.9 | | VICTORY_TITLE_BOOST_KEEP=1, run 2 | 16.80 | 59.6 | 37.5 | 13.5 | On this laptop, identical runs differ by about 0.5–1 fps, so only an effect of roughly 1.5 fps or more would show. In this scene the frame (~60 ms) is longer than the submit thread's own work (~33–40 ms), so a gain on the submit thread alone may not reach the fps here. Both runs came in about 0.3 fps above the control, which is within noise. The test used the switch alone, without `VICTORY_TITLE_AFFINITY=free`. **Not tested:** driving, camera turns, interiors, an image comparison, other GPUs.
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/3757:upstream-pr/3757'
git switch 'upstream-pr/3757'

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/3757'
git switch 'upstream-pr/3757'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/3757'
git switch 'upstream-pr/3757'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/3757'
git switch 'main'
git merge --squash 'upstream-pr/3757'
git switch 'main'
git merge --ff-only 'upstream-pr/3757'
git switch 'main'
git merge 'upstream-pr/3757'
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
trustno1-coder/VIctory-NVIDIA!3757
No description provided.