[pr-performance][NVIDIA] Play defaults: send free first and sweep ahead on #36

Open
Coder629nx wants to merge 1 commit from Coder629nx/Darner:darner-two-switches into main
First-time contributor
  • Fluxer ID: — already holds the Contributor role on the Darner Fluxer server.

What it changes

darner.exe's built-in settings (apps/darner/src/play.rs) and scripts/play-nvidia.ps1 now set two existing switches on by default:

  • DARNER_SEND_FREE_FIRST=1 — a submission that must wait for earlier card work is split: its first lists, which need nothing from that work, go to the card at once, so the card does not sit idle while the submitting thread prepares the rest.
  • DARNER_SWEEP_AHEAD=1 — the once-a-second memory sweep runs while card work is still in flight, instead of first waiting for the card to go idle.

Both switches already existed and were off by default. A switch set by hand wins as before, and both stay off outside darner.exe and the NVIDIA launcher. CARD_STEPS_LEARN and DARNER_LATE_FILLS deliberately stay off: the ablations of the GitHub defaults PR 4815 measured them at -29.0 % and -21.5 % fps (the learning of late-written pages made the submitting thread wait on the card 20-29 ms a frame more). The README rows for both switches are updated with the measured outcomes.

How it was tested

  • Tested revision: 529b49b8 with both switches set by hand in the environment — the same effective configuration this PR makes the default (bench by Cyber-Croissant).
  • Commands and results: scripts/bench.ps1, two runs each, two 13-minute in-game drives per run, main vs both switches on.
  • Gameplay: RTX 5070, Ryzen 5 7500X3D, 31 GB RAM, Windows 11; Series S profile, DLSS Quality, ray tracing off.
  • Before and after (same scene, settings, hardware): mean frame time 36.4 → 36.3 ms; medians 33.1/34.4 → 32.4/37.8 ms across the runs; p99 (5 s) 62.0 → 61.0 ms; frames over 100 ms 10 → 8; 5,500-6,500-draw frames 42.0 ms (18.3 %) → 40.3 ms (13.4 %); GPU-shared memory peak 6.5 → 6.9 GB; process private bytes 25.0 → 25.5 GB.
  • Verdict: neutral — the differences sit within the runs' own spread, and the PR 4815 ablations also measured both within the controls' spread (-0.4 % and -0.8 % on an RTX 5070). No rig measured a gain; the switches are kept for the card-idle pattern their docs record, not for a measured fps win.
  • Shader wave sizes tested: not relevant (no shader changes).
  • Coverage gaps: Series X profile, DLSS off, ray tracing on, other GPUs/CPUs, sessions longer than 13 minutes.

Checklist

  • 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: none found.
