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

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

@⁠birdneststream on GitHub · 2026-11-29 08:07 UTC · original
birdneststream:cores-affinity-under-wine → main · +46 −0 · 1 files · 1 commits · open

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.

**@⁠birdneststream** on GitHub · 2026-11-29 08:07 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2039) `birdneststream:cores-affinity-under-wine` → `main` · +46 −0 · 1 files · 1 commits · open 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.
SetThreadSelectedCpuSets is kept and nothing more under Wine: a thread asked
for the fast cores ran over ten processors, E-cores among them (probed on a
13900K under wine-staging 11.22), while SetThreadAffinityMask holds. Every
"the thread is kept on the fast cores" line under Proton was empty, and the
copy workers — the frame's largest CPU item — ran most of their time on the
slow cores. Under Wine the threads a frame waits for and their helpers are
bound to one hyper-thread of each fast core, the submitting thread to its
own; the many threads ahead of a frame keep floating, and the title's own
threads keep the siblings and the slow cores (RTX 5090 under Proton, i9-13900K:
texture threads asking the guards 28.8 → 7.8 ms a frame, copies on the fast
cores 28 % → 100 %). Elsewhere unchanged.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-29 08:09:38 +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/2039/head:github-bot/gh-2039'
git switch 'github-bot/gh-2039'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-2039'
git switch 'github-bot/gh-2039'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-2039'
git switch 'github-bot/gh-2039'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-2039'
git switch 'main'
git merge --squash 'github-bot/gh-2039'
git switch 'main'
git merge --ff-only 'github-bot/gh-2039'
git switch 'main'
git merge 'github-bot/gh-2039'
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/trustno1-coder--VIctory-NVIDIA!2039
No description provided.