Cores: VICTORY_SLOW_CORES keeps the list translators on the slow cores of a hybrid processor (opt-in) #4069
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!4069
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-4069"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@kMagic142 on GitHub · 2026-11-30 15:30 UTC · original
kMagic142:pr-hybrid-cores→main· +103 −1 · 1 files · 2 commits · openWhat it changes
On a processor with fast and slow cores,
cores.rskeeps the threads a frame waits for on the fast cores (VICTORY_FAST_CORES, stage 2 by default). The eight list translators (victory-list-*) ask for no cores below stage 3, so Windows runs them on fast and slow cores alike, and they compete for the fast cores with the submitting thread and its helpers. Stage 3 puts them on the fast cores, which measured worse (table below).VICTORY_SLOW_CORES(unset or0: nothing changes):1: the list translators ask for the slow cores' CPU sets (keep_list_worker), whateverVICTORY_FAST_CORESsays of them. Their priority does not change: it comes fromVICTORY_LIST_PRIORITYorVICTORY_HELPER_PRIORITYas before, so it is above normal invictory play.2: alsovictory-late-wait,victory-heap-syncand thevictory-records/victory-viewspools (a check inask). This part came from a profile and was never timed on its own. It is the second commit and can be dropped.The submitting, sending and relay threads and the refresh helpers stay where
VICTORY_FAST_CORESputs them. The title's threads are not touched. If every core is in one efficiency class,slow_offinds no slow cores and the switch does nothing.VICTORY_CACHE_CORESonly places processors of that kind, so the two switches never apply on the same processor.The slow cores are the CPU sets of every efficiency class below the fastest.
slow_ofsits next tofast_ofand reads the sameGetSystemCpuSetInformationrecords. There are two new checks: one test forslow_of, and one that no thread a frame waits for is in the stage-2 list.How it was tested
victory playsets it.v2026.11.28.03with 250 to 390 commits of our own changes. On that tree a local placement switch did what stage 1 does here: the translators on the slow cores, and the threads a frame waits for on the fast ones. That tag applies the title's thread affinities as the title asks for them. On main that isVICTORY_TITLE_AFFINITY=keep, not the defaultfast(see the last point).VICTORY_HELPER_PRIORITY=1givenVICTORY_HELPER_PRIORITY=1givenfree)freeand translators on the fast cores (VICTORY_FAST_CORES=3)fastremap with #2803's spread. That puts the title's0xffworkers on the 8 fast cores and its other pools on the slow cores. The shot ran at 22.62 ms against 17.65 and 17.88 with the title's affinities applied as asked. We did not measure main's own remap, and we do not know what stage 1 does under it.SetThreadSelectedCpuSetsis accepted but not applied (#2039), so the switch does nothing there.cargo testpassed for the crates it touches: yes, on main (41adb551) with this branch applied:cargo xwin check -p victorypasses, andvictory-gpu'scores::testspass (4 passed, 0 failed, 2 ignored), the newthe_slow_cores_are_all_but_the_fast_ones_if_there_are_fast_onesamong them.Checked for overlap
cores.rs, hybrid, fast/slow cores, affinity, placement). Related:VICTORY_FAST_CORES's default from 2 to 1, so the pools stop asking for the fast cores. It does not place the translators, and the two patches apply to main together.VICTORY_TITLE_AFFINITY=fast. On a 265KF it found our translators, roaming the slow cores above normal, putting those pools aside. Under stage 1 the translators share the slow cores with those pools. We have not measured that combination: our numbers are with the title's affinities as asked.victory-submiton hybrid processors. #2039 backs fast-core requests with an affinity mask under Wine. Both changeask/keep_submit_core, and neither applies to main any more as it stands. This PR does not touch the submitting thread.VICTORY_HELPERS_RAISED) and #3513 (VICTORY_SPLIT_CCD, two-CCD Ryzens) each apply to main together with this one.docs/rig-launcher.md's-Cores pcoressets the process's default CPU sets to the fast cores. A thread's own selected sets win over the process's, so with both on, the translators still go to the slow cores. That page already notes that the translators measured better off the fast cores.@nicolasabosch on GitHub · 2026-11-30 23:19 UTC · original
Tested on an RTX 4070 Laptop 8 GB with
VICTORY_SLOW_CORES=1and=2: no measurable fps difference in this scene (1 run each).What was built
e1251c31with four opt-in PRs merged together and nothing else changed: #4069, #3757, #3614 and #4207. This PR's head was361c8965.Setup
victory play --series-s --dlss performance --framegen 2, with no fps cap and the window minimized.host:reports, about 200 s. These are real frames, not generated ones.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. The submit thread did get lighter with it, at 33.2 and 33.0 ms against 35.4 and 37.3 ms for the control, and refreshes fell from 12.5–13.9 to about 11.7 ms. The frame did not follow. CPU: i9-14900HX, 8 P-cores with hyper-threading and 16 E-cores.
Not tested: driving, camera turns, interiors, an image comparison, other GPUs.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.