Skip to content

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

Open
spy0eye-beep wants to merge 1 commit into
PastiiJay:betafrom
spy0eye-beep:klbf-lowspec-auto
Open

spy0eye-beep wants to merge 1 commit into
PastiiJay:betafrom
spy0eye-beep:klbf-lowspec-auto

Conversation

@spy0eye-beep

Copy link
Copy Markdown

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

…pscaler that is there

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 <noreply@anthropic.com>
AlvBarros added a commit to AlvBarros/klbf-fork that referenced this pull request Nov 25, 2026
…ine (from Belobug PastiiJay#24, PastiiJay#25)

Ported from Belobug/VIctory-Belobug-AMD (romainhedouin):
- PastiiJay#24 (84ea9c1): a root constant buffer not 256-byte aligned is copied into
  the list's scratch memory once for all the draws that bind it, until a
  title copy or title work intervenes (HostList::fill_scratch; up to 64 KiB
  less copied per repeat). Cleared at the same points as `refreshed`.
- PastiiJay#25 (92d353f): a pipeline the list binds again is not named and kept
  again (HostList::bind_pipeline: one set lookup by address instead of two
  QueryInterface calls, three locks and a name search per switch). The list
  keeps the first, so the address names the same pipeline until reset.

New test: the same title bytes share one fill, and are filled again after
a title copy and after title work. victory-gpu 130/130 under Proton;
clippy clean.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@PastiiJay

Copy link
Copy Markdown
Owner

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

@HandshakeHackin

Copy link
Copy Markdown
Contributor

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

@PastiiJay

Copy link
Copy Markdown
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants