cores: the V-Cache placement of #1093 opt-in (VICTORY_CACHE_CORES=1): on a 9950X3D it costs 28 % of the median fps #1662

Manually merged
github merged 1 commit from github-bot/gh-1662 into main 2026-11-29 08:21:16 +00:00 AGit
Owner

@⁠Rafa7046 on GitHub · 2026-11-28 23:10 UTC · original
Rafa7046:cache-cores-opt-in → main · +12 −4 · 1 files · 1 commits · merged 2026-11-29 08:16 UTC

#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=0 still 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 main at 923e38c. 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.

main 923e38c Median fps Cutscenes Boat Preparing (boat)
Placed (default until now), 3 sessions 27.9 / 28.8 / 24.9 36.2 / 40.2 / 34.9 43.2 / 43.2 / 41.1 16.8 / 15.8 / 18.4 ms
VICTORY_CACHE_CORES=0, 2 sessions 38.8 / 37.9 53.1 / 54.0 39.3 / 39.0 19.8 / 20.0 ms
  • The boat (a steady scene) gains about 9% placed, in line with the PR's 90 s intro measurement.
  • The cutscenes lose about 30%, and so does the second cutscene, where the title streams and animates.
  • Over the whole run the median goes from 38.4 to 27.2 fps. The two groups do not overlap.

The 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=0 and =ccd1 did 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 in cores.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

**@⁠Rafa7046** on GitHub · 2026-11-28 23:10 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1662) `Rafa7046:cache-cores-opt-in` → `main` · +12 −4 · 1 files · 1 commits · merged 2026-11-29 08:16 UTC #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=0` still 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 `main` at `923e38c`. 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. | `main` `923e38c` | Median fps | Cutscenes | Boat | Preparing (boat) | |---|---:|---:|---:|---:| | Placed (default until now), 3 sessions | 27.9 / 28.8 / 24.9 | 36.2 / 40.2 / 34.9 | 43.2 / 43.2 / 41.1 | 16.8 / 15.8 / 18.4 ms | | `VICTORY_CACHE_CORES=0`, 2 sessions | **38.8 / 37.9** | **53.1 / 54.0** | 39.3 / 39.0 | 19.8 / 20.0 ms | - **The boat** (a steady scene) gains about 9% placed, in line with the PR's 90 s intro measurement. - **The cutscenes** lose about 30%, and so does the second cutscene, where the title streams and animates. - **Over the whole run** the median goes from 38.4 to 27.2 fps. The two groups do not overlap. The 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=0` and `=ccd1` did 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 in `cores.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](https://claude.com/claude-code)
On a 9950X3D (the CPU #1093 was written for) with an RTX 5080, main at
923e38c, RT off, the prologue's cutscenes then a minute on Jason's boat,
alternating runs: placed (the default until now) median 27.9 / 28.8 / 24.9
fps, cutscenes 36.2 / 40.2 / 34.9, boat 43.2 / 43.2 / 41.1; not placed
median 38.8 / 37.9, cutscenes 53.1 / 54.0, boat 39.3 / 39.0. The steady
boat gains about 9 %, the run as a whole loses 28 % of its median.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-28 23:13:35 +00:00
Author
Owner

@⁠SkylerizMe on GitHub · 2026-11-29 00:47 UTC · original

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_CPUS off).
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:

Placement on (default) VICTORY_CACHE_CORES=0
Median fps 33.5 32.9
Slowest 10% 29.5 27.3
Frames over 100 ms 9 10
Preparing per frame (median) 21.8 ms 19.3 ms

Longer 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-submit on its own core, and VICTORY_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.)

**@⁠SkylerizMe** on GitHub · 2026-11-29 00:47 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1662#issuecomment-7248350608) 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_CPUS` off). **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: | | Placement on (default) | `VICTORY_CACHE_CORES=0` | |---|---:|---:| | Median fps | 33.5 | 32.9 | | Slowest 10% | 29.5 | 27.3 | | Frames over 100 ms | 9 | 10 | | Preparing per frame (median) | 21.8 ms | 19.3 ms | Longer 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-submit` on its own core, and `VICTORY_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.)
Author
Owner

