cores: under Wine, the fast-core request is backed by an affinity mask #2039

Open
birdneststream wants to merge 1 commit from upstream-pr/2039 into main
birdneststream commented 2026-11-29 08:07:00 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by birdneststream on 2026-11-29T08:07:00Z.


Fixes #2037.

Under Wine SetThreadSelectedCpuSets is accepted and never applied (probe output and the before/after numbers in the issue). Stages 1–2 of ask() and keep_submit_core() back it with SetThreadAffinityMask of one hyper-thread per fast core there; stage 3 keeps floating; Windows untouched.

Tested in play under Proton (RTX 5090, i9-13900K): copies on the fast cores 28 % → 100 %, texture threads asking the guards 28.8 → 7.8 ms a frame; the GPU suite on the rig stays at its baseline.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5548875285 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2039). Originally posted by [birdneststream](https://github.com/birdneststream) on 2026-11-29T08:07:00Z. --- Fixes #2037. Under Wine `SetThreadSelectedCpuSets` is accepted and never applied (probe output and the before/after numbers in the issue). Stages 1–2 of `ask()` and `keep_submit_core()` back it with `SetThreadAffinityMask` of one hyper-thread per fast core there; stage 3 keeps floating; Windows untouched. Tested in play under Proton (RTX 5090, i9-13900K): copies on the fast cores 28 % → 100 %, texture threads asking the guards 28.8 → 7.8 ms a frame; the GPU suite on the rig stays at its baseline.
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/2039:upstream-pr/2039'
git switch 'upstream-pr/2039'

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