Frame generation made ready only when asked for (--framegen-ready, -FrameGenReady) (#544)

A start without frame generation no longer goes through Streamline's swap
chain, which held some PCs at a flat 14 fps (#515, #574). --no-framegen-ready
is still accepted. FSR 3 frame generation follows the same rule and still
needs DLSS upscaling on.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
fromrivertotheseaandClaude Opus 5.5 authored and trustno1-coder committed 2026-11-27 18:44:17 -08:00
1 parent 9b712a6ab2
commit b4e1b08245
3 files changed
+39 -16

No files matched your search

+7 -4
View File
@@ -29,7 +29,10 @@ param(
# driver how many this card does and gives no more).
[ValidateRange(2, 6)][int]$FrameGenX = 2,
# Frame generation is made ready at every start with Streamline, on or off, so that the F1 menu switches it
# and changes its amount while playing. -NoFrameGenReady: only with -FrameGen, as before.
# and changes its amount while playing. Only with -FrameGenReady now: ready but off, Streamline's swap chain
# held this PC's frames at 14 a second (20 without), so frame generation off is off unless asked.
[switch]$FrameGenReady,
# (The default now; still taken.)
[switch]$NoFrameGenReady,
# Which frame generation: auto (DLSS Frame Generation where it runs, else AMD's FSR 3), dlss, or fsr (FSR 3
# even on an RTX 40/50; 2X only). FSR 3 needs AMD's FidelityFX DLLs (VICTORY_FIDELITYFX_DIR, else
@@ -105,7 +108,7 @@ if ($Dlss -ne 'off') {
if (Test-Path (Join-Path $sl 'sl.interposer.dll')) {
$settings.VICTORY_DLSS = '1'; $settings.VICTORY_DLSS_MODE = $Dlss; $settings.VICTORY_STREAMLINE_DIR = $sl
if ($FrameGen) { $settings.VICTORY_FRAMEGEN = '1'; $settings.VICTORY_FRAMEGEN_X = [string]$timesWanted }
elseif (-not $NoFrameGenReady) { $settings.VICTORY_FRAMEGEN = '1'; $settings.VICTORY_FRAMEGEN_X = '0' } # ready, off
elseif ($FrameGenReady -and -not $NoFrameGenReady) { $settings.VICTORY_FRAMEGEN = '1'; $settings.VICTORY_FRAMEGEN_X = '0' } # ready, off
# Frame generation takes 1.5 to 2 GB of the card's memory, which the layer otherwise fills with textures up
# to nine tenths of its budget (on a 12 GB card it then ran out: no generated frames). On from the start, it
# is left a fifth of the budget; ready but off, a little less is held back.
@@ -117,7 +120,7 @@ if ($Dlss -ne 'off') {
}
# AMD FSR 3 frame generation: made ready as DLSS Frame Generation is (on, or ready and off for the F1 menu).
# auto: the layer uses it only where DLSS Frame Generation does not run; fsr: DLSS Frame Generation is not asked.
if ($FgType -ne 'dlss' -and ($FrameGen -or -not $NoFrameGenReady)) {
if ($FgType -ne 'dlss' -and ($FrameGen -or ($FrameGenReady -and -not $NoFrameGenReady))) {
$fx = if ($env:VICTORY_FIDELITYFX_DIR) { $env:VICTORY_FIDELITYFX_DIR } else { Join-Path $repo 'amd-sdk\FidelityFX\bin' }
# Asked whatever is here: the layer checks the files and the card, and the start's notice (on the picture for
# its first 30 s, and in this window) says what runs and why not. On Series X without DLSS it stays off: the
@@ -148,7 +151,7 @@ $settings.VICTORY_MENU_FG_TYPE = $FgType
$settings.VICTORY_MENU_FPS = [string]$fpsWanted
$settings.VICTORY_MENU_FILE = $menuFile
$settings.VICTORY_MENU_PLAY = $MyInvocation.MyCommand.Path
$settings.VICTORY_MENU_ARGS = "-Exe '$($Exe -replace "'", "''")' -Build $Build$(if ($NoFrameGenReady) { ' -NoFrameGenReady' })"
$settings.VICTORY_MENU_ARGS = "-Exe '$($Exe -replace "'", "''")' -Build $Build$(if ($FrameGenReady -and -not $NoFrameGenReady) { ' -FrameGenReady' })"
$victory = Join-Path $repo "target\$Build\victory.exe"
if (-not (Test-Path $victory)) {