darner play: Streamline sees DLSS-only presents; they stay out of host pacing #595

Open
deama wants to merge 2 commits from deama/Darner:pr/2-dlss-present into Main
First-time contributor

Not run in the game on Darner. Ported from a local VIctory-NVIDIA branch (before the rename). The notes below describe that branch.

Contributor role (optional)

  • Fluxer ID:

What it changes

  • The problem on main: with DLSS and no frame generation, Streamline logs "presentCommon() was not observed" (seen on the VIctory branch in a 4K run). Streamline then does no per-present bookkeeping or resource retirement.

Two commits:

  • Restore per-present DLSS bookkeeping without enabling frame generation

  • Keep DLSS-only presents out of host pacing

  • darner play sets DARNER_STREAMLINE_PRESENT=1 whenever it turns DLSS on. Our swap chain is then Streamline's proxy of it, through the SDK interface proxy that already exists. Frame generation stays off. Without the SDK nothing is set. docs/dlss.md row updated.

  • The deferred-presentation proxy check now also recognises the DLSS-only (SR) proxy, so those presents are not paced by the host as if they were plain ones. The frame-generation state is unchanged.

How it was tested

  • Tested revision: 30709b4705
  • Commands and results: on 30709b4705 (this branch's head), Windows 10 22H2 with its built-in Direct3D 12 (no Shader Model 6.6), Rust 1.98.1:
    • cargo clippy --workspace --all-targets --locked -- -D warnings: passed
    • cargo clippy --workspace --all-targets --all-features --locked -- -D warnings: passed
    • cargo --config 'profile.test.package.darner-shader.opt-level=3' test --workspace --locked --no-fail-fast (the opt-level only speeds up darner-shader's exhaustive float tests): 66 failed, all of which fail on unmodified main (c8258f9556) on this PC too (darner-shader tests that need Shader Model 6.6).
    • darner-gpu's test process aborts at the first test that needs Shader Model 6.6, on main too, so its tests were run in batches that survive the abort and compared one by one with main (main: 1658 pass, 8 fail, 139 need Shader Model 6.6, 81 ignored): no test that passes on main fails here, none removed; no new tests.
    • cargo xtask policy: ok (576 files).
    • Not run: tests that need Shader Model 6.6 or a GPU, and the strict-WARP tests behind the diagnostics/gpu-validation features. The launcher tests check that the switch is set with DLSS, absent without the SDK, and that frame generation stays off.
  • Changes a default: yes: DARNER_STREAMLINE_PRESENT=1 in darner play with DLSS on (NVIDIA cards with the Streamline SDK).
  • A/B result: none on Darner. The original commit says the pacing delays measured were small and claims no FPS gain.
  • Gates run on that revision: see above.
  • Gameplay: not run on Darner.
  • Hardware dependence: NVIDIA with DLSS only.
  • Coverage gaps: no in-game check that the "presentCommon" line is gone on Darner.

Checklist

  • I ran this change in the game, or say below why it can't be (docs, tests only). Not run in the game on Darner.
  • 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: #144 (FSR 3 present cadence; different backend).
  • Replaces or overlaps: none found
**Not run in the game on Darner.** Ported from a local VIctory-NVIDIA branch (before the rename). The notes below describe that branch. ## Contributor role (optional) - Fluxer ID: ## What it changes - The problem on main: with DLSS and no frame generation, Streamline logs "presentCommon() was not observed" (seen on the VIctory branch in a 4K run). Streamline then does no per-present bookkeeping or resource retirement. Two commits: - Restore per-present DLSS bookkeeping without enabling frame generation - Keep DLSS-only presents out of host pacing - `darner play` sets `DARNER_STREAMLINE_PRESENT=1` whenever it turns DLSS on. Our swap chain is then Streamline's proxy of it, through the SDK interface proxy that already exists. Frame generation stays off. Without the SDK nothing is set. `docs/dlss.md` row updated. - The deferred-presentation proxy check now also recognises the DLSS-only (SR) proxy, so those presents are not paced by the host as if they were plain ones. The frame-generation state is unchanged. ## How it was tested - Tested revision: `30709b4705` - Commands and results: on `30709b4705` (this branch's head), Windows 10 22H2 with its built-in Direct3D 12 (no Shader Model 6.6), Rust 1.98.1: - `cargo clippy --workspace --all-targets --locked -- -D warnings`: passed - `cargo clippy --workspace --all-targets --all-features --locked -- -D warnings`: passed - `cargo --config 'profile.test.package.darner-shader.opt-level=3' test --workspace --locked --no-fail-fast` (the opt-level only speeds up darner-shader's exhaustive float tests): 66 failed, all of which fail on unmodified `main` (c8258f9556) on this PC too (darner-shader tests that need Shader Model 6.6). - darner-gpu's test process aborts at the first test that needs Shader Model 6.6, on `main` too, so its tests were run in batches that survive the abort and compared one by one with `main` (`main`: 1658 pass, 8 fail, 139 need Shader Model 6.6, 81 ignored): no test that passes on `main` fails here, none removed; no new tests. - `cargo xtask policy`: ok (576 files). - Not run: tests that need Shader Model 6.6 or a GPU, and the strict-WARP tests behind the diagnostics/gpu-validation features. The launcher tests check that the switch is set with DLSS, absent without the SDK, and that frame generation stays off. - Changes a default: yes: `DARNER_STREAMLINE_PRESENT=1` in `darner play` with DLSS on (NVIDIA cards with the Streamline SDK). - A/B result: none on Darner. The original commit says the pacing delays measured were small and claims no FPS gain. - Gates run on that revision: see above. - Gameplay: not run on Darner. - Hardware dependence: NVIDIA with DLSS only. - Coverage gaps: no in-game check that the "presentCommon" line is gone on Darner. ## Checklist - [ ] I ran this change in the game, or say below why it can't be (docs, tests only). **Not run in the game on Darner.** - [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: #144 (FSR 3 present cadence; different backend). - Replaces or overlaps: none found
The current guarded 4K run reproduced Streamline presentCommon missing. Restore the previously working launcher default through the existing SDK interface proxy. CPU launcher tests verify the callback path is enabled with DLSS, absent without its SDK, and frame generation remains disabled.

Ported to Darner from VIctory-NVIDIA be42d341.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The proxy predicate is used by deferred presentation but only recognised the frame-generation proxy. Include the SR proxy without changing the frame-generation-specific state. Existing pacing tests pass; measured delays were small, so no FPS gain is asserted.

Ported to Darner from VIctory-NVIDIA 48f7f15e.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
TrustNo1 changed title from [pr-fix][dlss][NVIDIA] darner play: Streamline sees DLSS-only presents; they stay out of host pacing to darner play: Streamline sees DLSS-only presents; they stay out of host pacing 2026-12-06 03:26:43 +00:00
Owner

Test needed — commit 30709b47; what to check:

  • The problem on main: with DLSS and no frame generation, Streamline logs "presentCommon() was not observed" (seen on the an earlier fork branch in a 4K run). Streamline then does no per-present bookkeeping or resource retirement.

Two commits:

  • Restore per-present DLSS bookkeeping without enabling frame generation

  • Keep DLSS-only presents out of host pacing

  • darner play sets DARNER_STREAMLINE_PRESENT=1 whenever it turns DLSS on. Our swap chain is then Streamline's proxy of it, through the SDK interface proxy that already exists. Frame generation stays off. Without the SDK nothing is set. docs/dlss.md row updated.

  • The deferred-presentation proxy check now also recognises the DLSS-only (SR) proxy, so those presents are not paced by the host as if they were plain ones. The frame-generation state is unchanged.

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 `30709b47`; what to check: - The problem on main: with DLSS and no frame generation, Streamline logs "presentCommon() was not observed" (seen on the an earlier fork branch in a 4K run). Streamline then does no per-present bookkeeping or resource retirement. Two commits: - Restore per-present DLSS bookkeeping without enabling frame generation - Keep DLSS-only presents out of host pacing - `darner play` sets `DARNER_STREAMLINE_PRESENT=1` whenever it turns DLSS on. Our swap chain is then Streamline's proxy of it, through the SDK interface proxy that already exists. Frame generation stays off. Without the SDK nothing is set. `docs/dlss.md` row updated. - The deferred-presentation proxy check now also recognises the DLSS-only (SR) proxy, so those presents are not paced by the host as if they were plain ones. The frame-generation state is unchanged. 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/2-dlss-present:deama-pr/2-dlss-present'
git switch 'deama-pr/2-dlss-present'

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 'deama-pr/2-dlss-present'
git switch 'deama-pr/2-dlss-present'
git rebase 'Main'
git switch 'Main'
git merge --ff-only 'deama-pr/2-dlss-present'
git switch 'deama-pr/2-dlss-present'
git rebase 'Main'
git switch 'Main'
git merge --no-ff 'deama-pr/2-dlss-present'
git switch 'Main'
git merge --squash 'deama-pr/2-dlss-present'
git switch 'Main'
git merge --ff-only 'deama-pr/2-dlss-present'
git switch 'Main'
git merge 'deama-pr/2-dlss-present'
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!595
No description provided.