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:
1 parent
9b712a6ab2
commit
b4e1b08245
3 files changed
+39
-16
No files matched your search
@@ -194,8 +194,8 @@ speed, in the picture and in simply being able to play it:
|
||||
|
||||
- **DLSS in place of the title's upscaler**, with its model and mode to choose.
|
||||
- **DLSS frame generation with up to six frames shown for each one rendered**,
|
||||
switched and changed while playing, without a restart (foxhound's is 2x, set
|
||||
at the start). By Streamline's own count it shows exactly 2, 4 and 6.
|
||||
switched and changed while playing, without a restart, once it was on at the
|
||||
start or made ready with `-FrameGenReady` (foxhound's is 2x, set at the start). By Streamline's own count it shows exactly 2, 4 and 6.
|
||||
- **Why frame generation showed nothing on a full 12 GB card**, found and
|
||||
fixed: the card's memory is now shared out so that it has room.
|
||||
- **The frame rate at the top left of the picture**: frames rendered a second
|
||||
@@ -333,7 +333,7 @@ fork has always had; its options:
|
||||
| `-Fps 60` | a frame rate cap (30 is the title's own) |
|
||||
| `-SeriesS` | the Series S profile: 1280x720 inside, faster, softer |
|
||||
| `-Res 1080to1440` / `4k` | scene at 1080p upscaled by the title / the stock 3840x2160 output |
|
||||
| `-NoFrameGenReady` | frame generation only with `-FrameGen` (it is otherwise made ready at every start, so the menu can switch it) |
|
||||
| `-FrameGenReady` | frame generation made ready but off, so the F1 menu can switch it while playing (costs frame rate: ready, frames go through Streamline's swap chain; without it, a change in F1 takes effect at the next start) |
|
||||
| `-FgType auto` / `dlss` / `fsr` | which frame generation (see the top of this page); FSR 3's DLLs from `VICTORY_FIDELITYFX_DIR`, else `amd-sdk\FidelityFX\bin` here |
|
||||
| `-Build diag` | the diagnostics build (slower; captures, timelines, recording time in the F3 panel) |
|
||||
| `-More @{VICTORY_X='1'}` | add or override any switch |
|
||||
|
||||
@@ -153,10 +153,16 @@ pub(crate) struct Play {
|
||||
#[arg(long, default_value = "quality", value_parser = DLSS_MODES)]
|
||||
dlss: String,
|
||||
/// DLSS frame generation on from the start: frames shown for each one
|
||||
/// rendered, 2 to 6. Without it, it is ready and the F1 menu switches it.
|
||||
/// rendered, 2 to 6. Without it, it is off (see `--framegen-ready`).
|
||||
#[arg(long, value_parser = clap::value_parser!(u32).range(2..=6))]
|
||||
framegen: Option<u32>,
|
||||
/// Frame generation not made ready at the start.
|
||||
/// Frame generation made ready but off at the start, so that the F1 menu
|
||||
/// switches it while playing. Not by default: ready but off, frames go
|
||||
/// through Streamline's swap chain, which held an RTX 5070 Ti's first
|
||||
/// playable part at 14 a second (20 without).
|
||||
#[arg(long)]
|
||||
framegen_ready: bool,
|
||||
/// (The default now; still taken.)
|
||||
#[arg(long)]
|
||||
no_framegen_ready: bool,
|
||||
/// Which frame generation: auto (DLSS frame generation where the card has
|
||||
@@ -310,7 +316,7 @@ fn settings(o: &Play, menu: &[(String, String)], streamline: Option<&Path>) -> (
|
||||
set("VICTORY_STREAMLINE_DIR", &dir.to_string_lossy());
|
||||
if framegen {
|
||||
framegen_x = Some(times);
|
||||
} else if !o.no_framegen_ready {
|
||||
} else if o.framegen_ready && !o.no_framegen_ready {
|
||||
framegen_x = Some(0); // ready, off
|
||||
}
|
||||
if let Some(x) = framegen_x {
|
||||
@@ -328,7 +334,7 @@ fn settings(o: &Play, menu: &[(String, String)], streamline: Option<&Path>) -> (
|
||||
// Only with DLSS on: it never runs without DLSS's upscaling, and made ready without it (the
|
||||
// title's FidelityFX then left with AMD's files) the title stopped during the boot screens
|
||||
// (0x80000003 at +0x2219650, or exit code 3; #331, #459: --no-framegen-ready avoided it).
|
||||
if dlss_on && fg_type != "dlss" && (framegen || !o.no_framegen_ready) {
|
||||
if dlss_on && fg_type != "dlss" && (framegen || o.framegen_ready && !o.no_framegen_ready) {
|
||||
set("VICTORY_FSR_FRAMEGEN", "1");
|
||||
if fg_type == "fsr" {
|
||||
s.remove("VICTORY_FRAMEGEN");
|
||||
@@ -924,8 +930,8 @@ fn restart_args(o: &Play, exe: &Path) -> String {
|
||||
if let Some(x) = o.framegen {
|
||||
args.extend(["--framegen".to_owned(), x.to_string()]);
|
||||
}
|
||||
if o.no_framegen_ready {
|
||||
args.push("--no-framegen-ready".to_owned());
|
||||
if o.framegen_ready && !o.no_framegen_ready {
|
||||
args.push("--framegen-ready".to_owned());
|
||||
}
|
||||
args.extend(["--fg-type".to_owned(), quoted(&o.fg_type), "--fps".to_owned(), o.fps.to_string()]);
|
||||
for more in &o.more {
|
||||
@@ -955,6 +961,7 @@ mod tests {
|
||||
res: "1440".to_owned(),
|
||||
dlss: "quality".to_owned(),
|
||||
framegen: None,
|
||||
framegen_ready: false,
|
||||
no_framegen_ready: false,
|
||||
fg_type: "auto".to_owned(),
|
||||
fps: 1000,
|
||||
@@ -1020,7 +1027,14 @@ mod tests {
|
||||
assert_eq!(get("VICTORY_NATIVE_1440P"), Some("1"));
|
||||
assert_eq!((get("VICTORY_DLSS"), get("VICTORY_DLSS_MODE")), (Some("1"), Some("quality")));
|
||||
assert_eq!(get("VICTORY_STREAMLINE_DIR"), Some(r"C:\nvidia"));
|
||||
// frame generation ready, off, with a little memory held back for it
|
||||
// frame generation off and not made ready: no swap chain of Streamline's, no memory held back
|
||||
assert!(!s.contains_key("VICTORY_FRAMEGEN") && !s.contains_key("VICTORY_FRAMEGEN_X"));
|
||||
assert!(!s.contains_key("VICTORY_FSR_FRAMEGEN") && !s.contains_key("VICTORY_TEXTURE_ROOM_PERCENT"));
|
||||
// ready, off, with a little memory held back for it, when asked
|
||||
let mut o = options();
|
||||
o.framegen_ready = true;
|
||||
let (s, _) = settings(&o, &[], Some(dir));
|
||||
let get = |k: &str| s.get(k).map(String::as_str);
|
||||
assert_eq!((get("VICTORY_FRAMEGEN"), get("VICTORY_FRAMEGEN_X")), (Some("1"), Some("0")));
|
||||
assert_eq!(get("VICTORY_TEXTURE_ROOM_PERCENT"), Some("86"));
|
||||
assert_eq!(get("VICTORY_FRAME_INTERVAL_US"), Some("1000"));
|
||||
@@ -1034,10 +1048,16 @@ mod tests {
|
||||
let get = |k: &str| s.get(k).map(String::as_str);
|
||||
assert!(!s.contains_key("VICTORY_DLSS") && !s.contains_key("VICTORY_FRAMEGEN"));
|
||||
assert_eq!(get("VICTORY_MENU_DLSS"), Some("off"));
|
||||
// nor FSR 3 frame generation: made ready without DLSS, the title's own FidelityFX
|
||||
// check stopped the game (#331, #459)
|
||||
// nor FSR 3 frame generation, off and not made ready
|
||||
assert!(!s.contains_key("VICTORY_FSR_FRAMEGEN") && !s.contains_key("VICTORY_FRAMEGEN_X"));
|
||||
assert!(!s.contains_key("VICTORY_TEXTURE_ROOM_PERCENT"));
|
||||
assert_eq!(get("VICTORY_MENU_FG_TYPE"), Some("auto"));
|
||||
// nor when asked: made ready without DLSS, the title's own FidelityFX check stopped the
|
||||
// game (#331, #459)
|
||||
let mut o = options();
|
||||
o.framegen_ready = true;
|
||||
let (s, _) = settings(&o, &[], None);
|
||||
assert!(!s.contains_key("VICTORY_FSR_FRAMEGEN") && !s.contains_key("VICTORY_FRAMEGEN_X"));
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
||||
@@ -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)) {
|
||||
|
||||
Reference in new issue
Block a user