Series S stretch: an opt-in Catmull-Rom sample with contrast-adaptive sharpening (VICTORY_UPSCALE_SHARP; stacked on #188) #1180
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/fxceless--victory-fork!1180
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1180"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@Exopus-0x65f7ad0 on GitHub · 2026-11-25 23:02 UTC · original
Exopus-0x65f7ad0:pr/upscale-sharp→main· +1215 −9 · 9 files · 11 commits · openStacked on #188 (its commits come first; the two commits after them are this PR's). Opt-in, so nothing changes without the switch.
Problem
In the Series S profile the title renders at 1280x720 and asks its upscaler for 1920x1080. #188 answers that dispatch with a plain bilinear stretch, and its own comment says so: "an image, not the upscaler's quality". On screen the picture is soft, and fine detail in the distance, through window glass and on posters smears.
Change
VICTORY_UPSCALE_SHARP=<0..1>, off when unset or 0 (#188's bilinear stretch, byte for byte the same pass).When on, each output texel goes through four steps:
-1 / lerp(8, 5, SHARP)lobes, scaled down where the neighbourhood already spans the range.c / (1 + max(c))and back, because the colour input is HDR.The result is never brighter than its brightest neighbour. Without that bound, backlit hair showed bright specks: a value near 1 in tone-mapped space becomes a very large HDR value on the way back.
The shader stays one compute pass.
SHARPis a#defineset when the pass is created, so the switch costs nothing per frame.Tested
over::tests::the_sharpened_stretch_compiles_and_its_switch_parses: the switch parses and stays in bounds, and both forms (0 and 0.6) compile with FXCcs_5_1. The existing stretch tests still pass.maind510ee4plus a stack of open PRs,VICTORY_UPSCALE_SHARP=0.6:It is still a spatial filter: no temporal accumulation and no use of the depth or motion inputs. #86 / #730 (a real upscaler) remain the better long-term answer. This is a cheap step up from the stretch until then.
No game data in this PR (no captures, hashes, addresses or logs).
🤖 Generated with Claude Code
In its Series S mode the title renders at 1280x720 and calls the console's FidelityFX upscaler (`ffxDispatch` of amd_fidelityfx_loader_xbox.dll) to make the 1920x1080 output. The loader and upscaler are the title's own DLLs and run, but the upscaler's passes are compute pipelines in a container that is not translated ("falling back to NewBE" in the title's log), so the output was never written: the world was black behind the interface. The executable's import of `ffxDispatch` is now bound to ours. An upscale dispatch (type 0x10001, the public FidelityFX API's layout) is recorded as `victory_gpu::list::upscale_stretch` of its colour input into its output; any other dispatch, and an upscale that could not be stretched, goes to the title's DLL. The DLL is not registered as an HLE module: that kept the title's own from loading and left its other three entry points missing. Measured on an RTX 3050 8 GB, Windows 11, release build, on top of the R9G9B9E5 stand-in (#32): the Series S world renders (opening cutscene), 0.4 to 1.2 s a frame with peaks of 3 s, the card about a quarter busy, 7 GB of video memory, no host error in a five-minute run. Series X is not affected in the run made (it does not dispatch the upscaler). Not done: temporal accumulation, sharpening, use of the depth and motion inputs. No test yet. Only the opening cutscene was looked at.8dd30ab): the R9G9B9E5 stand-in is in main now 2f81ff8a65View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.