@⁠Bazovsky on GitHub · 2026-11-29 00:48 UTC · original

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=1 left all 8 victory-list-* threads (~2.86 cores) at ABOVE_NORMAL, starving submit-blocking helpers (heaps_end jumped 2.4–3.7×) and preempting normal-priority title threads and uploads ahead.

I opened #1857 to drop victory-list-* to BELOW_NORMAL when placed on one V-Cache CCD (keeping HostList in CCD0 V-Cache without cross-CCD plan_card traffic, while leaving non-placed CPUs unchanged) and move uploads ahead, victory-picked, and victory-ahead onto 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), cut heaps_end from 0.97 → 0.40 ms, and cut texture::ahead latency 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!

**@⁠Bazovsky** on GitHub · 2026-11-29 00:48 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1662#issuecomment-7248360921) 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=1` left all 8 `victory-list-*` threads (~2.86 cores) at `ABOVE_NORMAL`, starving submit-blocking helpers (`heaps_end` jumped 2.4–3.7×) and preempting normal-priority title threads and `uploads ahead`. I opened #1857 to drop `victory-list-*` to `BELOW_NORMAL` when placed on one V-Cache CCD (keeping `HostList` in CCD0 V-Cache without cross-CCD `plan_card` traffic, while leaving non-placed CPUs unchanged) and move `uploads ahead`, `victory-picked`, and `victory-ahead` onto 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)**, cut `heaps_end` from **0.97 → 0.40 ms**, and cut `texture::ahead` latency 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!
Author
Owner

@⁠Rafa7046 on GitHub · 2026-11-29 03:49 UTC · original

@⁠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:

main 568c5e5 Median fps Cutscenes Boat Preparing (boat)
Placed (default) 26.6 / 27.8 37.4 / 39.9 41.3 / 42.6 16.6 / 16.1 ms
+ #1857, placed 26.8 / 27.6 36.7 / 38.5 42.8 / 42.1 16.3 / 15.7 ms
VICTORY_CACHE_CORES=0 37.8 / 37.2 51.8 / 53.0 37.6 / 37.8 19.5 / 19.5 ms

#1857 doesn't change the result here. I think the reason is VICTORY_HELPER_PRIORITY. helper_priority() is None unless the variable is set, so with default settings the victory-list-* threads already run at normal priority, and #1857 only moves them from normal to below normal. The ABOVE_NORMAL contention you profiled comes from VICTORY_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:

  • It's one session each way. 33.5 against 32.9 is within the run-to-run spread I see (1–3 fps).
  • Your build carries #1444, #592 and the XMA thread at highest priority, which change what competes for those 7 cores.

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.

**@⁠Rafa7046** on GitHub · 2026-11-29 03:49 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1662#issuecomment-7250279064) @⁠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: | `main` `568c5e5` | Median fps | Cutscenes | Boat | Preparing (boat) | |---|---:|---:|---:|---:| | Placed (default) | 26.6 / 27.8 | 37.4 / 39.9 | 41.3 / 42.6 | 16.6 / 16.1 ms | | + #1857, placed | 26.8 / 27.6 | 36.7 / 38.5 | 42.8 / 42.1 | 16.3 / 15.7 ms | | `VICTORY_CACHE_CORES=0` | **37.8 / 37.2** | **51.8 / 53.0** | 37.6 / 37.8 | 19.5 / 19.5 ms | #1857 doesn't change the result here. I think the reason is `VICTORY_HELPER_PRIORITY`. `helper_priority()` is `None` unless the variable is set, so with default settings the `victory-list-*` threads already run at normal priority, and #1857 only moves them from normal to below normal. The `ABOVE_NORMAL` contention you profiled comes from `VICTORY_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: - It's one session each way. 33.5 against 32.9 is within the run-to-run spread I see (1–3 fps). - Your build carries #1444, #592 and the XMA thread at highest priority, which change what competes for those 7 cores. 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.
Author
Owner

@⁠Bazovsky on GitHub · 2026-11-29 05:32 UTC · original

Thanks @⁠Rafa7046 for running the interleaved A/B of #1857 on main (568c5e5)! Your diagnosis matches the code exactly:

  • The launcher (apps/victory/src/play.rs:79) sets VICTORY_HELPER_PRIORITY=1, which is why victory-list-* threads were running at ABOVE_NORMAL on CCD0 in our launcher runs (where #1857 recovered +2.3 fps and cut dropped uploads by -70%).
  • When running directly without VICTORY_HELPER_PRIORITY=1 in the environment, helper_priority() (cores.rs:347) returns None, so victory-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=1 launcher-path contention + CCD1 ahead workers) and complement each other well. Agreed on a 9950X3D note in README/F1 if placement becomes opt-in.

**@⁠Bazovsky** on GitHub · 2026-11-29 05:32 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1662#issuecomment-7251312421) Thanks @⁠Rafa7046 for running the interleaved A/B of #1857 on `main` (`568c5e5`)! Your diagnosis matches the code exactly: - The launcher (`apps/victory/src/play.rs:79`) sets `VICTORY_HELPER_PRIORITY=1`, which is why `victory-list-*` threads were running at `ABOVE_NORMAL` on CCD0 in our launcher runs (where #1857 recovered `+2.3 fps` and cut dropped uploads by `-70%`). - When running directly without `VICTORY_HELPER_PRIORITY=1` in the environment, `helper_priority()` (`cores.rs:347`) returns `None`, so `victory-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=1` launcher-path contention + CCD1 `ahead` workers) and complement each other well. Agreed on a 9950X3D note in README/F1 if placement becomes opt-in.
github manually merged commit a908ddce06 into main 2026-11-29 08:21:16 +00:00
Author
Owner

@⁠Bazovsky on GitHub · 2026-11-29 11:00 UTC · original

A third 9950X3D, for the note in the README: here the placement is a small gain in both kinds of scene, so with victory play it is worth trying VICTORY_CACHE_CORES=1.

Ryzen 9 9950X3D, RTX 5090, 62 GB, Windows 11 26300; 2560x1440, DLSS Quality, frame generation off, ray tracing off. e1f2eb6 with #1857 and my other PRs that are in main now, one exe, started with victory play (which sets VICTORY_HELPER_PRIORITY=1), runs in turn:

placed VICTORY_CACHE_CORES=0
Prologue cutscenes, 140 s of 3D, two pairs 38.2 / 34.8 fps 35.5 / 30.5 fps
A loaded save standing in the first playable scene, 70 s, two runs each 38.9 / 39.4 fps 37.3 / 38.1 fps
The submitting thread there 24.1 ms a frame 25.8 ms a frame
  • That is 8 % and 14 % in the two cutscene pairs and about 4 % standing still. The cutscene runs vary by some 10 % between pairs, so the direction is what I would take from them.
  • I did not reproduce the loss @⁠Rafa7046 measured. The launcher's VICTORY_HELPER_PRIORITY=1 is one difference between our setups; I did not test without it.

Measured unattended by an AI assistant (Claude Code) on my PC.

**@⁠Bazovsky** on GitHub · 2026-11-29 11:00 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1662#issuecomment-7254821353) A third 9950X3D, for the note in the README: here the placement is a small gain in both kinds of scene, so with `victory play` it is worth trying `VICTORY_CACHE_CORES=1`. Ryzen 9 9950X3D, RTX 5090, 62 GB, Windows 11 26300; 2560x1440, DLSS Quality, frame generation off, ray tracing off. `e1f2eb6` with #1857 and my other PRs that are in main now, one exe, started with `victory play` (which sets `VICTORY_HELPER_PRIORITY=1`), runs in turn: | | placed | `VICTORY_CACHE_CORES=0` | |---|---|---| | Prologue cutscenes, 140 s of 3D, two pairs | 38.2 / 34.8 fps | 35.5 / 30.5 fps | | A loaded save standing in the first playable scene, 70 s, two runs each | 38.9 / 39.4 fps | 37.3 / 38.1 fps | | The submitting thread there | 24.1 ms a frame | 25.8 ms a frame | - That is 8 % and 14 % in the two cutscene pairs and about 4 % standing still. The cutscene runs vary by some 10 % between pairs, so the direction is what I would take from them. - I did not reproduce the loss @⁠Rafa7046 measured. The launcher's `VICTORY_HELPER_PRIORITY=1` is one difference between our setups; I did not test without it. Measured unattended by an AI assistant (Claude Code) on my PC.
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!1662
No description provided.