Under Wine, SetThreadSelectedCpuSets is a no-op: the fast-core requests do nothing under Proton (copy workers on the E-cores; texture threads 28.8 → 7.8 ms a frame when bound) #2037

Closed
opened 2026-11-29 08:09:33 +00:00 by github-bot · 3 comments
Owner

@⁠birdneststream on GitHub · 2026-11-29 08:06 UTC · original

What happens

Under Wine, SetThreadSelectedCpuSets is accepted and does nothing: a thread that asked for the fast cores ran over ten processors, E-cores among them, while SetThreadAffinityMask holds. Probe (Rust, GetCurrentProcessorNumber() sampled in a 600 ms spin, i9-13900K, wine-staging 11.22):

SetThreadSelectedCpuSets ok=true: ran on cpus [0 1 5 8 10 11 12 16 21 28]
SetThreadAffinityMask(0b11):      ran on cpus [0 1]

So every the thread is kept on the fast cores line in a Proton log is empty: the copy workers (victory-wide-*, the frame's largest CPU item) and the listing threads run wherever the Linux scheduler puts them, mostly on the slow cores. The VICTORY_CPU_LOG=1 line says it plainly: cpu copies 633.7 ms, 37% on the fast cores.

What it costs (RTX 5090, i9-13900K, Proton Experimental / GE-Proton11-14, 2026-11-29, two builds minutes apart, same scenes)

threads as the kernel places them bound to one hyper-thread of each fast core
copies on the fast cores (CPU_LOG, mean) 28 % 100 %
texture threads asking the write watch and the guards, per frame 28.8 ms (max 198) 7.8 ms (max 34)
texture refreshes, all threads, per frame 36.6 ms 13.6 ms

The player's words for the second column: "textures and models load instantly".

The change

ask() (stages 1 and 2: the threads a frame waits for and their helpers) and keep_submit_core() back the request with SetThreadAffinityMask when on Wine; stage 3 (the many threads ahead of a frame) keeps floating so idle slow cores still get used, and the title's own threads keep the siblings. The Wine check is the runtime's own (wine_get_version). Windows is untouched.

PR: the next number.

**@⁠birdneststream** on GitHub · 2026-11-29 08:06 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/2037) ## What happens Under Wine, `SetThreadSelectedCpuSets` is accepted and does nothing: a thread that asked for the fast cores ran over ten processors, E-cores among them, while `SetThreadAffinityMask` holds. Probe (Rust, `GetCurrentProcessorNumber()` sampled in a 600 ms spin, i9-13900K, wine-staging 11.22): ``` SetThreadSelectedCpuSets ok=true: ran on cpus [0 1 5 8 10 11 12 16 21 28] SetThreadAffinityMask(0b11): ran on cpus [0 1] ``` So every `the thread is kept on the fast cores` line in a Proton log is empty: the copy workers (`victory-wide-*`, the frame's largest CPU item) and the listing threads run wherever the Linux scheduler puts them, mostly on the slow cores. The `VICTORY_CPU_LOG=1` line says it plainly: `cpu copies 633.7 ms, 37% on the fast cores`. ## What it costs (RTX 5090, i9-13900K, Proton Experimental / GE-Proton11-14, 2026-11-29, two builds minutes apart, same scenes) | | threads as the kernel places them | bound to one hyper-thread of each fast core | |---|---|---| | copies on the fast cores (CPU_LOG, mean) | 28 % | 100 % | | texture threads asking the write watch and the guards, per frame | 28.8 ms (max 198) | 7.8 ms (max 34) | | texture refreshes, all threads, per frame | 36.6 ms | 13.6 ms | The player's words for the second column: "textures and models load instantly". ## The change `ask()` (stages 1 and 2: the threads a frame waits for and their helpers) and `keep_submit_core()` back the request with `SetThreadAffinityMask` when on Wine; stage 3 (the many threads ahead of a frame) keeps floating so idle slow cores still get used, and the title's own threads keep the siblings. The Wine check is the runtime's own (`wine_get_version`). Windows is untouched. PR: the next number.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-29 08:09:33 +00:00
Author
Owner

@⁠github-actions[bot] on GitHub · 2026-11-29 08:06 UTC · original

Please attach both logs from the run that went wrong. Without them we can only guess. Paste %LOCALAPPDATA% into the address bar of File Explorer to get there.

  1. The play log, in %LOCALAPPDATA%\victory\logs\: the newest victory-nvidia-play-<date>-<time>-<number>.log (from victory.exe) or victory-nvidia-<date>-<time>.log (from the script launcher). The window shows its path at the start, on the line Log: ....
  2. The crash log: %LOCALAPPDATA%\VIctory\data\7952987A\crashes.log, and, if there is one from that run, the newest victory-<date>-<time>-<number>.crash.log in %LOCALAPPDATA%\VIctory\data\7952987A\temp\.

Also say which GPU, Windows version (10 or 11)

**@⁠github-actions[bot]** on GitHub · 2026-11-29 08:06 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/2037#issuecomment-7252890800) Please attach both logs from the run that went wrong. Without them we can only guess. Paste `%LOCALAPPDATA%` into the address bar of File Explorer to get there. 1. The play log, in `%LOCALAPPDATA%\victory\logs\`: the newest `victory-nvidia-play-<date>-<time>-<number>.log` (from `victory.exe`) or `victory-nvidia-<date>-<time>.log` (from the script launcher). The window shows its path at the start, on the line `Log: ...`. 2. The crash log: `%LOCALAPPDATA%\VIctory\data\7952987A\crashes.log`, and, if there is one from that run, the newest `victory-<date>-<time>-<number>.crash.log` in `%LOCALAPPDATA%\VIctory\data\7952987A\temp\`. Also say which GPU, Windows version (10 or 11)
Author
Owner

@⁠birdneststream on GitHub · 2026-11-29 08:07 UTC · original

PR with the change: #2039.

**@⁠birdneststream** on GitHub · 2026-11-29 08:07 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/2037#issuecomment-7252896644) PR with the change: #2039.
Author
Owner

@⁠trustno1-coder on GitHub · 2026-11-30 15:37 UTC · original

Closing this because it was opened before v2026.11.29.01, and a great deal has changed since then. The latest release is v2026.11.30.01.

If this still happens, or still applies, on the latest release, please open a new issue. For a bug, attach both logs from that run:

  1. The play log: the newest victory-nvidia-play-<date>-<time>-<number>.log in %LOCALAPPDATA%\victory\logs\.
  2. The crash log: %LOCALAPPDATA%\VIctory\data\7952987A\crashes.log, plus the newest .crash.log in %LOCALAPPDATA%\VIctory\data\7952987A\temp\ if there is one from that run.
**@⁠trustno1-coder** on GitHub · 2026-11-30 15:37 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/2037#issuecomment-7283302440) Closing this because it was opened before v2026.11.29.01, and a great deal has changed since then. The latest release is [v2026.11.30.01](https://github.com/trustno1-coder/VIctory-NVIDIA/releases/tag/v2026.11.30.01). If this still happens, or still applies, on the latest release, please open a new issue. For a bug, attach both logs from that run: 1. The play log: the newest `victory-nvidia-play-<date>-<time>-<number>.log` in `%LOCALAPPDATA%\victory\logs\`. 2. The crash log: `%LOCALAPPDATA%\VIctory\data\7952987A\crashes.log`, plus the newest `.crash.log` in `%LOCALAPPDATA%\VIctory\data\7952987A\temp\` if there is one from that run.
This discussion has been locked. Commenting is limited to contributors.
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#2037
No description provided.