cores: DARNER_SUBMIT_CORE_ALONE also gives the submitting thread a whole core on a CPU with V-Cache on one die #607

Open
HQasper wants to merge 1 commit from HQasper/Darner:pr/submit-core-split into Main
First-time contributor

Contributor role (optional)

  • Fluxer ID:

What it changes

  • The problem on main: read from the code, then measured in game. DARNER_SUBMIT_CORE_ALONE=1 keeps a whole core for the thread that prepares and sends submissions only on processors without a half with a larger L3. On a 9950X3D (V-Cache on one die), with the process not put on that die (DARNER_CACHE_CORES off, the default), the switch did nothing. There the prison cell's frames take turns at about 17.7 and 25.6 ms; the slow ones come while the title's next frame runs beside the submitting thread.

With the switch on such a processor, the last core of the die with the larger cache is kept for the submitting thread alone, and the process runs on all the other cores of both dies. With DARNER_CACHE_CORES on, and on every other processor, nothing changes. The switch stays off by default; the README row has the measurement.

How it was tested

  • Tested revision: 4ff1782 (the same code as 843eb71, which adds the measurement to the README row and to the commit message).

  • Commands and results: the game A/B below. B's log says which core it kept ("core=14 set=270"); A's log has no such line (main does nothing with the switch on this processor).

  • Changes a default: no (the switch is off by default).

  • A/B result: the prison cell bench, 60-210 s after the world's first frame, with DARNER_SUBMIT_CORE_ALONE=1, DARNER_RANGE_LOCK=1, DARNER_ALIAS_SHARE=1 and DARNER_VIEW_THREADS=8 in both. A is main at c8258f9, where the switch does nothing on this processor; B is this branch. Two runs each, interleaved with a third build in one series (A, other, B, A, other, B). The first run of each build came right after its shader preload.

    A (main) B (this branch)
    median fps 46.6, 49.4 50.1, 50.0
    the submitting thread's preparing, ms a frame 12.6, 11.7 10.3, 10.3
    p99 frame time 31.6, 30.8 ms 32.5, 29.9 ms
    longest gap 54.7, 63.5 ms 160.6, 74.2 ms

    The longest gaps of all runs fall where the world streams in, about 60-70 s after its first frame. The 160.6 ms one (B's first run) was there too. On our earlier branch the same change gave 10.4-11.0 against 11.7-12.2 ms preparing in five runs with it and four without.

  • Gates run on 4ff1782:

    • cargo clippy --workspace --all-targets --locked -- -D warnings: passed.
    • cargo clippy --workspace --all-targets --all-features --locked -- -D warnings: passed.
    • cargo test --workspace --locked --no-fail-fast: all passed except one darner-gpu library test, watch::watch_pipe_epoch_tests::ask_once_delta_reask_direct_carves_refreshes_and_updates_page_epochs. It passes alone. A second cargo test -p darner-gpu --lib failed another one, watch::tests::an_asking_begun_first_is_made_and_more_is_asked_for, which also passes alone. On main c8258f9 under the same load (other builds running), cargo test -p darner-gpu --lib failed 1-2 tests in each of 3 runs, the first of these among them. This change touches only cores.rs and the README.
  • Gameplay: RTX 5090, Series X profile, 1440p, DLSS Quality, frame generation off, hardware ray tracing.

  • Shader wave sizes tested: not relevant.

  • Hardware dependence: only processors with a larger L3 on one die (Ryzen X3D with two dies); others are unchanged. Measured on a 9950X3D only.

  • Coverage gaps: one PC; two runs per build; DARNER_CACHE_CORES=1 together with the switch not run (unchanged by the code).

Checklist

  • I ran this change in the game, or say below why it can't be (docs, tests only).
  • This PR contains one change based on main.
  • The diff follows docs/asset-policy.md.
  • I recorded this PR's dependencies below.
    • Depends on: none

Checked for overlap

  • I searched the open pull requests for the same issue and for the files this touches.
  • Related PRs: #495 (open; DARNER_CCD_SPLIT places the title's threads and ours on the two dies of a processor with like dies; it says it is not combined with DARNER_SUBMIT_CORE_ALONE), #322 (open; the prelude worker's priority, also in cores.rs).
  • Replaces or overlaps: none found
## Contributor role (optional) - Fluxer ID: ## What it changes - The problem on main: read from the code, then measured in game. `DARNER_SUBMIT_CORE_ALONE=1` keeps a whole core for the thread that prepares and sends submissions only on processors without a half with a larger L3. On a 9950X3D (V-Cache on one die), with the process not put on that die (`DARNER_CACHE_CORES` off, the default), the switch did nothing. There the prison cell's frames take turns at about 17.7 and 25.6 ms; the slow ones come while the title's next frame runs beside the submitting thread. With the switch on such a processor, the last core of the die with the larger cache is kept for the submitting thread alone, and the process runs on all the other cores of both dies. With `DARNER_CACHE_CORES` on, and on every other processor, nothing changes. The switch stays off by default; the README row has the measurement. ## How it was tested - Tested revision: 4ff1782 (the same code as 843eb71, which adds the measurement to the README row and to the commit message). - Commands and results: the game A/B below. B's log says which core it kept ("core=14 set=270"); A's log has no such line (main does nothing with the switch on this processor). - Changes a default: no (the switch is off by default). - A/B result: the prison cell bench, 60-210 s after the world's first frame, with `DARNER_SUBMIT_CORE_ALONE=1`, `DARNER_RANGE_LOCK=1`, `DARNER_ALIAS_SHARE=1` and `DARNER_VIEW_THREADS=8` in both. A is main at c8258f9, where the switch does nothing on this processor; B is this branch. Two runs each, interleaved with a third build in one series (A, other, B, A, other, B). The first run of each build came right after its shader preload. | | A (main) | B (this branch) | |---|---|---| | median fps | 46.6, 49.4 | 50.1, 50.0 | | the submitting thread's preparing, ms a frame | 12.6, 11.7 | 10.3, 10.3 | | p99 frame time | 31.6, 30.8 ms | 32.5, 29.9 ms | | longest gap | 54.7, 63.5 ms | 160.6, 74.2 ms | The longest gaps of all runs fall where the world streams in, about 60-70 s after its first frame. The 160.6 ms one (B's first run) was there too. On our earlier branch the same change gave 10.4-11.0 against 11.7-12.2 ms preparing in five runs with it and four without. - Gates run on 4ff1782: - `cargo clippy --workspace --all-targets --locked -- -D warnings`: passed. - `cargo clippy --workspace --all-targets --all-features --locked -- -D warnings`: passed. - `cargo test --workspace --locked --no-fail-fast`: all passed except one darner-gpu library test, `watch::watch_pipe_epoch_tests::ask_once_delta_reask_direct_carves_refreshes_and_updates_page_epochs`. It passes alone. A second `cargo test -p darner-gpu --lib` failed another one, `watch::tests::an_asking_begun_first_is_made_and_more_is_asked_for`, which also passes alone. On main c8258f9 under the same load (other builds running), `cargo test -p darner-gpu --lib` failed 1-2 tests in each of 3 runs, the first of these among them. This change touches only `cores.rs` and the README. - Gameplay: RTX 5090, Series X profile, 1440p, DLSS Quality, frame generation off, hardware ray tracing. - Shader wave sizes tested: not relevant. - Hardware dependence: only processors with a larger L3 on one die (Ryzen X3D with two dies); others are unchanged. Measured on a 9950X3D only. - Coverage gaps: one PC; two runs per build; `DARNER_CACHE_CORES=1` together with the switch not run (unchanged by the code). ## Checklist - [x] I ran this change in the game, or say below why it can't be (docs, tests only). - [x] This PR contains one change based on `main`. - [x] The diff follows `docs/asset-policy.md`. - [x] I recorded this PR's dependencies below. - Depends on: none ## Checked for overlap - [x] I searched the open pull requests for the same issue and for the files this touches. - Related PRs: #495 (open; `DARNER_CCD_SPLIT` places the title's threads and ours on the two dies of a processor with like dies; it says it is not combined with `DARNER_SUBMIT_CORE_ALONE`), #322 (open; the prelude worker's priority, also in `cores.rs`). - Replaces or overlaps: none found
DARNER_SUBMIT_CORE_ALONE=1 acted only where the processor has no half
with a larger cache. On one that has (a 9950X3D) and with the process
not put on that half (DARNER_CACHE_CORES off, the default), the switch
now keeps that half's last core for the submitting thread alone, the
process on all the other cores of both halves. The prison cell's frames
take turns at 17.7 and 25.6 ms there, the slow ones while the title's
next frame runs beside the submitting thread.

Measured against main c8258f9 with the switch on in both (9950X3D,
RTX 5090, hardware RT, DLSS Quality, 1440p, two runs each): the
submitting thread's preparing 12.6 and 11.7 -> 10.3 and 10.3 ms a
frame, median 46.6 and 49.4 -> 50.1 and 50.0 fps. Still off by default.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
TrustNo1 changed title from [pr-performance] cores: DARNER_SUBMIT_CORE_ALONE also gives the submitting thread a whole core on a CPU with V-Cache on one die to cores: DARNER_SUBMIT_CORE_ALONE also gives the submitting thread a whole core on a CPU with V-Cache on one die 2026-12-06 03:26:21 +00:00
Owner

Test needed — commit 843eb711; what to check:

  • The problem on main: read from the code, then measured in game. DARNER_SUBMIT_CORE_ALONE=1 keeps a whole core for the thread that prepares and sends submissions only on processors without a half with a larger L3. On a 9950X3D (V-Cache on one die), with the process not put on that die (DARNER_CACHE_CORES off, the default), the switch did nothing. There the prison cell's frames take turns at about 17.7 and 25.6 ms; the slow ones come while the title's next frame runs beside the submitting thread.

With the switch on such a processor, the last core of the die with the larger cache is kept for the submitting thread alone, and the process runs on all the other cores of both dies. With DARNER_CACHE_CORES on, and on every other processor, nothing changes. The switch stays off by default; the README row has the measurement.

Evidence to post: card + driver, settings, commit tested, before/after (switch off vs on, two runs each), fps median and p99, and one line saying you looked at the picture.

Reply testing to take this run; it's free again after 24 h with no results.

**Test needed** — commit `843eb711`; what to check: - The problem on main: read from the code, then measured in game. `DARNER_SUBMIT_CORE_ALONE=1` keeps a whole core for the thread that prepares and sends submissions only on processors without a half with a larger L3. On a 9950X3D (V-Cache on one die), with the process not put on that die (`DARNER_CACHE_CORES` off, the default), the switch did nothing. There the prison cell's frames take turns at about 17.7 and 25.6 ms; the slow ones come while the title's next frame runs beside the submitting thread. With the switch on such a processor, the last core of the die with the larger cache is kept for the submitting thread alone, and the process runs on all the other cores of both dies. With `DARNER_CACHE_CORES` on, and on every other processor, nothing changes. The switch stays off by default; the README row has the measurement. Evidence to post: card + driver, settings, commit tested, before/after (switch off vs on, two runs each), fps median and p99, and one line saying you looked at the picture. Reply `testing` to take this run; it's free again after 24 h with no results.
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u 'pr/submit-core-split:HQasper-pr/submit-core-split'
git switch 'HQasper-pr/submit-core-split'

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.

git switch 'Main'
git merge --no-ff 'HQasper-pr/submit-core-split'
git switch 'HQasper-pr/submit-core-split'
git rebase 'Main'
git switch 'Main'
git merge --ff-only 'HQasper-pr/submit-core-split'
git switch 'HQasper-pr/submit-core-split'
git rebase 'Main'
git switch 'Main'
git merge --no-ff 'HQasper-pr/submit-core-split'
git switch 'Main'
git merge --squash 'HQasper-pr/submit-core-split'
git switch 'Main'
git merge --ff-only 'HQasper-pr/submit-core-split'
git switch 'Main'
git merge 'HQasper-pr/submit-core-split'
git push origin 'Main'
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
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
TrustNo1/Darner!607
No description provided.