Repository navigation
fix(gpu/streamline, app): scene sides behind DLSS/FSR made multiples of 8 so the title draws its clouds (VICTORY_FFX_RENDER_ALIGN) - #332
Conversation
…f 8 so the title draws its clouds (VICTORY_FFX_RENDER_ALIGN, 1664x936 for 1440p quality)
|
Read-only security & triage review on
|
|
Automated triage for the maintainers (not an approval). Verdict: Review SummaryCI is passing, static checks are clean, and the implementation is well-scoped and sound. Because this changes the default DLSS/FSR render resolution on 1440p Quality ( What Was Verified
Minor Non-Blocking Notes
Verdict
Generated with Antigravity CLI ( |
|
Allowlist & Architect Deep Review ( Code audit (
Next step ( |
Summary
Behind DLSS (or FSR 3 frame generation),
prepare_upscalergives the titleMode::scale()of its output, and the title truncates: MiniVI's default (--res 1440 --dlss quality) draws a 1706x960 scene, Series S at DLSS performance 960x540. At exactly those two sizes we found that the title does not draw its clouds: the compute programs of its cloud pass are never bound (its own code skips them; nothing of ours is refused in the logs). At 1280x720 (the size its own upscalers use) the clouds are there.This PR picks, for the output at hand, the largest scale at most the mode's (and no less than 85 % of it) whose scene has both sides multiples of 8, and gives that to the title: 1664x936 for 2560x1440 at quality, 952x536 for 1920x1080 at performance, 1480x832 for 1440p balanced, 840x472 for 1440p ultra performance; sizes already aligned (4K quality 2560x1440, 4K performance 1920x1080, 1080p quality 1280x720) keep the mode's own scale. Every aligned size still picks the same DLSS mode in
pick_mode(tested).VICTORY_FFX_RENDER_ALIGN=<n>(2-64) changes the alignment,=1turns it off (the mode's exact scale, as before).Our fork has shipped it since 2 Dec; there the same scale is written by its 1440p profile code.
Changes
crates/victory-gpu/src/streamline/plan.rs:Mode::scale_for(output),Mode::render_size_for(output),render_align(),sizes(),aligned_scale()(pure math, single-precision as the title computes, exact float found by stepping ULPs); testaligned_scales_give_aligned_scenes(all modes x 1440p/4K/1080p x alignments 2-16, bounds, and that each aligned 1440p size picks its own DLSS mode).apps/victory/src/native_1440p.rs:prepare_upscaler(image, mode, output)writesmode.scale_for(output)where it wrotemode.scale(); at quality the stock constant is still used when it already gives aligned sides (4K). No new addresses, hashes or bytes: only the value written changes. The env-gated image test follows.apps/victory/src/run.rs: passes the output (2560x1440 after the 1440p patch; else Series S 1920x1080, Series X the reported display mode, 3840x2160 by default) and prints the scene size actually drawn.Rig Specs Tested On (our fork, not this tree)
Run Settings & Profile
Measurements & Verification
main3230974; offline,--locked, toolchain 1.98.1-msvc):cargo clippy --workspace --all-targets --locked -- -D warningscargo clippy --workspace --all-targets --all-features --locked -- -D warningscargo test(not run by us on this tree)cargo xtask policy(not run; no new addresses, hashes or byte runs)Limits
pick_modestill chooses the same mode, and that the patched image is rewritten when the scale changes (write_if_changed), but this branch was not run in the game.