FSR 4 at output sizes other than 4K #58

Manually merged
github merged 1 commit from github-bot/gh-58 into main 2026-12-01 20:58:44 +00:00 AGit
Owner

@⁠ClosetPie107 on GitHub · 2026-12-01 07:21 UTC · original
ClosetPie107:fsr-output-sizes → main · +117 −26 · 6 files · 1 commits · merged 2026-12-01 20:55 UTC

Fixes #46.

VICTORY_FSR_4K always output 3840x2160. FSR now uses VICTORY_OUTPUT when it is set explicitly: one of the title's modes, 1280x720, 1664x936, 1920x1080, 2560x1440 or 3840x2160. When it's unset, FSR keeps the stock 4K output, so existing FSR setups are unchanged. Non-FSR runs keep their 1440p default.

The output-size and pool-check patches the non-FSR path applies at load are shared through output_patches(). For FSR they are applied to the prepared image (prepare_output, byte-checked first) before it is cached, and the cache folder name includes the size (fsr-<preset>-<4k|WxH>-sdr). apply_asked stays skipped for FSR, so nothing is patched twice. README, the panel's doc comment and play.ps1's help no longer say FSR is 4K-only; the VICTORY_FSR_4K name is kept for existing configs.

Tested

RX 9070, Linux/Proton, under Gamescope. In each run the logged FSR render/output, the DXGI display mode and the swapchain size matched; no FSR errors, device losses or crashes.

Preset VICTORY_OUTPUT Render → output
Quality, Performance (ray tracing on) unset (4K) → 3840×2160
Quality, Performance (ray tracing on) 2560x1440 → 2560×1440
Performance 1920x1080 960×540 → 1920×1080
Performance 1280x720 640×360 → 1280×720
Quality 1664x936 1109×624 → 1664×936
Performance unset 1920×1080 → 3840×2160

The image test (fsr_below_4k_patches_title_output_and_keeps_the_fsr_preset) checks the patched output and the FSR renderer at 1440p and 1080p; like the existing one it needs VICTORY_DISPLAY_PROFILE_TEST_IMAGE. Both pass against the retail executable.

**@⁠ClosetPie107** on GitHub · 2026-12-01 07:21 UTC · [original](https://github.com/lobomfz/VIctory-xmem/pull/58) `ClosetPie107:fsr-output-sizes` → `main` · +117 −26 · 6 files · 1 commits · merged 2026-12-01 20:55 UTC Fixes #46. `VICTORY_FSR_4K` always output 3840x2160. FSR now uses `VICTORY_OUTPUT` when it is set explicitly: one of the title's modes, 1280x720, 1664x936, 1920x1080, 2560x1440 or 3840x2160. When it's unset, FSR keeps the stock 4K output, so existing FSR setups are unchanged. Non-FSR runs keep their 1440p default. The output-size and pool-check patches the non-FSR path applies at load are shared through `output_patches()`. For FSR they are applied to the prepared image (`prepare_output`, byte-checked first) before it is cached, and the cache folder name includes the size (`fsr-<preset>-<4k|WxH>-sdr`). `apply_asked` stays skipped for FSR, so nothing is patched twice. README, the panel's doc comment and `play.ps1`'s help no longer say FSR is 4K-only; the `VICTORY_FSR_4K` name is kept for existing configs. ### Tested RX 9070, Linux/Proton, under Gamescope. In each run the logged FSR render/output, the DXGI display mode and the swapchain size matched; no FSR errors, device losses or crashes. | Preset | `VICTORY_OUTPUT` | Render → output | |---|---|---| | Quality, Performance (ray tracing on) | unset (4K) | → 3840×2160 | | Quality, Performance (ray tracing on) | 2560x1440 | → 2560×1440 | | Performance | 1920x1080 | 960×540 → 1920×1080 | | Performance | 1280x720 | 640×360 → 1280×720 | | Quality | 1664x936 | 1109×624 → 1664×936 | | Performance | unset | 1920×1080 → 3840×2160 | The image test (`fsr_below_4k_patches_title_output_and_keeps_the_fsr_preset`) checks the patched output and the FSR renderer at 1440p and 1080p; like the existing one it needs `VICTORY_DISPLAY_PROFILE_TEST_IMAGE`. Both pass against the retail executable.
FSR always output 3840x2160. It now takes VICTORY_OUTPUT when that is set
(one of the title's modes) and keeps the stock 4K otherwise. The output
patches the title's own upscaler gets at load are shared through
output_patches() and applied to the prepared image before it is cached;
the cache folder names the size.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 07:42:23 +00:00
github manually merged commit 80c6853317 into main 2026-12-01 20:58:44 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.