[pr-fix][dlss][frame-generation][NVIDIA] Show measured DLSS and frame generation in benchmark reports #213

Open
superhero-520 wants to merge 1 commit from superhero-520/Darner:bench-streamline-summary into main
First-time contributor

Contributor role (optional)

Role already held.

What it changes

On f3840d73d3, bench.ps1 -From can record DLSS in summary.json and omit it from summary.md. The Markdown now shows each metric when its own samples exist, including measured zeros. Runs with both metrics keep the original combined line.

How it was tested

  • Replayed two archived Darner runs. Their 30–210 s windows contained 172 and 170 DLSS observations. Both reports now show a median of 1 upscaling per frame. The complete JSON matched the baseline for each run.
  • Invoke-Pester ./scripts/tests/bench-telemetry.Tests.ps1 passed all 7 cases on Windows PowerShell 5.1 and PowerShell 7.6.9 using files fetched from 0e9e1fa7b1. Five cases failed on main. Frame-generation-only and measured-zero cases used synthetic records.
  • Both workspace Clippy gates and cargo xtask policy passed on 062b09a2c6, which has the same full Git tree as 0e9e1fa7b1.
  • The default cargo test --workspace --locked stopped at a GPU write-watch assertion. It also reproduced on clean f3840d73d3. The candidate passed three isolated retries and all 1,773 GPU tests in a serial rerun with Microsoft DXC.
  • Invoke-Pester ./scripts/tests on Windows PowerShell 5.1 passed 22 and failed 2. Both launcher failures reproduced on clean main: orphan process detection and the run-history Variant assertion on a Ryzen 7 5800H.
  • The serial --no-fail-fast workspace run finished with 3,342 passed, 4 failed and 121 ignored (exit 101). Three HLE loopback tests failed in the worker. The same HLE executable passed all 493 tests on the host. The fourth failure was the unwritten SV_Depth output, reproduced on clean main and addressed separately in #227. The exhaustive shader arithmetic test passed.
  • This changes offline report formatting. Runtime defaults and the JSON format are unchanged. No new gameplay run or frame-rate measurement was needed.

Checklist

  • Exercised the offline report with saved logs.
  • One change based on upstream main.
  • Asset policy passed.
  • Depends on none.

Checked for overlap

  • Searched issues and pull requests and checked which open PRs edit the same script.
  • Related PRs #172, #173 and #201 change frame-time windows, crash counting and display-gap reporting.
  • No duplicate found for the missing DLSS and frame-generation Markdown output.
## Contributor role (optional) Role already held. ## What it changes On `f3840d73d3`, `bench.ps1 -From` can record DLSS in `summary.json` and omit it from `summary.md`. The Markdown now shows each metric when its own samples exist, including measured zeros. Runs with both metrics keep the original combined line. ## How it was tested - Replayed two archived Darner runs. Their 30–210 s windows contained 172 and 170 DLSS observations. Both reports now show a median of 1 upscaling per frame. The complete JSON matched the baseline for each run. - `Invoke-Pester ./scripts/tests/bench-telemetry.Tests.ps1` passed all 7 cases on Windows PowerShell 5.1 and PowerShell 7.6.9 using files fetched from `0e9e1fa7b1`. Five cases failed on main. Frame-generation-only and measured-zero cases used synthetic records. - Both workspace Clippy gates and `cargo xtask policy` passed on `062b09a2c6`, which has the same full Git tree as `0e9e1fa7b1`. - The default `cargo test --workspace --locked` stopped at a GPU write-watch assertion. It also reproduced on clean `f3840d73d3`. The candidate passed three isolated retries and all 1,773 GPU tests in a serial rerun with Microsoft DXC. - `Invoke-Pester ./scripts/tests` on Windows PowerShell 5.1 passed 22 and failed 2. Both launcher failures reproduced on clean main: orphan process detection and the run-history `Variant` assertion on a Ryzen 7 5800H. - The serial `--no-fail-fast` workspace run finished with 3,342 passed, 4 failed and 121 ignored (exit 101). Three HLE loopback tests failed in the worker. The same HLE executable passed all 493 tests on the host. The fourth failure was the unwritten `SV_Depth` output, reproduced on clean main and addressed separately in #227. The exhaustive shader arithmetic test passed. - This changes offline report formatting. Runtime defaults and the JSON format are unchanged. No new gameplay run or frame-rate measurement was needed. ## Checklist - [x] Exercised the offline report with saved logs. - [x] One change based on upstream main. - [x] Asset policy passed. - [x] Depends on none. ## Checked for overlap - [x] Searched issues and pull requests and checked which open PRs edit the same script. - Related PRs #172, #173 and #201 change frame-time windows, crash counting and display-gap reporting. - No duplicate found for the missing DLSS and frame-generation Markdown output.
Owner

