FSR 3 frame generation ignores the interface at 3840x2160: no hudless colour, UI ghosts (fine at 2560x1440) #259

Open
opened 2026-12-04 09:10:23 +00:00 by SuperNoobBabyJ8 · 10 comments

Summary

With FSR frame generation on, at a 3840x2160 output the generated frames contain the interface
(both the title's HUD and the overlay), so the HUD ghosts/smears on camera movement. At 2560x1440
there is no ghosting: the log shows the generator receives a "colour without the interface" plane
there (hudless_format=24, two_planes=true), while at 3840x2160 it is created with
hudless_format=0 and no present ever carries the hudless colour. FSR upscaling itself is correct
in both cases.

Environment

  • darner: v2026.12.03.02 (release build)
  • GPU / driver: AMD Radeon RX 7900 XTX 24 GB, Adrenalin 32.0.32029.2010
  • CPU / RAM: Ryzen 7 9800X3D / 32 GB, Windows 11
  • AMD FidelityFX SDK: v2.4.0 signed binaries (amd_fidelityfx_upscaler_dx12.dll,
    amd_fidelityfx_loader_dx12.dll, amd_fidelityfx_framegeneration_dx12.dll) in the fidelityfx
    folder beside the exe
  • HDR on (the title presents HDR10, format 24)
  • Console profile: Series X; FSR quality Performance; FX type FSR; frame generation 2x
  • Resolution: 4k (3840x2160 output) for the failing runs; 1440 (2560x1440 output) for the
    working runs

Steps to reproduce

  1. Use an AMD card and the FidelityFX SDK v2.4.0 signed DLLs.
  2. Launch with DARNER_MENU_RES=4k, DARNER_MENU_FG_TYPE=fsr, DARNER_MENU_FRAMEGEN=2
    (Series X, HDR as usual).
  3. Enter the game with frame generation on and move the camera while the HUD is on screen.
  4. Repeat with DARNER_MENU_RES=1440 and the same frame-generation settings.

Actual

  • 3840x2160: the title's HUD and darner's own overlay both ghost/double-image on camera movement
    (they are in the generated frames).
  • 2560x1440: no ghosting.

Expected

At 3840x2160 the generated frames should get the same "colour without the interface" (hudless)
colour and a separate interface plane that the 2560x1440 case already gets, so the interface is
composited after generation and does not ghost.

Evidence from the logs

3840x2160 (failing):

FSR 3 frame generation: our swap chain is FidelityFX's frame interpolation swap chain width=3840 height=2160 format=24
FSR 3 frame generation: its context was made display=[3840, 2160] max_render=[1920, 1080] format=24 hudless_format=0 flags=0x8
FSR 3 frame generation: generation rectangle (left, top, width, height) depth_size=[1920, 1080] motion_size=[1920, 1080] back_buffer=[3840, 2160] generation_rect=[0, 0, 3840, 2160] first=true
FSR 3 frame generation: 205 presents with it on (0 with the colour without the interface), 1202 off, 0 prepare dispatches failed

2560x1440 (working):

FSR 3 frame generation: its context was made display=[2560, 1440] max_render=[1280, 720] format=24 hudless_format=24 flags=0x8
FSR 3 frame generation: first frame with the colour without the interface two_planes=true
FSR 3 frame generation: 236 presents with it on (236 with the colour without the interface), 1368 off, 0 prepare dispatches failed

The 2560x1440 run also logs what the 3840x2160 run does not:

the colour spaces of the title's present planes spaces=[Some(0), Some(12)]

That is, at 2560x1440 the title presents two planes (an SDR interface plane and the HDR10 scene
plane), which gives the layer a scene-only colour to hand to the generator; at 3840x2160 it
presents a single plane (format 24, plane_color_space=Some(12)), so the interface is already
composited into the presented colour and there is nothing without it to pass to FSR frame
generation.

What I tried

  • DARNER_FRAMEGEN_HUDLESS=1 at 3840x2160: no change, the context is still created with
    hudless_format=0 and presents still report 0 with the colour without the interface.
  • Lowering the output to 2560x1440 (same settings) fixes it, which points at the
    resolution-dependent present path rather than FSR or the FidelityFX files.

Possible cause / request

The 4K path appears not to wire the "copy of the presented colour in front of the title's interface
composite" that the DLSS frame-generation path has (the log there is:
DLSS Frame Generation: ... an interface drawn here before the interface composite would be in the colour without the interface), and the two-plane present the sub-4K path relies on does not happen
at native 3840x2160.

Please make 3840x2160 behave like the sub-4K output: either copy the presented colour before the
interface composite and pass it as hudlessColor (with the interface as the UI plane), or use the
two-plane composer at 4K, so FSR frame generation excludes the interface there too.

Logs

  • 3840x2160 failing: darner-play-20261204-072410-19816.log (also 2026-12-04 08:42 run), lines
    with hudless_format=0
  • 2560x1440 working: darner-play-20261204-081255-24280.log, lines with hudless_format=24 /
    two_planes=true
  • 3840x2160 with DARNER_FRAMEGEN_HUDLESS=1: darner-play-20261204-085006-11948.log

(Game paths replaced with <game> as the rules ask.)

