[pr-fix][tools][dlss][NVIDIA] replay: record DLSS upscaling as Cmd::Upscale and evaluate it again on replay #699
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
hle
input
INTEL
lighting
linux-proton
memory
MULDER
needs-info
needs-logs
needs-rebase
NVIDIA
performance
post-merge
pr-diagnostics
pr-docs
pre-merge
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
relevance
high
relevance
low
relevance
medium
relevance
very-high
rendering
report
roadmap-proposal
saves
series-s
shaders
startup
status
blocked-by-rework
status
needs-test-report
status
needs-triage
status
ready-for-review
status
stale
status
superseded
status
wip
tools
ui
upstream
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
TrustNo1/Darner!699
Loading…
Reference in a new issue
No description provided.
Delete branch "EcoPro:replay-dlss-upscale"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Contributor role (optional)
What it changes
darner replayscores 7.8 dB against the presented frame on main (mean RGB 0.4 out of 255).DLSS runs inside Streamline, so the upscaled frame was never recorded and the replay had nothing to draw from. This PR records the upscaling as its own command,
Cmd::Upscale(wire kind 37), together with its input textures, mode, preset and camera.darner replaythen runs it again through Streamline. It finds NVIDIA's files the same way play does: fromDARNER_STREAMLINE_DIR, or next to the executable. Captures made before this change still replay black, so they need to be taken again.wire::UPSCALE_OUTPUTkeeps thecapture_probeexample building on its own, andrecord.rschecks at compile time that it matchesstreamline::OUTPUT.docs/replay.mddescribes the new command.Top row main, bottom row this PR. Left: the frame the game presented. Right:
darner replayof that capture. Cropped from 2560×1440.How it was tested
Tested revision: ece1ddf for the game, the capture and the replay.
5d11bfais the same commit plus twoifstatements collapsed for clippy (record.rs:484,snap.rs:198).Commands and results: both builds are on origin/Main
00bd68d. They used the same switches, the same 12/02 02:48 save, a capture taken once the world was loaded, anddarner replay <capture> --loops 3.Changes a default: no
A/B result: one capture per side, three replay loops each.
00bd68d)On B the replay reports "1 DLSS upscalings are evaluated again with Streamline". The three loops differ slightly from one another because DLSS carries history between frames.
Gates run on that revision. Every failure also happens on main
00bd68d, and none is in a file this PR touches:cargo clippy --workspace --all-targets --locked -- -D warnings: fails on main's lints. These aredarner-loaderrelocate.rs:269/277(reproduced on main) and existing lints inmemhook,pagebuf,host.rs,alias_rt,host/send.rs,host/upq.rs,texdiscardandtiles. The PR's own files have no clippy warnings.--all-features: the same result.cargo test --workspace --locked: everything passes exceptxtaskpolicy::tests::repository_passes_policy, which also fails on main.cargo test -p darner-gpu --features diagnostics --locked: 1917 passed and 2 failed:compose::tests::bgrx_plane_selects_a_typed_viewandshader_cache::tests::the_key_a_preload_list_is_made_under_follows_the_switches. Both fail the same way on main. Thereplayintegration test passes;replay_bigis ignored because it needs a capture rig.cargo xtask policy: fails on main'scrates/darner-gpu/d3d12ma/*.cpp/.h. This PR adds no files of those types.Gameplay: RTX 5090 (driver 621.14), Series X profile, 2560×1440, DLSS DLAA, frame generation off, ray tracing off.
Shader wave sizes tested: 32 lanes.
Hardware dependence: NVIDIA only. The replay machine needs Streamline and DLSS available, the same as play.
Coverage gaps: one scene; DLAA only, not the other DLSS quality modes; ray tracing off; frame generation off; no AMD/Intel run, where the path doesn't apply;
replay_bignot run.Checklist
main.docs/asset-policy.md. The PR contains no binaries or game data; the screenshot is attached here only.Checked for overlap
replay/play.rs), #595 (touchesstreamline.rs).🤖 Generated with Claude Code

View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.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.