[pr-fix][frame-generation][rendering] Keep Darner overlays out of generated frames #344
Loading…
Reference in a new issue
No description provided.
Delete branch "MuoM1ng/Darner:codex/darner-framegen-overlays"
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
On v2026.12.03.02, Darner draws its F1 menu, FPS pill, stats panel and notices onto the present buffer after the title's separate UI plane has been composed. Code inspection shows that this UI plane cannot describe Darner's own draws to frame generation.
This ports the behaviour from VIctory-NVIDIA
#4899. F1 holds frame generation while open by default. For passive overlays, DLSS uses the existing HUD-less colour comparison and clears the title-only alpha tag for that present. FidelityFX chooses the same clean colour input. When an overlay is drawn and no suitable input is available, the present holds frame generation. The title's existing HUD-less capture keeps precedence on single-plane presents. The change adds no full-frame copy.Set
DARNER_FRAMEGEN_IN_MENU=1to allow generation in F1 when the HUD-less input is available. SetDARNER_OVERLAY_NO_FRAMEGEN=1to hold generation when a Darner overlay is drawn.How it was tested
9cc5e49onv2026.12.03.02and mainf3840d7.cargo check --offline --locked --profile diag -p darner --features diagnostics.cargo xtask policychecked 555 files.cargo test --offline --locked --profile diag -p darner-gpu --features diagnostics --librun passed 79 tests with 3 ignored benchmarks. The filters covered pools, texture sampling and eviction, and frame generation.Checklist
main.docs/asset-policy.md.Checked for overlap
Independent Windows build, gate, and code-read review of
82a6d2a01029(full head82a6d2a0102952d082b06abf26fef8e7e70f4fb7), based onmainf3840d73d3504c30218debfbc8795b9225447317. Not run in-game.Environment
x86_64-pc-windows-msvc), MSVC 19.44.35230.Measured results
cargo clippy --workspace --all-targets --locked -- -D warnings): PASS.cargo clippy --workspace --all-targets --all-features --locked -- -D warnings): PASS.cargo xtask policy: PASS (asset policy: 555 files ok).cargo test --locked -p darner-gpu --lib framegen_holds_for_the_menu_or_when_ui_can_only_be_interpolated: PASS (1 passed; 0 failed; 0 ignored).cargo test --locked -p darner-gpu --lib streamline::: PASS (63 passed; 0 failed; 0 ignored).cargo test --locked -p darner-gpu --lib menu::: PASS (50 passed; 0 failed; 2 ignored).cargo test --workspace --locked) and gameplay were not run in this review.Code-read audit
Host::presentaccumulates draw success from the panel, notices, advisor, and menu, and marks a source usable as the whole base only when it was copied without composition or sharpening (crates/darner-gpu/src/host.rs:20470-20484). The changed draw methods return false for skipped/failed overlays and only report a draw after recording a nonempty copy (host/panel.rs:1388-1468, 1509-1544, 1840-1878; host/menu.rs:3828-3965).Planes::overlay_baserequires both a drawn overlay and a whole, eligible source. The menu and overlay pause switches are read through the existingasked_for!helper, and the predicate distinguishes an open F1 menu from passive overlays with a clean input (crates/darner-gpu/src/streamline.rs:3091-3128).streamline.rs:3233-3290). FSR applies the same whole-source and size checks, gates generation on the same UI policy, and filters queued inputs while held so release cannot use stale frame snapshots (crates/darner-gpu/src/streamline/fsr.rs:799-850).CHANGES NEEDED: The default F1 behavior changes for DLSS and FSR frame generation, but the PR description says live gameplay/vendor-specific visual quality was not measured.
CONTRIBUTING.md:46-50requires an A/B result for a default behavior change on affected cards. Please add that evidence before merge. No code-path defect was identified in this static audit; runtime frame-generation output remains unverified.AI-assisted: yes (GitHub Copilot, Auto mode).
Code review only (read the diff at
82a6d2a), nothing built or run. The earlier review covers the gates and the draw-return audit. I agree there and found no code defect. Two things that widen the default change:DARNER_FPS_LINE, on unless0), andMenu::drawnow reports it as drawn. Sooverlay_drawnis true on almost every gameplay frame, not only with F1 open. On two-plane SDR presents, that means the title's UI colour-and-alpha tag is no longer passed at all, and DLSS-FG has to find the title's own HUD by colour difference. That may trade pill ghosting for HUD-edge artefacts (#259, #212). A DLSS-FG A/B in gameplay, default againstDARNER_FPS_LINE=0(which givesmain's tagging), would show which is better.DARNER_FRAMEGEN_HUDLESS=0plus the default pill now holds frame generation on single-plane presents:overlay_base()needshudless_wanted(), sohas_hudlessis false andui_holds_framegen(true, false)holds. Aonce!log line when the UI hold triggers, and a note in the README, would save someone a confusing "FG stopped working" report.base_copied_wholeis only true whereCopyResourcecopied the texture 1:1, so tagging it with the back-buffer size is valid. The base texture is back in its own state before both frame-generation paths read it.fsr.rsnear here.Reviewed with Claude Code (AI-assisted); findings checked by a human before posting.
The missing-HUD-less case can explain an unexpected FG hold with the default FPS pill. 254404a records one message for that reason in the shared DLSS and FidelityFX policy, and documents it under
DARNER_FRAMEGEN_HUDLESS. The existing menu and explicit-overlay holds take priority and don't produce the missing-input message.The extracted policy test matched the exact old hold result for all 32 input combinations. The updated reason test, scoped GPU Clippy, asset policy and diff check passed. The gameplay comparison of title HUD edges with the pill on and off remains open.
If you cherry-pick or rebase this commit, please keep the Git author. If you fold it into another commit, please add this trailer.
Co-authored-by: andrewpozdnakov7-jpg <[email protected]>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.