Exclude the title's interface from frame generation (DLSS-G HUDLess / FSR HUDLessColor) #84
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/gamingwithhomie--larp!84
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-84"
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?
@SophieTheDoe on GitHub · 2026-12-05 17:52 UTC · original
SophieTheDoe:fix/fg-ui-exclusion→main· +416 −5 · 6 files · 1 commits · merged 2026-12-05 19:00 UTCSummary
Frame generation (DLSS-G and FSR-FG) was interpolating the game's interface — HUD, menus, map — producing visible ghosting/doubling, because the title composites its UI into the presented frame and larp fed NGX/FSF
NULLfor every UI-related input (DLSSG.HUDLess,DLSSG.UI,DLSSG.UIAlpha, FSRHUDLessColor).This PR ports the hudless-capture approach already proven in the victory lineage for this same title/build: snapshot the frame before the interface composite executes and hand that snapshot to the generators as their HUD-less input. Generators then produce frames for the scene only and re-composite the real UI on top.
How it works
The title draws its whole interface into its own target, then lays it over the back buffer with a single fullscreen triangle (
draw(), 3 vertices / 1 instance, no depth) using a known pipeline — vertex shader0602c2384acbb3b2, pixel shadera78d088fa55aa495(blake3-16hex, same hash space the shader cache already uses).When frame generation is active,
crates/larp-gpu/src/hudless.rs(new):SHOWNring (last 4 presented host textures) + both known shader hashes across pipeline stages + triangle shape + single colour target + no depth.CopyResourceinto a 4-deep texture ring (swapchain format), withbarriers::aroundCOPY_SOURCE transitions computed fromHostList::layout_now()so in-list title barriers are respected.HUD_PENDING/HUD_SUBMITTEDqueues,mark_hudless/take_hudless/presented).DLSSG.HUDLessinevaluate()(was NULL), with COPY_DEST→NON_PIXEL_SHADER_RESOURCE barrier around feature dispatch.Configure.hudless(wasResource::NONE); FSR derives its own UI mask from the hudless buffer.Two-plane presents (Series S preset / own-size UI) are unaffected: the overlay plane already bypasses generation ("no interface goes through the generation"), and the hudless copy is consumed and dropped when
overis non-empty.Files
crates/larp-gpu/src/hudless.rs— new module: SHOWN ring, copy queues, texture ring, detection, counterscrates/larp-gpu/src/draw.rs—before_shown_targethook indraw()/draw_indexed()(aftermasked_out, beforeprepare)crates/larp-gpu/src/host.rs—HostList.hudlessfield,layout_now(), submit hook,swap_formatvisibilitycrates/larp-gpu/src/dlssfg.rs—present()pairing,Evaluation.hudless→DLSSG.HUDLess, barrierscrates/larp-gpu/src/fsrfg.rs—Frame.hudless→Configure.hudlesscrates/larp-gpu/src/lib.rs— module declDiagnostics
info!once on first composite match (size/format/pipeline/state).info!once per ≤24 distinct non-composite pipelines drawing into the presented texture, printing shader hashes — identifies the composite hashes if they ever change.debug!every 10 s:copies/tagged/missing/composites/again/others/busycounters.Verification
cargo check -p larp-gpuclean;cargo build --release -p larpclean.the colour without the interface is copied in front of the title's interface compositewith the expected pipeline hashes; HUD ghosting resolved.Notes / limitations
otherscounter/logs will show the new candidate hashes.Made with the help of Devin.