Frame generation on Series X: the colour without the interface, copied in front of the title's interface composite

On Series X the title blends its interface target over the frame itself:
one triangle (vertex 0602c2384acbb3b2, pixel a78d088fa55aa495), the last
draw into the texture it presents. With VICTORY_FRAMEGEN=1 the target is
copied into a texture of ours in front of that draw, at its place in the
title's list, and the present tags the copy as kBufferTypeHUDLessColor
(VICTORY_FRAMEGEN_HUDLESS=0: not). Log: the first copy, each other
pipeline that draws into a presented texture, and counts every ten
frame-rate lines.

Found reading the in-game path:
- Frame generation's constants get the camera's planes in order (the
  title names the far plane first; the projection took 10000 for the
  near plane of an endless range). DLSS Super Resolution's are as before.
- With Streamline's swap chain the system's Alt+Enter is not taken.
- Video memory is logged before the first present with frame generation
  on and 240 presents later.

upscaler-check: a stand-in colour without the interface is tagged with
--present; with a device the check ends with frame generation off, the
swap chain let go and slShutdown (VICTORY_CHECK_TEARDOWN=0: not): the
exit code is 0, where the process failed fast at its exit before
(0xC0000409, shown as 9). VICTORY_STREAMLINE_PRESENT=1 (off): with DLSS
and no frame generation our swap chain is Streamline's proxy of it, which
ends "presentCommon() was not observed" (the check runs it with
--present: 120 upscalings and presents).

With VICTORY_FRAMEGEN off and the new switches unset the title runs as
before.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
readmet3xt-labandClaude Opus 5.5 committed 2026-11-27 01:03:42 +05:30
1 parent a83bc910a7
commit 1d0fa87f39
4 files changed
+497 -10

No files matched your search

+29
View File
@@ -4424,6 +4424,9 @@ impl State {
self.window = None;
#[cfg(feature = "diagnostics")]
self.trace("draw", vertices, first);
if crate::streamline::hudless_wanted() {
self.before_shown_target(list, vertices == 3 && instances == 1);
}
let ready = self.prepare(list, false);
// A pipeline with the rectangle geometry stage draws the title's
// vertices as they are; any other gets its rectangles expanded.
@@ -4460,6 +4463,29 @@ impl State {
}
}
/// With frame generation (`crate::streamline`), before a draw into one
/// colour target without depth: if the target is one the title presents,
/// the draw is told there, where the colour without the interface is
/// copied in front of the title's interface composite. `triangle`: one
/// triangle, one instance (the composite's shape). Only copies and
/// barriers are recorded; the target is moved back to a render target by
/// the draw's own preparation.
fn before_shown_target(&self, list: &HostList, triangle: bool) {
if self.depth != 0 {
return;
}
let &[target] = self.targets.as_slice() else {
return;
};
let Some(p) = crate::pipeline::host_pipeline(self.pipeline as This) else {
return;
};
if p.compute || p.mesh {
return;
}
crate::streamline::before_target_draw(list, target as This, p, triangle);
}
/// Whether the bound pipeline completes rectangles itself, in the
/// geometry stage rectangle pipelines get (`HostPipeline::rects`).
fn completes_rects(&self) -> bool {
@@ -4592,6 +4618,9 @@ impl State {
self.window = None;
#[cfg(feature = "diagnostics")]
self.trace("indexed", indices, first);
if crate::streamline::hudless_wanted() {
self.before_shown_target(list, false);
}
// Indexed rectangles are drawn by the rectangle geometry stage
// alone (nothing expands them on the CPU).
let lost = self.topology == RECTANGLES && !self.completes_rects();