Series S stretch: an opt-in Catmull-Rom sample with contrast-adaptive sharpening (VICTORY_UPSCALE_SHARP; stacked on #188) #1177
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from fxceless/victory-fork. Originally posted by Exopus-0x65f7ad0 on 2026-11-25T23:02:40Z.
Stacked 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
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.