Build for x86-64-v3, and keep our threads on one core complex (VICTORY_CCD_CORES) #603
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/603"
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?
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by 0xkn0wh3r3 on 2026-11-28T01:46:12Z.
Summary
.cargo/config.tomlnow builds the workspace forx86-64-v3(AVX2, BMI1/2, FMA, F16C, LZCNT, MOVBE). Before this, the compiler kept to SSE2. The title already requires AVX2, since it is built for the console's Zen 2.RUSTFLAGS, when set, still overrides this. Trade-off: a CPU without AVX2 now stops with an illegal instruction before the launcher's own AVX2 check can explain why. This is noted inrun.rsand the README requirements.VICTORY_CCD_CORES=1(opt-in, off by default while it is tested). The rule applies where all cores report one efficiency class and there are two or more last-level caches: Ryzen 7900X, 7950X, 9900X, 9950X and their X3D parts. On such chips, the threads that already ask for the fast cores (cores::keep_*_on_fast_cores) stay on one core complex. That is the complex with the most processor sets, then the largest cache (the stacked one on an X3D), then the lowest set id. Measured on a 7900X, a handoff between complexes takes about 180 ns, against about 20 ns inside one. Hybrid Intel cores still go by efficiency class, as before.cores::settle()re-places them whenVICTORY_ABflips the switch (wired inqueue::frame_ends). Adiagbuild can compare both sides in the same scene withVICTORY_AB=20,VICTORY_CCD_CORES. With the switch off, behaviour is unchanged: on a multi-complex Ryzen the threads are told "any processor", which is what they had.Testing
cargo test --workspace --lockedpasses, exceptindirect::tests::host_list_budget_starts_empty_at_each_submissionandwarp_batch_charges_every_execution. Both already fail onmain(see #578).cargo clippywith-D warningsreports nothing in the changed files.mainitself does not pass clippy at the moment:victory-formats,victory-loaderandvictory-gpuhave existing lints.diagbuild withVICTORY_AB=20,VICTORY_CCD_CORES. For v3, compare against a build made withRUSTFLAGS=""in the same scene.Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by JohnTitor2003 on 2026-11-28T16:46:15Z.
A first test report on a 7950X, by the in-run A/B this PR wires up. Short version: the switch places the threads as described, and I can't measure a gain from it here; if anything the mean frame is about 1 ms longer with it on.
Setup: this PR's commit (
d464621) cherry-picked onto v2026.11.28.03 (f4608f0), no other changes, diag profile, so both sides are the x86-64-v3 build. Ryzen 9 7950X (16 cores, 32 threads, two complexes), RTX 5080 16 GB, 32 GB DDR5-6000, Windows 11. Series S, DLSS Performance (540), frame generation off, no frame cap, launcher defaults otherwise.VICTORY_AB=20,VICTORY_CCD_CORES, open-world free roam on foot and by car, 27 phases of 20 s in the world (14 off, 13 on), 5,000 to 10,500 draws a frame.The switch does what it says. The unit test here prints "32 sets, 2 last-level caches, one complex: 16 sets". In the run,
our threads' processors (VICTORY_CCD_CORES)alternatesfast=16 of=32 threads=16andfast=0 of=32 threads=16at each phase.The frame:
So on this PC keeping the 16 asking threads on one complex does not shorten the frame. A guess at why, not measured: with
VICTORY_FAST_CORES=2the list translators and the title's own threads still use both complexes, so the frame's hand-offs to and from them cross either way, and 16 of our threads now share 16 logical processors with whatever of the title's lands there.No crash. One error line in the log, from Streamline at load-in ("presentCommon() was not observed"), with frame generation off. Caveats: one run of about nine minutes, free roam and not a fixed route.
Tested and written with an AI assistant (Claude Code); the run was on my machine. No game files attached.
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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.