- Fluxer ID: — already holds the Contributor role on the Darner Fluxer server. ## What it changes `darner.exe`'s built-in settings (`apps/darner/src/play.rs`) and `scripts/play-nvidia.ps1` now set two existing switches on by default: - `DARNER_SEND_FREE_FIRST=1` — a submission that must wait for earlier card work is split: its first lists, which need nothing from that work, go to the card at once, so the card does not sit idle while the submitting thread prepares the rest. - `DARNER_SWEEP_AHEAD=1` — the once-a-second memory sweep runs while card work is still in flight, instead of first waiting for the card to go idle. Both switches already existed and were off by default. A switch set by hand wins as before, and both stay off outside `darner.exe` and the NVIDIA launcher. `CARD_STEPS_LEARN` and `DARNER_LATE_FILLS` deliberately stay off: the ablations of the GitHub defaults PR 4815 measured them at -29.0 % and -21.5 % fps (the learning of late-written pages made the submitting thread wait on the card 20-29 ms a frame more). The README rows for both switches are updated with the measured outcomes. ## How it was tested - Tested revision: 529b49b8 with both switches set by hand in the environment — the same effective configuration this PR makes the default (bench by Cyber-Croissant). - Commands and results: `scripts/bench.ps1`, two runs each, two 13-minute in-game drives per run, `main` vs both switches on. - Gameplay: RTX 5070, Ryzen 5 7500X3D, 31 GB RAM, Windows 11; Series S profile, DLSS Quality, ray tracing off. - Before and after (same scene, settings, hardware): mean frame time 36.4 → 36.3 ms; medians 33.1/34.4 → 32.4/37.8 ms across the runs; p99 (5 s) 62.0 → 61.0 ms; frames over 100 ms 10 → 8; 5,500-6,500-draw frames 42.0 ms (18.3 %) → 40.3 ms (13.4 %); GPU-shared memory peak 6.5 → 6.9 GB; process private bytes 25.0 → 25.5 GB. - Verdict: neutral — the differences sit within the runs' own spread, and the PR 4815 ablations also measured both within the controls' spread (-0.4 % and -0.8 % on an RTX 5070). No rig measured a gain; the switches are kept for the card-idle pattern their docs record, not for a measured fps win. - Shader wave sizes tested: not relevant (no shader changes). - Coverage gaps: Series X profile, DLSS off, ray tracing on, other GPUs/CPUs, sessions longer than 13 minutes. ## Checklist - [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: none found.
SEND_FREE_FIRST sends a submission blocked on flights in the air its first
lists, which need nothing from that work, at once, so the card does not run
dry while the submitting thread prepares the rest. SWEEP_AHEAD lets the
once-a-second sweep run beside flights in the air instead of draining the
card for it. Both measured neutral in the ablations of the GitHub defaults
PR 4815 (an RTX 5070: -0.4 % and -0.8 %, within the controls' spread).
CARD_STEPS_LEARN and DARNER_LATE_FILLS stay at their off defaults: measured
there at -29.0 % and -21.5 % fps (that PR's comments).
Coder629nx force-pushed darner-two-switches from 56099d4b88 to 49e0a6824e 2026-12-03 19:14:59 +00:00 Compare
Contributor

Test report from an RTX 5090: both switches on were slower here, with and without hardware ray tracing.

Setup

  • RTX 5090, Ryzen 9 5900X, 64 GB RAM, Windows 11.
  • main at 4a92569f, release build (it also carries the 7-line rayquery.rs change from my callback-marks branch).
  • scripts/play-nvidia.ps1 -NoMenu -Preload: Series X profile, 1440p, DLSS Quality, frame generation off. Window off screen and without focus.
  • "on" is the same build with DARNER_SEND_FREE_FIRST=1 DARNER_SWEEP_AHEAD=1 set by hand.
  • Alternating pairs. Each run is a fresh process on a copy of the same save: the character stands indoors, the idle camera cuts around. Figures are the median of the log's 5 s fps lines, from 15 s after the world is up, about 70 s per run.

Results, median fps per run

off on
ray tracing off 20.2 / 18.8 / 19.1 16.1 / 17.5 / 17.8 / 18.3
hardware ray tracing (DARNER_HW_RT=1) 16.1 / 17.2 / 17.3 15.4 / 14.9 / 7.8
  • "on" was below "off" in every pair. The gap is 1 to 4 fps; runs of the same configuration scatter by about 1.5 fps, and the 7.8 fps run was slow from start to end (every frame over 100 ms), which I cannot explain.
  • With hardware ray tracing, frames over 100 ms: off 3.7 / 5.3 / 4.2 %, on 6.9 / 8.3 / 100 %.
  • Without ray tracing the log says DARNER_SEND_FREE_FIRST cut 0.0 submissions a frame, so in those runs only DARNER_SWEEP_AHEAD can have made a difference. With ray tracing it cut 3.2 submissions a frame (12.8 lists sent in front).
  • No device removal and no panic in any run.

Not tested

  • Driving or walking; the character stands. Frame generation. The two switches one at a time. One "off" run without ray tracing did not reach the world and is left out.
Test report from an RTX 5090: both switches on were slower here, with and without hardware ray tracing. **Setup** - RTX 5090, Ryzen 9 5900X, 64 GB RAM, Windows 11. - `main` at 4a92569f, release build (it also carries the 7-line `rayquery.rs` change from my callback-marks branch). - `scripts/play-nvidia.ps1 -NoMenu -Preload`: Series X profile, 1440p, DLSS Quality, frame generation off. Window off screen and without focus. - "on" is the same build with `DARNER_SEND_FREE_FIRST=1 DARNER_SWEEP_AHEAD=1` set by hand. - Alternating pairs. Each run is a fresh process on a copy of the same save: the character stands indoors, the idle camera cuts around. Figures are the median of the log's 5 s fps lines, from 15 s after the world is up, about 70 s per run. **Results, median fps per run** | | off | on | |---|---|---| | ray tracing off | 20.2 / 18.8 / 19.1 | 16.1 / 17.5 / 17.8 / 18.3 | | hardware ray tracing (`DARNER_HW_RT=1`) | 16.1 / 17.2 / 17.3 | 15.4 / 14.9 / 7.8 | - "on" was below "off" in every pair. The gap is 1 to 4 fps; runs of the same configuration scatter by about 1.5 fps, and the 7.8 fps run was slow from start to end (every frame over 100 ms), which I cannot explain. - With hardware ray tracing, frames over 100 ms: off 3.7 / 5.3 / 4.2 %, on 6.9 / 8.3 / 100 %. - Without ray tracing the log says `DARNER_SEND_FREE_FIRST` cut 0.0 submissions a frame, so in those runs only `DARNER_SWEEP_AHEAD` can have made a difference. With ray tracing it cut 3.2 submissions a frame (12.8 lists sent in front). - No device removal and no panic in any run. **Not tested** - Driving or walking; the character stands. Frame generation. The two switches one at a time. One "off" run without ray tracing did not reach the world and is left out.
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 'darner-two-switches:Coder629nx-darner-two-switches'
git switch 'Coder629nx-darner-two-switches'

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 'Coder629nx-darner-two-switches'
git switch 'Coder629nx-darner-two-switches'
git rebase 'main'
git switch 'main'
git merge --ff-only 'Coder629nx-darner-two-switches'
git switch 'Coder629nx-darner-two-switches'
git rebase 'main'
git switch 'main'
git merge --no-ff 'Coder629nx-darner-two-switches'
git switch 'main'
git merge --squash 'Coder629nx-darner-two-switches'
git switch 'main'
git merge --ff-only 'Coder629nx-darner-two-switches'
git switch 'main'
git merge 'Coder629nx-darner-two-switches'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
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!36
No description provided.