play.ps1: keep VICTORY_FIDELITYFX_DIR #4

Closed
github-bot wants to merge 0 commits from github-bot/gh-4 into main AGit
Owner

@⁠fraustiz on GitHub · 2026-11-28 10:55 UTC · original
fraustiz:fix-play-fidelityfx-dir → main · +1 −1 · 1 files · 1 commits · closed without merging

scripts/play.ps1 clears every inherited VICTORY_* variable except the path settings, and VICTORY_FIDELITYFX_DIR is not in that list. So a FidelityFX folder set before running the script is dropped, the host upscaler never loads, and the title falls back to its own Xbox FSR 4 DLL.

With VICTORY_FSR_4K set, that DLL rejects the 4K output:

FSR_API_DEBUG_ERROR: Shipping FSR4 configuration mismatch: maxUpscaleSize must be 1920x1080; received 3840x2160.

The title then crashes with 0xc0000094 (divide by zero) at title+0x28f03e8. I hit it twice, once during loading and once after ~9 minutes of driving.

The fix adds VICTORY_FIDELITYFX_DIR to the kept paths, as upstream Belobug's play.ps1 already does.

Tested on an RX 9070 XT / 7900X / 32 GB: with the folder kept, the log shows FidelityFX: the host's upscaler serves the title's (4.1.2, 3.1.6, 2.3.4) and the first host upscale succeeds. The mismatch message is gone.

The INSTALL.bat launchers call victory.exe directly and are not affected, so this is probably not the cause of #2.

**@⁠fraustiz** on GitHub · 2026-11-28 10:55 UTC · [original](https://github.com/eikkapine/victory-amd/pull/4) `fraustiz:fix-play-fidelityfx-dir` → `main` · +1 −1 · 1 files · 1 commits · closed without merging `scripts/play.ps1` clears every inherited `VICTORY_*` variable except the path settings, and `VICTORY_FIDELITYFX_DIR` is not in that list. So a FidelityFX folder set before running the script is dropped, the host upscaler never loads, and the title falls back to its own Xbox FSR 4 DLL. With `VICTORY_FSR_4K` set, that DLL rejects the 4K output: ``` FSR_API_DEBUG_ERROR: Shipping FSR4 configuration mismatch: maxUpscaleSize must be 1920x1080; received 3840x2160. ``` The title then crashes with `0xc0000094` (divide by zero) at `title+0x28f03e8`. I hit it twice, once during loading and once after ~9 minutes of driving. The fix adds `VICTORY_FIDELITYFX_DIR` to the kept paths, as upstream Belobug's `play.ps1` already does. Tested on an RX 9070 XT / 7900X / 32 GB: with the folder kept, the log shows `FidelityFX: the host's upscaler serves the title's` (4.1.2, 3.1.6, 2.3.4) and the first host upscale succeeds. The mismatch message is gone. The `INSTALL.bat` launchers call `victory.exe` directly and are not affected, so this is probably not the cause of #2.
play.ps1 removes every inherited VICTORY_* variable except the path
settings, and VICTORY_FIDELITYFX_DIR was not in that list. A folder set
before running the script was dropped, so the host FidelityFX upscaler
never loaded and the title used its own Xbox FSR 4 DLL. With
VICTORY_FSR_4K set, that DLL rejects the 4K output ("maxUpscaleSize must
be 1920x1080; received 3840x2160") and the title then crashes with
0xc0000094 at title+0x28f03e8, during loading or a few minutes in.

Tested on an RX 9070 XT: with the folder kept, the log shows "the host's
upscaler serves the title's" (4.1.2) and the first host upscale succeeds.

The INSTALL.bat launchers call victory.exe directly and are not affected.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-30 05:17:30 +00:00
github-bot closed this pull request 2026-11-30 16:17:20 +00:00
Author
Owner

@⁠eikkapine on GitHub · 2026-11-30 16:13 UTC · original

Thanks! The same one-line fix is on main now (599d9ae), so closing this. Note it only affects running from source with scripts/play.ps1; the release launcher sets VICTORY_FIDELITYFX_DIR itself.

**@⁠eikkapine** on GitHub · 2026-11-30 16:13 UTC · [original](https://github.com/eikkapine/victory-amd/pull/4#issuecomment-7284322367) Thanks! The same one-line fix is on main now (599d9ae), so closing this. Note it only affects running from source with scripts/play.ps1; the release launcher sets VICTORY_FIDELITYFX_DIR itself.

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.