Run: Series S by default on PCs with less than 24 GB, with an upscaler that is there #24

Open
github-bot wants to merge 1 commit from github-bot/gh-24 into beta AGit
Owner

@⁠spy0eye-beep on GitHub · 2026-11-25 17:09 UTC · original
spy0eye-beep:klbf-lowspec-auto → beta · +167 −5 · 3 files · 1 commits · open

What

The recommended low-memory settings only apply if the user types them. On a PC with 16 GB the default (--console not given) is Series X, which per the guide commits about 20 GB, and a tester's 16 GB machine ran out on Series X where Series S held (fxceless/victory-fork#13). And with --console series-s but no VICTORY_FFX_DIR, the title stops once it upscales (README: "Without it ... the game crashes once it starts upscaling").

Change

victory run without --console:

  • Less than 24 GB of physical memory → series-s, else series-x (also when memory is unknown). --console given: used as is.
  • On series-s, the upscaler that is actually there:
    • VICTORY_FFX_DIR holds amd_fidelityfx_loader_dx12.dll → AMD FidelityFX, as now;
    • otherwise → sets VICTORY_FFX_SIMPLE=1 (the existing bilinear stand-in) instead of letting the title stop. A VICTORY_FFX_SIMPLE the user set is left alone.
  • Both decisions are printed with the reason, e.g.:
console        series-s (less than 24 GB of memory: the Series S profile (1280x720, upscaled) commits less)
upscaler       bilinear stand-in: no amd_fidelityfx_loader_dx12.dll in VICTORY_FFX_DIR (AMD's FidelityFX SDK 2.4.0, its Kits\FidelityFX\signedbin folder, upscales better)

The decisions are pure functions in a new apps/victory/src/lowspec.rs; main.rs only calls them. --console keeps the same values. Behaviour on 24 GB+ machines is unchanged.

Testing

  • New unit tests (lowspec::tests): the user's --console always stands; 15/16/23 GB → Series S, 24/32 GB and unknown → Series X; Series S gets AMD only when the loader DLL is in the folder, the stand-in otherwise, and a user-set VICTORY_FFX_SIMPLE or Series X is left alone. cargo test -p victory --bins: 7 passed.
  • The release victory.exe on a 16 GB laptop (RTX 4060 Laptop, Windows 11), run without --execute on a stand-in executable, so only the settings were exercised:
    • no --console, no VICTORY_FFX_DIR → series-s + bilinear stand-in;
    • --console series-x → series-x (chosen with --console);
    • VICTORY_FFX_DIR with the loader DLL → series-s + AMD FidelityFX.
  • cargo build --release -p victory: OK. Clippy on the app shows only victory-gpu's existing errors (resource.rs placed_filler_twins, draw.rs sort_unstable_by_key, as on beta). rustfmt: no new differences.
  • Not run with the title. The stand-in upscale is the existing VICTORY_FFX_SIMPLE path; I have not seen it in game.

Related: #22 (use the discrete GPU on laptops), #23 (less memory per texture).

AI-assisted (Claude).

🤖 Generated with Claude Code

**@⁠spy0eye-beep** on GitHub · 2026-11-25 17:09 UTC · [original](https://github.com/PastiiJay/klbf-lab/pull/24) `spy0eye-beep:klbf-lowspec-auto` → `beta` · +167 −5 · 3 files · 1 commits · open ## What The recommended low-memory settings only apply if the user types them. On a PC with 16 GB the default (`--console` not given) is Series X, which per the guide commits about 20 GB, and a tester's 16 GB machine ran out on Series X where Series S held (fxceless/victory-fork#13). And with `--console series-s` but no `VICTORY_FFX_DIR`, the title stops once it upscales (README: "Without it ... the game crashes once it starts upscaling"). ## Change `victory run` without `--console`: - **Less than 24 GB of physical memory → `series-s`**, else `series-x` (also when memory is unknown). `--console` given: used as is. - On `series-s`, the upscaler that is actually there: - `VICTORY_FFX_DIR` holds `amd_fidelityfx_loader_dx12.dll` → AMD FidelityFX, as now; - otherwise → sets `VICTORY_FFX_SIMPLE=1` (the existing bilinear stand-in) instead of letting the title stop. A `VICTORY_FFX_SIMPLE` the user set is left alone. - Both decisions are printed with the reason, e.g.: ``` console series-s (less than 24 GB of memory: the Series S profile (1280x720, upscaled) commits less) upscaler bilinear stand-in: no amd_fidelityfx_loader_dx12.dll in VICTORY_FFX_DIR (AMD's FidelityFX SDK 2.4.0, its Kits\FidelityFX\signedbin folder, upscales better) ``` The decisions are pure functions in a new `apps/victory/src/lowspec.rs`; `main.rs` only calls them. `--console` keeps the same values. Behaviour on 24 GB+ machines is unchanged. ## Testing - New unit tests (`lowspec::tests`): the user's `--console` always stands; 15/16/23 GB → Series S, 24/32 GB and unknown → Series X; Series S gets AMD only when the loader DLL is in the folder, the stand-in otherwise, and a user-set `VICTORY_FFX_SIMPLE` or Series X is left alone. `cargo test -p victory --bins`: 7 passed. - The release `victory.exe` on a 16 GB laptop (RTX 4060 Laptop, Windows 11), `run` **without** `--execute` on a stand-in executable, so only the settings were exercised: - no `--console`, no `VICTORY_FFX_DIR` → `series-s` + bilinear stand-in; - `--console series-x` → `series-x (chosen with --console)`; - `VICTORY_FFX_DIR` with the loader DLL → `series-s` + AMD FidelityFX. - `cargo build --release -p victory`: OK. Clippy on the app shows only `victory-gpu`'s existing errors (`resource.rs` `placed_filler_twins`, `draw.rs` `sort_unstable_by_key`, as on `beta`). rustfmt: no new differences. - **Not run with the title.** The stand-in upscale is the existing `VICTORY_FFX_SIMPLE` path; I have not seen it in game. Related: #22 (use the discrete GPU on laptops), #23 (less memory per texture). AI-assisted (Claude). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Without --console, a PC with less than 24 GB of physical memory runs as
Series S (1280x720, upscaled), which commits less than Series X; 24 GB or
more (or unknown) stays Series X. --console as given is used as is.

On Series S the upscale goes to AMD's FidelityFX when VICTORY_FFX_DIR holds
amd_fidelityfx_loader_dx12.dll; otherwise VICTORY_FFX_SIMPLE=1 (the bilinear
stand-in) is set instead of letting the title stop once it upscales. A user
VICTORY_FFX_SIMPLE is left alone. Both choices are printed with the reason.
The decisions are pure functions in apps/victory/src/lowspec.rs, with tests.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:52:43 +00:00
Author
Owner

@⁠PastiiJay on GitHub · 2026-11-25 18:38 UTC · original

Thanks a lot @⁠spy0eye-beep! Noted. It goes into tonight's RX 9070 XT test queue and I'll report the result here.

**@⁠PastiiJay** on GitHub · 2026-11-25 18:38 UTC · [original](https://github.com/PastiiJay/klbf-lab/pull/24#issuecomment-7171180977) Thanks a lot @⁠spy0eye-beep! Noted. It goes into tonight's RX 9070 XT test queue and I'll report the result here.
Author
Owner

@⁠HandshakeHackin on GitHub · 2026-11-26 06:21 UTC · original

I ran the bilinear fallback from 71b9d97 on Windows WARP. A 2×2 render area sat inside a larger input texture with a contrasting border. All 15 pixels of the 5×3 upscale matched the expected bilinear values within one 8-bit step. The nine pixels outside the output rectangle kept their original value.

On the same runner, Windows reported 17,174,360,064 bytes of visible physical RAM (just under 16 GiB). The normal CLI bound the repository’s synthetic title as Series S and selected the fallback with no FidelityFX settings. Explicit Series X and Series S both reached the requested console. This gives the hardware test a pixel reference; the fixture measures neither in-game memory usage nor frame rate. Windows CLI and pixel readback

**@⁠HandshakeHackin** on GitHub · 2026-11-26 06:21 UTC · [original](https://github.com/PastiiJay/klbf-lab/pull/24#issuecomment-7184352776) I ran the bilinear fallback from `71b9d97` on Windows WARP. A 2×2 render area sat inside a larger input texture with a contrasting border. All 15 pixels of the 5×3 upscale matched the expected bilinear values within one 8-bit step. The nine pixels outside the output rectangle kept their original value. On the same runner, Windows reported 17,174,360,064 bytes of visible physical RAM (just under 16 GiB). The normal CLI bound the repository’s synthetic title as Series S and selected the fallback with no FidelityFX settings. Explicit Series X and Series S both reached the requested console. This gives the hardware test a pixel reference; the fixture measures neither in-game memory usage nor frame rate. [Windows CLI and pixel readback](https://github.com/HandshakeHackin/klbf-lab/actions/runs/45766927831/job/139729943828)
Author
Owner

@⁠PastiiJay on GitHub · 2026-11-26 10:42 UTC · original

Thanks for the pixel check on the fallback upscaler. Changing the default needs an in-game pass first, we'll do it soon.

**@⁠PastiiJay** on GitHub · 2026-11-26 10:42 UTC · [original](https://github.com/PastiiJay/klbf-lab/pull/24#issuecomment-7189727228) Thanks for the pixel check on the fallback upscaler. Changing the default needs an in-game pass first, we'll do it soon.
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/24/head:github-bot/gh-24'
git switch 'github-bot/gh-24'

Merge

Merge the changes and update on Forgejo.
git switch 'beta'
git merge --no-ff 'github-bot/gh-24'
git switch 'github-bot/gh-24'
git rebase 'beta'
git switch 'beta'
git merge --ff-only 'github-bot/gh-24'
git switch 'github-bot/gh-24'
git rebase 'beta'
git switch 'beta'
git merge --no-ff 'github-bot/gh-24'
git switch 'beta'
git merge --squash 'github-bot/gh-24'
git switch 'beta'
git merge --ff-only 'github-bot/gh-24'
git switch 'beta'
git merge 'github-bot/gh-24'
git push origin 'beta'
This discussion has been locked. Commenting is limited to contributors.
No description provided.