**Summary** With FSR frame generation on, at a 3840x2160 output the generated frames contain the interface (both the title's HUD and the overlay), so the HUD ghosts/smears on camera movement. At 2560x1440 there is no ghosting: the log shows the generator receives a "colour without the interface" plane there (`hudless_format=24`, `two_planes=true`), while at 3840x2160 it is created with `hudless_format=0` and no present ever carries the hudless colour. FSR upscaling itself is correct in both cases. **Environment** - darner: `v2026.12.03.02` (release build) - GPU / driver: AMD Radeon RX 7900 XTX 24 GB, Adrenalin 32.0.32029.2010 - CPU / RAM: Ryzen 7 9800X3D / 32 GB, Windows 11 - AMD FidelityFX SDK: v2.4.0 signed binaries (`amd_fidelityfx_upscaler_dx12.dll`, `amd_fidelityfx_loader_dx12.dll`, `amd_fidelityfx_framegeneration_dx12.dll`) in the `fidelityfx` folder beside the exe - HDR on (the title presents HDR10, format 24) - Console profile: Series X; FSR quality Performance; FX type FSR; frame generation 2x - Resolution: `4k` (3840x2160 output) for the failing runs; `1440` (2560x1440 output) for the working runs **Steps to reproduce** 1. Use an AMD card and the FidelityFX SDK v2.4.0 signed DLLs. 2. Launch with `DARNER_MENU_RES=4k`, `DARNER_MENU_FG_TYPE=fsr`, `DARNER_MENU_FRAMEGEN=2` (Series X, HDR as usual). 3. Enter the game with frame generation on and move the camera while the HUD is on screen. 4. Repeat with `DARNER_MENU_RES=1440` and the same frame-generation settings. **Actual** - 3840x2160: the title's HUD and darner's own overlay both ghost/double-image on camera movement (they are in the generated frames). - 2560x1440: no ghosting. **Expected** At 3840x2160 the generated frames should get the same "colour without the interface" (hudless) colour and a separate interface plane that the 2560x1440 case already gets, so the interface is composited after generation and does not ghost. **Evidence from the logs** 3840x2160 (failing): FSR 3 frame generation: our swap chain is FidelityFX's frame interpolation swap chain width=3840 height=2160 format=24 FSR 3 frame generation: its context was made display=[3840, 2160] max_render=[1920, 1080] format=24 hudless_format=0 flags=0x8 FSR 3 frame generation: generation rectangle (left, top, width, height) depth_size=[1920, 1080] motion_size=[1920, 1080] back_buffer=[3840, 2160] generation_rect=[0, 0, 3840, 2160] first=true FSR 3 frame generation: 205 presents with it on (0 with the colour without the interface), 1202 off, 0 prepare dispatches failed 2560x1440 (working): FSR 3 frame generation: its context was made display=[2560, 1440] max_render=[1280, 720] format=24 hudless_format=24 flags=0x8 FSR 3 frame generation: first frame with the colour without the interface two_planes=true FSR 3 frame generation: 236 presents with it on (236 with the colour without the interface), 1368 off, 0 prepare dispatches failed The 2560x1440 run also logs what the 3840x2160 run does not: the colour spaces of the title's present planes spaces=[Some(0), Some(12)] That is, at 2560x1440 the title presents two planes (an SDR interface plane and the HDR10 scene plane), which gives the layer a scene-only colour to hand to the generator; at 3840x2160 it presents a single plane (format 24, `plane_color_space=Some(12)`), so the interface is already composited into the presented colour and there is nothing without it to pass to FSR frame generation. **What I tried** - `DARNER_FRAMEGEN_HUDLESS=1` at 3840x2160: no change, the context is still created with `hudless_format=0` and presents still report `0 with the colour without the interface`. - Lowering the output to 2560x1440 (same settings) fixes it, which points at the resolution-dependent present path rather than FSR or the FidelityFX files. **Possible cause / request** The 4K path appears not to wire the "copy of the presented colour in front of the title's interface composite" that the DLSS frame-generation path has (the log there is: `DLSS Frame Generation: ... an interface drawn here before the interface composite would be in the colour without the interface`), and the two-plane present the sub-4K path relies on does not happen at native 3840x2160. Please make 3840x2160 behave like the sub-4K output: either copy the presented colour before the interface composite and pass it as `hudlessColor` (with the interface as the UI plane), or use the two-plane composer at 4K, so FSR frame generation excludes the interface there too. **Logs** - 3840x2160 failing: `darner-play-20261204-072410-19816.log` (also 2026-12-04 08:42 run), lines with `hudless_format=0` - 2560x1440 working: `darner-play-20261204-081255-24280.log`, lines with `hudless_format=24` / `two_planes=true` - 3840x2160 with `DARNER_FRAMEGEN_HUDLESS=1`: `darner-play-20261204-085006-11948.log` (Game paths replaced with `<game>` as the rules ask.)

I checked the single-plane path from release v2026.12.03.02 (f3840d73) with synthetic draw metadata and real D3D12 textures on Windows WARP. At 3840×2160, format 24, the first present registered the target. After a matching composite draw and submission, FSR's selection returned the copy for that same target, and all 8,294,400 pixels matched the seeded image on readback. A different target of the same size could not consume it. A 2560×1440 copy offered for a 3840×2160 back buffer was rejected with a size warning. This exercised the copy and selection code without the title, AMD driver, or FidelityFX interpolation.

In this release FSR already uses the same single-plane copy helper as DLSS. The first present of a new target can miss the copy, but that alone doesn't explain 205 misses. Could you check the existing 4K log for the colour without the interface is copied in front of the title's interface composite (first time) and the colour without the interface is not the back buffer's size? The first message still has a DLSS Frame Generation prefix on the FSR path. Whether each appears, and the dimensions if present, would distinguish a recorded copy from a rejected size. The this pipeline draws into the texture the title presents message alone comes from a draw that did not match the composite.

I checked the single-plane path from release `v2026.12.03.02` (`f3840d73`) with synthetic draw metadata and real D3D12 textures on Windows WARP. At 3840×2160, format 24, the first present registered the target. After a matching composite draw and submission, FSR's selection returned the copy for that same target, and all 8,294,400 pixels matched the seeded image on readback. A different target of the same size could not consume it. A 2560×1440 copy offered for a 3840×2160 back buffer was rejected with a size warning. This exercised the copy and selection code without the title, AMD driver, or FidelityFX interpolation. In this release FSR already uses the same single-plane copy helper as DLSS. The first present of a new target can miss the copy, but that alone doesn't explain 205 misses. Could you check the existing 4K log for `the colour without the interface is copied in front of the title's interface composite (first time)` and `the colour without the interface is not the back buffer's size`? The first message still has a `DLSS Frame Generation` prefix on the FSR path. Whether each appears, and the dimensions if present, would distinguish a recorded copy from a rejected size. The `this pipeline draws into the texture the title presents` message alone comes from a draw that did not match the composite.
Author

@superhero-520 wrote in #259 (comment):

Thank you sincerely for your reply — I checked the existing 4K logs as you asked. Short answer: neither of the two messages
you named appears anywhere
, at 4K or at 1440p, so this is not a rejected size: no copy is ever
recorded at 4K.

  • the colour without the interface is copied in front of the title's interface composite (first time):
    0 occurrences in every log (5 runs at 3840x2160, 4 runs at 2560x1440).
  • the colour without the interface is not the back buffer's size: 0 occurrences in every log.

The only resolution-specific line is the one you said comes from a draw that did not match:

DLSS Frame Generation: this pipeline draws into the texture the title presents (the scene's
composite does; an interface drawn here before the interface composite would be in the colour
without the interface) pipeline=[vertex 8652ce3974dde3c4, pixel 76cf21306691cd0c]
state=depth false write 0 func 8; stencil false read 0xff write 0x0 front [fail 1 depth-fail 1
pass 1 func 8] back [fail 1 depth-fail 1 pass 1 func 8]; cull 1 front-ccw true; blend false
src 2 dst 1 op 1 mask 0xf triangle=true after_the_copy_in_its_list=false

It appears exactly once per 3840x2160 run, with the same pipeline hashes every time, and never in a
2560x1440 run.

Per-run summary (all logs from v2026.12.03.02):

log (UTC) output hudless_format two_planes present planes line mismatch line
07:24:10 3840x2160 0 no no 1
07:47:51 3840x2160 0 no no 1
08:42:43 3840x2160 0 no no 1
08:50:06 3840x2160 0 no no 1
09:07:02 3840x2160 0 no no 1
07:35:27 2560x1440 24 yes yes 0
08:12:55 2560x1440 24 yes yes 0
08:44:36 2560x1440 24 yes yes 0
08:45:45 2560x1440 24 yes yes 0

At 2560x1440 the hudless colour does not come from the copy helper at all: the title presents two
planes (the colour spaces of the title's present planes spaces=[Some(0), Some(12)],
two_planes=true) and the context is made with hudless_format=24. At 3840x2160 there is a single
plane (plane_color_space=Some(12)), so the copy helper has to run — but the composite draw is not
matched, so it never does, and the counters stay at N presents with it on (0 with the colour without the interface) for the whole run (e.g. 205/0, 274/0, 243/0).

Note it is not a first-present miss: the mismatch line is logged once at startup and no copy follows
for thousands of presents afterwards. DARNER_FRAMEGEN_HUDLESS=1 at 4K does not change it
(hudless_format=0, same counts; log darner-play-20261204-085006-11948.log).

So the question is why the 4K draw that writes the presented texture is not matched as the interface
composite. The pipeline above is stable across runs (same vertex/pixel hashes and state), and
after_the_copy_in_its_list=false. If you can make that pipeline match (or say what else the match
needs — blend/depth state, the presented texture's format/plane count, a per-plane test), I can run a
build with extra logging or a debug switch and send the output. Full logs are available:
darner-play-20261204-072410-19816.log (4K) and darner-play-20261204-081255-24280.log (1440p).

@superhero-520 wrote in https://git.gtahub.st/TrustNo1/Darner/issues/259#issuecomment-862754: Thank you sincerely for your reply — I checked the existing 4K logs as you asked. Short answer: **neither of the two messages you named appears anywhere**, at 4K or at 1440p, so this is not a rejected size: no copy is ever recorded at 4K. - `the colour without the interface is copied in front of the title's interface composite (first time)`: **0 occurrences in every log** (5 runs at 3840x2160, 4 runs at 2560x1440). - `the colour without the interface is not the back buffer's size`: **0 occurrences in every log**. The only resolution-specific line is the one you said comes from a draw that did not match: DLSS Frame Generation: this pipeline draws into the texture the title presents (the scene's composite does; an interface drawn here before the interface composite would be in the colour without the interface) pipeline=[vertex 8652ce3974dde3c4, pixel 76cf21306691cd0c] state=depth false write 0 func 8; stencil false read 0xff write 0x0 front [fail 1 depth-fail 1 pass 1 func 8] back [fail 1 depth-fail 1 pass 1 func 8]; cull 1 front-ccw true; blend false src 2 dst 1 op 1 mask 0xf triangle=true after_the_copy_in_its_list=false It appears exactly once per 3840x2160 run, with the same pipeline hashes every time, and never in a 2560x1440 run. Per-run summary (all logs from v2026.12.03.02): | log (UTC) | output | hudless_format | two_planes | present planes line | mismatch line | |---|---|---|---|---|---| | 07:24:10 | 3840x2160 | 0 | no | no | 1 | | 07:47:51 | 3840x2160 | 0 | no | no | 1 | | 08:42:43 | 3840x2160 | 0 | no | no | 1 | | 08:50:06 | 3840x2160 | 0 | no | no | 1 | | 09:07:02 | 3840x2160 | 0 | no | no | 1 | | 07:35:27 | 2560x1440 | 24 | yes | yes | 0 | | 08:12:55 | 2560x1440 | 24 | yes | yes | 0 | | 08:44:36 | 2560x1440 | 24 | yes | yes | 0 | | 08:45:45 | 2560x1440 | 24 | yes | yes | 0 | At 2560x1440 the hudless colour does not come from the copy helper at all: the title presents two planes (`the colour spaces of the title's present planes spaces=[Some(0), Some(12)]`, `two_planes=true`) and the context is made with `hudless_format=24`. At 3840x2160 there is a single plane (`plane_color_space=Some(12)`), so the copy helper has to run — but the composite draw is not matched, so it never does, and the counters stay at `N presents with it on (0 with the colour without the interface)` for the whole run (e.g. 205/0, 274/0, 243/0). Note it is not a first-present miss: the mismatch line is logged once at startup and no copy follows for thousands of presents afterwards. `DARNER_FRAMEGEN_HUDLESS=1` at 4K does not change it (`hudless_format=0`, same counts; log `darner-play-20261204-085006-11948.log`). So the question is why the 4K draw that writes the presented texture is not matched as the interface composite. The pipeline above is stable across runs (same vertex/pixel hashes and state), and `after_the_copy_in_its_list=false`. If you can make that pipeline match (or say what else the match needs — blend/depth state, the presented texture's format/plane count, a per-plane test), I can run a build with extra logging or a debug switch and send the output. Full logs are available: `darner-play-20261204-072410-19816.log` (4K) and `darner-play-20261204-081255-24280.log` (1440p).

Thanks for checking the 4K logs. The draw you quoted reaches the presented texture, but the detector requires both shaders in the existing interface-composite signature and a single non-indexed triangle. The quoted draw uses a different shader pair and has blending disabled. Matching it would risk copying the target before the scene was drawn.

The existing copy and composite counters are printed on the DLSS path only. I prepared a diagnostic build branch that reports those counters for FSR when presents are missing HUD-less colour. It leaves the matching and rendering code unchanged. If you try a 4K run from that revision, please share one or two lines beginning FSR 3 frame generation, colour without the interface. The counts will show whether any recognised composite reaches a presented texture and whether it leads to a copy.

I checked the log output with synthetic counts and ran the focused Cargo type check. No game was run here.

If you cherry-pick or rebase the contribution, please keep the Git author. If you fold it into your own commit, please add this trailer.

Co-authored-by: andrewpozdnakov7-jpg <[email protected]>

Thanks for checking the 4K logs. The draw you quoted reaches the presented texture, but the detector requires both shaders in the existing interface-composite signature and a single non-indexed triangle. The quoted draw uses a different shader pair and has blending disabled. Matching it would risk copying the target before the scene was drawn. The existing copy and composite counters are printed on the DLSS path only. I prepared a [diagnostic build branch](https://git.gtahub.st/andrewpozdnakov7-jpg/Darner/commit/1c5f734695afb94349e0dfeed1d796b4e24db31a) that reports those counters for FSR when presents are missing HUD-less colour. It leaves the matching and rendering code unchanged. If you try a 4K run from that revision, please share one or two lines beginning **FSR 3 frame generation, colour without the interface**. The counts will show whether any recognised composite reaches a presented texture and whether it leads to a copy. I checked the log output with synthetic counts and ran the focused Cargo type check. No game was run here. If you cherry-pick or rebase the contribution, please keep the Git author. If you fold it into your own commit, please add this trailer. `Co-authored-by: andrewpozdnakov7-jpg <296776509+[email protected]>`
Author

@andrewpozdnakov7-jpg wrote in #259 (comment):

Thanks — I built fix/fsr-hudless-copy-diagnostics locally and ran it at both resolutions. The counts
answer your question directly: at 3840x2160 no recognised composite reaches a presented texture (0),
so no copy is made (0); at 2560x1440 the hudless colour comes from the two-plane present, not from the
copy helper, so nothing misses.

Build note (disclosed because it is not the stock build): the C++ half of libmimalloc-sys does not
compile on this machine — cl.exe exits with code 2 after printing only its banner, reproducibly,
while the identical command line from the same crate directory compiles when run by hand. For this
diagnostic build only I replaced the mimalloc crate with a stand-in that forwards to the system
allocator ([patch.crates-io]). The copy/composite code and its counters are untouched; the local
build stamps version=unknown (fast profile).

3840x2160 — 150 s, hudless_format=0, every present at 0 with the colour without the interface

FSR 3 frame generation, colour without the interface: 0 copies in front of the title's interface composite; 0 interface composite draws into a presented texture (0 after a copy in their list), 1264 draws of other pipelines into one
FSR 3 frame generation, colour without the interface: 0 copies in front of the title's interface composite; 0 interface composite draws into a presented texture (0 after a copy in their list), 738 draws of other pipelines into one
FSR 3 frame generation, colour without the interface: 0 copies in front of the title's interface composite; 0 interface composite draws into a presented texture (0 after a copy in their list), 135 draws of other pipelines into one

The "did not match" line appears once, as before:
pipeline=[vertex 8652ce3974dde3c4, pixel 76cf21306691cd0c] ... after_the_copy_in_its_list=false.

2560x1440 — about 22 s of frame generation, hudless_format=24

the colour spaces of the title's present planes spaces=[Some(0), Some(12)]
FSR 3 frame generation: its context was made display=[2560, 1440] max_render=[1280, 720] format=24 hudless_format=24 flags=0x8
FSR 3 frame generation: first frame with the colour without the interface two_planes=true
FSR 3 frame generation: 143 presents with it on (143 with the colour without the interface), 0 off, 0 prepare dispatches failed

No colour without the interface: counter line at all in this run, which fits it being printed only
when presents miss.

What this says

  • Not a rejected size: the copy is never attempted, so no size path is reached.
  • Not a first-present miss: over 150 s and 135 frame-generation presents the copy count stays 0.
  • The 4K path reaches the presented texture through many draws of other pipelines, but none of them
    matches the interface-composite signature — consistent with your finding that the 4K draw uses a
    different shader pair and has blending disabled.
  • At 1440p the two-plane present supplies the hudless colour directly, so the copy helper is not
    involved there at all. That is why the two resolutions behave differently rather than merely
    differently fast.

Where a fix could go, in the order I would try them

  1. Two-plane composition at 4K. If the interface can be kept on a plane of its own at 3840x2160
    (as it already is below 4K), the copy helper is not needed and the ghosting disappears; this reuses
    the path that demonstrably works at 2560x1440.
  2. A composite match that includes the draw's place in the frame, not only the shader pair and the
    triangle: e.g. the last write into the presented texture between the scene composite and the
    present, provided it happens after the scene has been drawn. That would cover the 4K draw without
    risking a copy before the scene is rendered.
  3. An explicit copy point per title version (a pipeline hash in the profile, or a switch), until
    the heuristic covers it.

Happy to run further builds: a version that logs the presented texture's writers in order, or a build
with a switch that forces the copy point so we can see whether it produces the hudless colour at 4K.

Logs: darner-play-20261204-121744-28424.log (4K) and darner-play-20261204-122236-22304.log
(1440p)

@andrewpozdnakov7-jpg wrote in https://git.gtahub.st/TrustNo1/Darner/issues/259#issuecomment-864131: Thanks — I built `fix/fsr-hudless-copy-diagnostics` locally and ran it at both resolutions. The counts answer your question directly: at 3840x2160 no recognised composite reaches a presented texture (0), so no copy is made (0); at 2560x1440 the hudless colour comes from the two-plane present, not from the copy helper, so nothing misses. Build note (disclosed because it is not the stock build): the C++ half of `libmimalloc-sys` does not compile on this machine — `cl.exe` exits with code 2 after printing only its banner, reproducibly, while the identical command line from the same crate directory compiles when run by hand. For this diagnostic build only I replaced the `mimalloc` crate with a stand-in that forwards to the system allocator (`[patch.crates-io]`). The copy/composite code and its counters are untouched; the local build stamps `version=unknown` (fast profile). ### 3840x2160 — 150 s, `hudless_format=0`, every present at `0 with the colour without the interface` FSR 3 frame generation, colour without the interface: 0 copies in front of the title's interface composite; 0 interface composite draws into a presented texture (0 after a copy in their list), 1264 draws of other pipelines into one FSR 3 frame generation, colour without the interface: 0 copies in front of the title's interface composite; 0 interface composite draws into a presented texture (0 after a copy in their list), 738 draws of other pipelines into one FSR 3 frame generation, colour without the interface: 0 copies in front of the title's interface composite; 0 interface composite draws into a presented texture (0 after a copy in their list), 135 draws of other pipelines into one The "did not match" line appears once, as before: `pipeline=[vertex 8652ce3974dde3c4, pixel 76cf21306691cd0c] ... after_the_copy_in_its_list=false`. ### 2560x1440 — about 22 s of frame generation, `hudless_format=24` the colour spaces of the title's present planes spaces=[Some(0), Some(12)] FSR 3 frame generation: its context was made display=[2560, 1440] max_render=[1280, 720] format=24 hudless_format=24 flags=0x8 FSR 3 frame generation: first frame with the colour without the interface two_planes=true FSR 3 frame generation: 143 presents with it on (143 with the colour without the interface), 0 off, 0 prepare dispatches failed No `colour without the interface:` counter line at all in this run, which fits it being printed only when presents miss. ### What this says - Not a rejected size: the copy is never attempted, so no size path is reached. - Not a first-present miss: over 150 s and 135 frame-generation presents the copy count stays 0. - The 4K path reaches the presented texture through many draws of other pipelines, but none of them matches the interface-composite signature — consistent with your finding that the 4K draw uses a different shader pair and has blending disabled. - At 1440p the two-plane present supplies the hudless colour directly, so the copy helper is not involved there at all. That is why the two resolutions behave differently rather than merely differently fast. ### Where a fix could go, in the order I would try them 1. Two-plane composition at 4K. If the interface can be kept on a plane of its own at 3840x2160 (as it already is below 4K), the copy helper is not needed and the ghosting disappears; this reuses the path that demonstrably works at 2560x1440. 2. A composite match that includes the draw's place in the frame, not only the shader pair and the triangle: e.g. the last write into the presented texture between the scene composite and the present, provided it happens after the scene has been drawn. That would cover the 4K draw without risking a copy before the scene is rendered. 3. An explicit copy point per title version (a pipeline hash in the profile, or a switch), until the heuristic covers it. Happy to run further builds: a version that logs the presented texture's writers in order, or a build with a switch that forces the copy point so we can see whether it produces the hudless colour at 4K. Logs: `darner-play-20261204-121744-28424.log` (4K) and `darner-play-20261204-122236-22304.log` (1440p)

Thanks for running both resolutions and calling out the diagnostic build's allocator change. At 4K the counters show zero recognized interface-composite draws and zero copy attempts across the run. At 1440p the two-plane present supplied HUD-less colour for all 143 presents.

That narrows the 4K blocker to finding a reliable source of HUD-less colour. We would need a confirmed point after scene rendering and before the HUD is drawn. The last write to the presented texture alone can already include the HUD. The copy-size path is downstream of the copy attempt, so these logs give us no reason to change its limits.

Thanks for running both resolutions and calling out the diagnostic build's allocator change. At 4K the counters show zero recognized interface-composite draws and zero copy attempts across the run. At 1440p the two-plane present supplied HUD-less colour for all 143 presents. That narrows the 4K blocker to finding a reliable source of HUD-less colour. We would need a confirmed point after scene rendering and before the HUD is drawn. The last write to the presented texture alone can already include the HUD. The copy-size path is downstream of the copy attempt, so these logs give us no reason to change its limits.
Author

@andrewpozdnakov7-jpg wrote in #259 (comment):

I traced the 4K case further and have a working local fix. It changes the source of the HUD-less colour
rather than the copy point on the presented texture.

What the earlier data showed: at 3840x2160 the presented texture is written exactly once per frame
(the "other pipelines" counter equals the present count in every interval, and equals one per frame at
~12.7 fps) by the pipeline with vertex 8652ce3974dde3c4 / pixel 76cf21306691cd0c, blending off. No
draw matches INTERFACE_COMPOSITE (0602c2384acbb3b2 / a78d088fa55aa495), so no copy is ever recorded.
Since the presented texture only holds the finished composite, a copy point "after the scene, before
the HUD" does not exist there in this path.

The fix: copy the PC FidelityFX upscaler's output. That texture is the scene at the output size, before
the title draws its interface over it, and darner already records its dispatch. In
record_host_upscale, after the dispatch is recorded, I copy the output into darner's hudless textures
(with crate::list::ensure_state, the same state tracking the depth/motion snapshots use, restoring the
output to plan::output_state), register it in HUD_PENDING, and mark the list. hudless_for then
falls back to that copy (target 0) when no copy of the presented texture was recorded. The existing
interface-composite path is unchanged and still wins where it matches.

Two files change, on top of the diagnostic branch (commit 512de15, branch
fix/fsr-hudless-4k-upscale-copy):

crates/darner-gpu/src/host.rs +24 (HostList::scene marker)
crates/darner-gpu/src/streamline.rs +90/-7 (copy at the upscaling; fallback in hudless_for;
one more counter)

Locally, at 3840x2160 with FSR frame generation 2x:

its context was made display=[3840, 2160] max_render=[2560, 1440] format=28 hudless_format=28
92 presents with it on (92 with the colour without the interface), 766 off
118 presents with it on (118 with the colour without the interface), 810 off
146 presents with it on (146 with the colour without the interface), 0 off

Before the change the same run reported hudless_format=0 and 0 with the colour without the interface in every interval. With the interface excluded from the generated frames, the HUD ghosting
at 4K is gone; 2560x1440 still uses the two-plane present and is untouched.

Known limits, in case you want to reshape it:

  • It assumes the upscaler's output is the scene without the interface (true for this title's FSR
    integration). A title that composites its interface before upscaling would not be helped.
  • Frame pairing is by submission order, not by frame id: menus/loading, several presents per upscaling
    or a present with no fresh upscaling can take the newest earlier copy. A frame id on the copy would
    make that exact.
  • One full-size copy per frame while frame generation is wanted (about 66 MB at 4K FP16; two hudless
    textures are kept, about 133 MB of video memory).
  • My test build was a local fast profile built with a stand-in for the mimalloc crate (its C++
    part does not compile with this machine's MSVC, reproducibly); the branch itself is stock source
    apart from the two files above.
@andrewpozdnakov7-jpg wrote in https://git.gtahub.st/TrustNo1/Darner/issues/259#issuecomment-866187: I traced the 4K case further and have a working local fix. It changes the source of the HUD-less colour rather than the copy point on the presented texture. What the earlier data showed: at 3840x2160 the presented texture is written exactly once per frame (the "other pipelines" counter equals the present count in every interval, and equals one per frame at ~12.7 fps) by the pipeline with vertex 8652ce3974dde3c4 / pixel 76cf21306691cd0c, blending off. No draw matches INTERFACE_COMPOSITE (0602c2384acbb3b2 / a78d088fa55aa495), so no copy is ever recorded. Since the presented texture only holds the finished composite, a copy point "after the scene, before the HUD" does not exist there in this path. The fix: copy the PC FidelityFX upscaler's output. That texture is the scene at the output size, before the title draws its interface over it, and darner already records its dispatch. In `record_host_upscale`, after the dispatch is recorded, I copy the output into darner's hudless textures (with `crate::list::ensure_state`, the same state tracking the depth/motion snapshots use, restoring the output to `plan::output_state`), register it in `HUD_PENDING`, and mark the list. `hudless_for` then falls back to that copy (`target 0`) when no copy of the presented texture was recorded. The existing interface-composite path is unchanged and still wins where it matches. Two files change, on top of the diagnostic branch (commit 512de15, branch `fix/fsr-hudless-4k-upscale-copy`): crates/darner-gpu/src/host.rs +24 (HostList::scene marker) crates/darner-gpu/src/streamline.rs +90/-7 (copy at the upscaling; fallback in hudless_for; one more counter) Locally, at 3840x2160 with FSR frame generation 2x: its context was made display=[3840, 2160] max_render=[2560, 1440] format=28 hudless_format=28 92 presents with it on (92 with the colour without the interface), 766 off 118 presents with it on (118 with the colour without the interface), 810 off 146 presents with it on (146 with the colour without the interface), 0 off Before the change the same run reported `hudless_format=0` and `0 with the colour without the interface` in every interval. With the interface excluded from the generated frames, the HUD ghosting at 4K is gone; 2560x1440 still uses the two-plane present and is untouched. Known limits, in case you want to reshape it: - It assumes the upscaler's output is the scene without the interface (true for this title's FSR integration). A title that composites its interface before upscaling would not be helped. - Frame pairing is by submission order, not by frame id: menus/loading, several presents per upscaling or a present with no fresh upscaling can take the newest earlier copy. A frame id on the copy would make that exact. - One full-size copy per frame while frame generation is wanted (about 66 MB at 4K FP16; two hudless textures are kept, about 133 MB of video memory). - My test build was a local `fast` profile built with a stand-in for the `mimalloc` crate (its C++ part does not compile with this machine's MSVC, reproducibly); the branch itself is stock source apart from the two files above.

Thanks for the 4K follow-up. The 146 of 146 sample with HUD-less colour and the unchanged 1440p two-plane result are good evidence to include in a draft PR.

The frame-pairing limit is the next correctness check. Please cover a present with no fresh upscale, such as a loading or menu transition. If the upscaled scene cannot be paired to that present, falling back to the existing result would avoid feeding an earlier scene to frame generation. Please keep the local allocator substitution in the test notes.

Thanks for the 4K follow-up. The 146 of 146 sample with HUD-less colour and the unchanged 1440p two-plane result are good evidence to include in a draft PR. The frame-pairing limit is the next correctness check. Please cover a present with no fresh upscale, such as a loading or menu transition. If the upscaled scene cannot be paired to that present, falling back to the existing result would avoid feeding an earlier scene to frame generation. Please keep the local allocator substitution in the test notes.
Author

@andrewpozdnakov7-jpg wrote in #259 (comment):

Correcting the earlier report: the condition is 4K + HDR, and the blocker is the HDR format, not the draw
detection.

The reporter's first description was wrong. The interface ghosting happens only at 3840x2160 with HDR
on. With HDR off at 4K, or at 2560x1440 with HDR on, there is no ghosting. My earlier runs missed this
because the run I treated as the 4K success (darner-play-20261204-133059) had HDR disabled
(HDR mode: disabled (SDR presentation)); the 4K runs with HDR on still reported hudless_format=0.

What the logs show now

3840x2160, HDR on (darner-play-20261204-135839-27432.log, also 14:05):
PC FidelityFX upscaler created render=[1920, 1080] output=[3840, 2160] provider="4.1.2"
WARN DLSS Frame Generation: the presented texture cannot be copied for the colour without the
interface; none is tagged format=67 levels=1 samples=1
its context was made display=[3840, 2160] max_render=[1920, 1080] format=24 hudless_format=0
0 copies ... (0 at the upscaler's output, before the first draw into it); 0 interface composite draws;
1817 / 1467 / 307 draws of other pipelines into one

2560x1440, HDR on (darner-play-20261204-140205-4252.log):
the colour spaces of the title's present planes spaces=[Some(0), Some(12)]
its context was made display=[2560, 1440] ... hudless_format=24
first frame with the colour without the interface two_planes=true
143 presents with it on (143 with the colour without the interface)

So the decisive factor is format 67, not resolution. Under HDR the texture that would have to be copied
is R9G9B9E5_SHAREDEXP (DXGI format 67), which host::swap_format does not map (it takes 8-bit,
10-bit and FP16 families), so hudless_texture refuses it and no copy is ever recorded. Without HDR the
same path gets a 24/28 texture and works. Below 4K, HDR uses the two-plane present and the composer
mixes scene and interface in PQ, so hudless comes from the scene plane and no copy is needed.

An experiment, and why it is not the fix

I let hudless_texture accept format 67 as it is and copied the upscaler's output. The copy then
succeeded: hudless_format=67, every present carried the colour without the interface, and the UI
ghosting disappeared. But the picture then flickered continuously. The reason is colour space:
R9G9B9E5 at that point is the linear, pre-tone-mapping scene, while the generated frame is presented in
24 (HDR10 PQ). The generator interpolates a linear image between PQ frames, so generated and real frames
alternate between two encodings. Making the copy possible is not the same as making it the right image.

What a correct 4K + HDR fix needs

A HUD-less colour in the output's colour space (PQ, format 24), without the interface. Two ways:

  1. Produce one with the existing HDR composer: compose the upscaler's 67 scene alone into a 24 target
    before the title's interface composite, and hand that to frame generation.
  2. Have the 4K HDR present use the two-plane composition that 1440p HDR already uses, so the scene
    plane is the hudless colour and no copy is involved.

Until one of those exists, the honest options for this configuration are frame generation off at
4K + HDR, SDR at 4K, or 1440p + HDR with frame generation.

@andrewpozdnakov7-jpg wrote in https://git.gtahub.st/TrustNo1/Darner/issues/259#issuecomment-866937: Correcting the earlier report: the condition is 4K + HDR, and the blocker is the HDR format, not the draw detection. The reporter's first description was wrong. The interface ghosting happens only at 3840x2160 with HDR on. With HDR off at 4K, or at 2560x1440 with HDR on, there is no ghosting. My earlier runs missed this because the run I treated as the 4K success (darner-play-20261204-133059) had HDR disabled (`HDR mode: disabled (SDR presentation)`); the 4K runs with HDR on still reported `hudless_format=0`. What the logs show now 3840x2160, HDR on (darner-play-20261204-135839-27432.log, also 14:05): PC FidelityFX upscaler created render=[1920, 1080] output=[3840, 2160] provider="4.1.2" WARN DLSS Frame Generation: the presented texture cannot be copied for the colour without the interface; none is tagged format=67 levels=1 samples=1 its context was made display=[3840, 2160] max_render=[1920, 1080] format=24 hudless_format=0 0 copies ... (0 at the upscaler's output, before the first draw into it); 0 interface composite draws; 1817 / 1467 / 307 draws of other pipelines into one 2560x1440, HDR on (darner-play-20261204-140205-4252.log): the colour spaces of the title's present planes spaces=[Some(0), Some(12)] its context was made display=[2560, 1440] ... hudless_format=24 first frame with the colour without the interface two_planes=true 143 presents with it on (143 with the colour without the interface) So the decisive factor is format 67, not resolution. Under HDR the texture that would have to be copied is R9G9B9E5_SHAREDEXP (DXGI format 67), which `host::swap_format` does not map (it takes 8-bit, 10-bit and FP16 families), so `hudless_texture` refuses it and no copy is ever recorded. Without HDR the same path gets a 24/28 texture and works. Below 4K, HDR uses the two-plane present and the composer mixes scene and interface in PQ, so hudless comes from the scene plane and no copy is needed. An experiment, and why it is not the fix I let `hudless_texture` accept format 67 as it is and copied the upscaler's output. The copy then succeeded: `hudless_format=67`, every present carried the colour without the interface, and the UI ghosting disappeared. But the picture then flickered continuously. The reason is colour space: R9G9B9E5 at that point is the linear, pre-tone-mapping scene, while the generated frame is presented in 24 (HDR10 PQ). The generator interpolates a linear image between PQ frames, so generated and real frames alternate between two encodings. Making the copy possible is not the same as making it the right image. What a correct 4K + HDR fix needs A HUD-less colour in the output's colour space (PQ, format 24), without the interface. Two ways: 1. Produce one with the existing HDR composer: compose the upscaler's 67 scene alone into a 24 target before the title's interface composite, and hand that to frame generation. 2. Have the 4K HDR present use the two-plane composition that 1440p HDR already uses, so the scene plane is the hudless colour and no copy is involved. Until one of those exists, the honest options for this configuration are frame generation off at 4K + HDR, SDR at 4K, or 1440p + HDR with frame generation.
Author

@andrewpozdnakov7-jpg wrote in #259 (comment):

I know this means a lot of repairs are needed instead of just changing a few lines of code, so I'm reporting this discovery to you

@andrewpozdnakov7-jpg wrote in https://git.gtahub.st/TrustNo1/Darner/issues/259#issuecomment-866937: I know this means a lot of repairs are needed instead of just changing a few lines of code, so I'm reporting this discovery to you

Thanks for separating the HDR and SDR runs. That leaves 4K HDR open. There is one detail for the composer option: compose.rs::ps_pq already expects its scene input in PQ and starts by decoding it. Passing the linear upscaler output to that shader as-is would treat linear values as PQ. Changing the DXGI pixel format alone also leaves the colour-space conversion unresolved.

For a fallback, we would need a scene-only image that matches the HDR presentation's tone mapping and colour space. The successful two-plane path is a useful reference for that check. Microsoft's DirectX HDR guidance

Thanks for separating the HDR and SDR runs. That leaves 4K HDR open. There is one detail for the composer option: `compose.rs::ps_pq` already expects its scene input in PQ and starts by decoding it. Passing the linear upscaler output to that shader as-is would treat linear values as PQ. Changing the DXGI pixel format alone also leaves the colour-space conversion unresolved. For a fallback, we would need a scene-only image that matches the HDR presentation's tone mapping and colour space. The successful two-plane path is a useful reference for that check. [Microsoft's DirectX HDR guidance](https://learn.microsoft.com/en-us/windows/win32/direct3darticles/high-dynamic-range)
Sign in to join this conversation.
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#259
No description provided.