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

+42
View File
@@ -197,6 +197,20 @@ impl Camera {
self.flags & FFX_DISPLAY_RESOLUTION_MOTION_VECTORS != 0
}
/// The camera with its nearer plane as the near one. FidelityFX takes
/// the two distances in either order (its upscaler reads the smaller as
/// the near plane and lets the inverted-depth flag say which end of the
/// depth range it is), and the title, whose depth is inverted, names the
/// far plane first (near 10000, far 0.15 in the first dispatch of
/// 2026-11-26). Streamline's constants name them as they are.
pub fn planes_in_order(&self) -> Camera {
let mut camera = *self;
if self.near > self.far && self.far > 0.0 {
(camera.near, camera.far) = (self.far, self.near);
}
camera
}
/// The size the motion vectors cover.
pub fn motion_size(&self) -> [u32; 2] {
if self.display_motion_vectors() { self.output } else { self.render }
@@ -462,6 +476,34 @@ mod tests {
assert_eq!(invert(&[[0.0; 4]; 4]), None);
}
/// The title names the far plane first (inverted depth): in order, the
/// projection puts the nearer plane at depth 1 and the farther at 0; as
/// named, it took the farther for the near plane of an endless range.
#[test]
fn planes_named_far_first_are_put_in_order() {
let mut named = camera(FFX_DEPTH_INVERTED);
(named.near, named.far) = (10_000.0, 0.15);
let ordered = named.planes_in_order();
assert_eq!((ordered.near, ordered.far), (0.15, 10_000.0));
assert_eq!(ordered.planes_in_order(), ordered);
let c = ordered.constants([1.0, 1.0], [1.0, 1.0]);
assert_eq!((c.camera_near, c.camera_far), (0.15, 10_000.0));
let depth = |z: f32| {
let m = &c.camera_view_to_clip;
(z * m[2][2] + m[3][2]) / (z * m[2][3] + m[3][3])
};
assert!((depth(0.15) - 1.0).abs() < 1e-5 && depth(10_000.0).abs() < 1e-5);
// As named: an endless range from 10000 on.
let wrong = named.constants([1.0, 1.0], [1.0, 1.0]);
assert_eq!(wrong.camera_view_to_clip[3][2], 10_000.0);
// An endless far plane, or a plane at 0, is left alone.
let mut endless = camera(FFX_DEPTH_INVERTED);
(endless.near, endless.far) = (0.15, f32::MAX);
assert_eq!(endless.planes_in_order(), endless);
(endless.near, endless.far) = (0.15, 0.0);
assert_eq!(endless.planes_in_order(), endless);
}
#[test]
fn multiplier_pairs() {
assert_eq!(pair(None), [1.0, 1.0]);