Files
horizon-airdef/crates
chexit 1cadd63387 Order the DLSS frame so consumers read the current resolved frame (#137)
The HD film/tonemap/final-frame passes were recorded into the first command
buffer and read `taa.target` before NGX wrote the DLSS result into it: the
submit was `once(world).chain([NGX, delinearize])`, so the first frame read
the target's initial contents and later frames read the previous result.
Successful DLSS init in the log did not mean the current frame was shown.

Finish the world encoder (world + display->linear) right after `Hd::taa`
records the DLSS input, then record film, bloom, the tone curve, the hand,
the HUD, capture and present into a fresh encoder. One `queue.submit` of
[world+linearize, NGX, delinearize, rest] keeps that GPU order with no CPU
sync; `submission_order` builds the list and stays the single-buffer path
when DLSS is off. Staging-belt recall, GPU/HD pass timing and the capture
readback all stay within the one submission, so they keep working across
the split (HD pass timestamps resolve in a later frame, as before).

Track native and NGX history readiness separately (`HistoryReady`): a
successful DLSS frame no longer marks the native history usable, so the
first fallback frame after DLSS starts over instead of blending a stale or
empty native texture; a native frame resets NGX in turn. A cut/teleport,
resize or TAA off clears both. `HdFrame.taa.w` now reflects native history
usability, so film motion blur sits out DLSS frames rather than reproject
a history it does not own.

Narrow tests: the submission order, and the native/DLSS history lifecycle
including the first fallback frame and reset. The DLSS-gated tests and the
real-RTX acceptance (docs/DLSS-TESTING.md) remain pending on Windows/Linux
with an RTX; no RTX is available here, so this is verified by the ordering
and history unit tests plus the native suite, not a DLSS capture.

Co-Authored-By: Kimi Code <noreply@moonshot.ai>
2026-11-21 09:33:31 +03:00
..