cores: the V-Cache placement of #1093 opt-in (VICTORY_CACHE_CORES=1): on a 9950X3D it costs 28 % of the median fps #1662
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1662"
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 Rafa7046 on 2026-11-28T23:10:23Z.
#1093 puts the whole process, the title's threads too, on the V-Cache CCD by default. On the CPU it was written for, it loses more than it gains on current
main. This makes it opt-in (VICTORY_CACHE_CORES=1); nothing else changes.VICTORY_CACHE_CORES=0still means off.Setup: Ryzen 9 9950X3D, RTX 5080 16 GB, 64 GB, Windows 11 26300. Series X, 1440p, DLSS Performance, frame generation off, RT off, diag build of
mainat923e38c. A script plays the prologue cutscenes and then stands one minute on Jason's boat, with the game window in front. The sessions alternated in one afternoon on one exe.main923e38cVICTORY_CACHE_CORES=0, 2 sessionsThe same split showed up on the pre-merge branch (
e7d8150+ #1093): boat 42.5 / 41.9 against 37.2, cutscenes 37.2 / 39.0 against 51.5.VICTORY_SUBMIT_CORE=0and=ccd1did not change it, so it follows the process being confined. A local switch that placed only our own threads on the V-Cache CCD, leaving the title's free, gave neither the gain nor the loss. So the boat's gain is the title's code under the larger cache, and the loss is the title's threads short of cores.Checks: the build passes,
cargo test -p victory-gpu --lib cores::passes, and clippy reports nothing incores.rs. A run of this branch logs "the process is not put on the logical processors under the larger cache (VICTORY_CACHE_CORES=1: it is)".Measurements and this change were prepared with an AI assistant (Claude Code); the runs were played on my machine.
🤖 Generated with Claude Code
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by SkylerizMe on 2026-11-29T00:47:19Z.
A second 9950X3D data point, where the default placement helps slightly instead of costing.
PC: Ryzen 9 9950X3D (X3D Gaming Mode off, 32 logical processors), RTX 5080 16 GB (driver 621.10), 32 GB RAM, Windows 11.
Build:
923e38c+ #1444 + #592 + the XMA decoder thread at highest priority (from #446) + three VIctory-Neo commits outside thread placement (VICTORY_OWN_CPUSoff).Settings: Series S, 1280x720 scene (DLSS Quality), DLSS frame generation 2x, ray tracing off, warm cache. The same stretch of the opening, cutscenes included, with the same movements, back to back, about 2.5 minutes each:
VICTORY_CACHE_CORES=0Longer runs with the placement on, same settings: 34.3 median over 4.8 minutes, and 36.1 over 10.6 minutes with 7 frames over 100 ms. The logs confirm each mode: the process on the larger cache's processors with
victory-submiton its own core, andVICTORY_CACHE_CORES=0: the process is not put on the logical processors under the larger cache.So the 28 % loss in Rafa7046's runs doesn't reproduce on this PC; the scene or settings may be the difference. If it does become opt-in, a note for 9950X3D owners in the README or F1 would help, since it's worth trying here.
(Written with Claude; numbers are from this PC's logs.)
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Bazovsky on 2026-11-29T00:48:11Z.
Thanks @Rafa7046 for the detailed 9950X3D cutscene vs boat measurements! Profiling per-thread CPU on a 9950X3D showed ~8.8 cores of combined load crammed onto the 7 shared CCD0 cores during cutscenes — largely because
VICTORY_HELPER_PRIORITY=1left all 8victory-list-*threads (~2.86 cores) atABOVE_NORMAL, starving submit-blocking helpers (heaps_endjumped 2.4–3.7×) and preempting normal-priority title threads anduploads ahead.I opened #1857 to drop
victory-list-*toBELOW_NORMALwhen placed on one V-Cache CCD (keepingHostListin CCD0 V-Cache without cross-CCDplan_cardtraffic, while leaving non-placed CPUs unchanged) and moveuploads ahead,victory-picked, andvictory-aheadonto CCD1. In a 3×3 interleaved ABABAB across 150 s of prologue cutscenes on 9950X3D + RTX 5090, that raised median FPS from 35.5 → 37.8 fps (+6.5%, zero overlap), cutheaps_endfrom 0.97 → 0.40 ms, and cuttexture::aheadlatency from 0.7–1.2 → 0.2–0.3 ms (-70% dropped uploads).Would love to see how #1857 measures on your cutscene + boat script!
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Rafa7046 on 2026-11-29T03:49:25Z.
@Bazovsky I measured #1857 with my script, on today's
main(568c5e5), with the same machine and setup as above. Two sessions of each, interleaved, RT off:main568c5e5VICTORY_CACHE_CORES=0#1857 doesn't change the result here. I think the reason is
VICTORY_HELPER_PRIORITY.helper_priority()isNoneunless the variable is set, so with default settings thevictory-list-*threads already run at normal priority, and #1857 only moves them from normal to below normal. TheABOVE_NORMALcontention you profiled comes fromVICTORY_HELPER_PRIORITY=1, which isn't the default. Without it, the title's threads still have 7 cores in the cutscenes, which is where my loss is. That matches what I saw before: placing only our own threads on the V-Cache CCD gave neither the gain nor the loss.@SkylerizMe thanks for the second data point. Two things may explain the difference:
On my side, the loss is in the cutscenes, not in the steady scene. Agreed on a note for 9950X3D owners in the README or F1 if it becomes opt-in.
Measurements prepared with an AI assistant (Claude Code); the runs were played on my machine.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Bazovsky on 2026-11-29T05:32:22Z.
Thanks @Rafa7046 for running the interleaved A/B of #1857 on
main(568c5e5)! Your diagnosis matches the code exactly:apps/victory/src/play.rs:79) setsVICTORY_HELPER_PRIORITY=1, which is whyvictory-list-*threads were running atABOVE_NORMALon CCD0 in our launcher runs (where #1857 recovered+2.3 fpsand cut dropped uploads by-70%).VICTORY_HELPER_PRIORITY=1in the environment,helper_priority()(cores.rs:347) returnsNone, sovictory-list-*is already at normal priority; #1857 only nudges boat prep slightly (16.6/16.1 -> 16.3/15.7 ms) and doesn't change the 7-core cutscene CPU ceiling.That cleanly confirms #1662 and #1857 address two separate issues (the 7-core cutscene ceiling vs.
VICTORY_HELPER_PRIORITY=1launcher-path contention + CCD1aheadworkers) and complement each other well. Agreed on a 9950X3D note in README/F1 if placement becomes opt-in.Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Bazovsky on 2026-11-29T11:00:59Z.
A third 9950X3D, for the note in the README: here the placement is a small gain in both kinds of scene, so with
victory playit is worth tryingVICTORY_CACHE_CORES=1.Ryzen 9 9950X3D, RTX 5090, 62 GB, Windows 11 26300; 2560x1440, DLSS Quality, frame generation off, ray tracing off.
e1f2eb6with #1857 and my other PRs that are in main now, one exe, started withvictory play(which setsVICTORY_HELPER_PRIORITY=1), runs in turn:VICTORY_CACHE_CORES=0VICTORY_HELPER_PRIORITY=1is one difference between our setups; I did not test without it.Measured unattended by an AI assistant (Claude Code) on my PC.