Review of 0e9e1fa7 (read only, not run):

  • The bug is real. The DLSS/frame generation line was written only inside the if ($frameTimes...) branch, and only when $fgWin had samples. So a run with DLSS samples but no frame-generation lines, or no frame log, had dlss_upscalings_per_frame in summary.json and nothing in summary.md.
  • The fix is right. The line now sits outside the frame-time branch, and each part shows when its own window has samples ($dlssWin / $fgWin). Measured zeros are shown, and a run with both gets the same combined text as before. summary.json, the notes (lines 571-574) and runtime behaviour don't change.
  • The tests are good. They cover each metric alone, zeros, both with and without frame times, and neither. The out-of-window 99 lines prove the window is respected. Should Be matches the Pester 3/4 style used in play-rig.Tests.ps1 and docs/rig-launcher.md.
  • It merges cleanly with main (f3840d73). The failures listed in the description (#227's SV_Depth, the launcher Pester cases, the write-watch assertion) also happen on clean main and aren't caused by this PR.

Ready to merge. It only changes the offline report, so there is nothing for players to test in game and no test call is needed.

Review of 0e9e1fa7 (read only, not run): - **The bug is real.** The DLSS/frame generation line was written only inside the `if ($frameTimes...)` branch, and only when `$fgWin` had samples. So a run with DLSS samples but no frame-generation lines, or no frame log, had `dlss_upscalings_per_frame` in `summary.json` and nothing in `summary.md`. - **The fix is right.** The line now sits outside the frame-time branch, and each part shows when its own window has samples (`$dlssWin` / `$fgWin`). Measured zeros are shown, and a run with both gets the same combined text as before. `summary.json`, the notes (lines 571-574) and runtime behaviour don't change. - **The tests are good.** They cover each metric alone, zeros, both with and without frame times, and neither. The out-of-window 99 lines prove the window is respected. `Should Be` matches the Pester 3/4 style used in `play-rig.Tests.ps1` and docs/rig-launcher.md. - It merges cleanly with main (f3840d73). The failures listed in the description (#227's `SV_Depth`, the launcher Pester cases, the write-watch assertion) also happen on clean main and aren't caused by this PR. Ready to merge. It only changes the offline report, so there is nothing for players to test in game and no test call is needed.
First-time contributor

The measured-zero case now has a real game log on an RTX 4070 Ti SUPER. I replayed three original Windows release logs through bench.ps1 -From on f3840d73 and 0e9e1fa7b1 (Windows PowerShell 5.1). An independent reader counted the original SDK lines for the same +8 to +32 s world window.

Actual setting SR observations / median FG observations Presents on / off / frames shown by FG
DLSS Quality, FG unavailable 19 / 1 0 absent
DLSS Quality, FG 2× 23 / 1 23 598 / 39 / 1,196
DLAA, FG ready but off 22 / 1 22 0 / 1,259 / 0

The PR Markdown reproduced all three cases. On main all three Markdown reports omitted the telemetry line. None of these release logs contained diagnostic frame-time lines. The complete parsed summary JSON matched between main and the PR in each pair. The first and third logs came from v2026.12.03.02, the 2× log from #168 at 9a3a0f36. This adds a real ready-but-off case. FG-only without SR observations remains outside this run.

The measured-zero case now has a real game log on an RTX 4070 Ti SUPER. I replayed three original Windows release logs through bench.ps1 -From on f3840d73 and 0e9e1fa7b1 (Windows PowerShell 5.1). An independent reader counted the original SDK lines for the same +8 to +32 s world window. | Actual setting | SR observations / median | FG observations | Presents on / off / frames shown by FG | |---|---:|---:|---| | DLSS Quality, FG unavailable | 19 / 1 | 0 | absent | | DLSS Quality, FG 2× | 23 / 1 | 23 | 598 / 39 / 1,196 | | DLAA, FG ready but off | 22 / 1 | 22 | 0 / 1,259 / 0 | The PR Markdown reproduced all three cases. On main all three Markdown reports omitted the telemetry line. None of these release logs contained diagnostic frame-time lines. The complete parsed summary JSON matched between main and the PR in each pair. The first and third logs came from v2026.12.03.02, the 2× log from #168 at 9a3a0f36. This adds a real ready-but-off case. FG-only without SR observations remains outside this run.
This pull request can be merged automatically.
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 'bench-streamline-summary:superhero-520-bench-streamline-summary'
git switch 'superhero-520-bench-streamline-summary'

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 'superhero-520-bench-streamline-summary'
git switch 'superhero-520-bench-streamline-summary'
git rebase 'main'
git switch 'main'
git merge --ff-only 'superhero-520-bench-streamline-summary'
git switch 'superhero-520-bench-streamline-summary'
git rebase 'main'
git switch 'main'
git merge --no-ff 'superhero-520-bench-streamline-summary'
git switch 'main'
git merge --squash 'superhero-520-bench-streamline-summary'
git switch 'main'
git merge --ff-only 'superhero-520-bench-streamline-summary'
git switch 'main'
git merge 'superhero-520-bench-streamline-summary'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
3 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!213
No description provided.