Save sharing in the F1 menu, restarts keep their options, DLSS fixes, monitor's card

- F1 EXPORT SAVE writes the save as one zip into the game folder's Saves
  folder; IMPORT SAVE lists the zips there to pick from. An import is put
  in place at the next start, and the save there before is zipped first
  ("backup before import ..."). Zips made by hand are taken too: with a
  folder around the save, or starting inside the saves folder. The game's
  own settings (SettingsProfileSettings) are never exported or imported:
  the player keeps theirs.
- A restart from the F1 menu keeps the options the game was started with
  (#197).
- DLSS picked in the F1 menu fetches NVIDIA's files at the next start,
  even after an earlier "no", and the menu says so (#514).
- When the driver refuses nearly every DLSS upscaling, DLSS and frame
  generation are turned off for the run.
- FSR 3 frame generation is made ready only with DLSS upscaling on: the
  title's own FidelityFX check stopped the game otherwise (#331, #459).
- RTX Ada, Blackwell and RTX PRO workstation cards count as cards with
  DLSS frame generation.
- On a PC with two cards the game plays on the card the monitor is on, and
  the preload's pipelines are kept per card.
- The warm-up restart comes after 10 seconds.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-authored-by: DueTonight <[email protected]>
Co-authored-by: mikan123pro <[email protected]>
This commit is contained in:
committed 2026-11-27 16:58:02 -08:00
1 parent 64d4931b3d
commit c1cbdc9d11
10 files changed
+1191 -61

No files matched your search

+10 -4
View File
@@ -35,15 +35,21 @@ pub fn run(jobs: Option<usize>, limit: Option<usize>, again: bool, used: bool, t
// (A first preload on a PC no run has written pipelines down on yet: none known.)
std::fs::create_dir_all(&dir).with_context(|| format!("creating {}", dir.display()))?;
victory_hle::known_pipelines::use_translations(dir.with_file_name("shaders"));
// The driver keeps what is made here by program path: made by another copy of
// this program, a pipeline is not made for this one.
// The driver keeps what is made here by program path and card: made by
// another copy of this program, or on the other card of a PC with two, a
// pipeline is not made for this one (v2026.11.27.8 made them all on an RTX
// 5060 Ti while the runs played on the RTX 5070 beside it: black parts in
// the picture where the 5070 had not made a pipeline yet).
let fingerprint = {
let program = std::env::current_exe().map(|p| p.to_string_lossy().to_lowercase()).unwrap_or_default();
let card = victory_shader::emit::host::hardware_adapter().map(|(_, name, _)| name).unwrap_or_default();
let mut h = blake3::Hasher::new();
h.update(known::fingerprint().as_bytes());
h.update(program.as_bytes());
h.finalize().to_hex()[..16].to_owned()
h.update(card.as_bytes());
(h.finalize().to_hex()[..16].to_owned(), card)
};
let (fingerprint, card) = fingerprint;
let done_file = dir.join("warm-done.txt");
let bad_file = dir.join("warm-bad.txt");
let keys = known::keys(&dir);
@@ -72,7 +78,7 @@ pub fn run(jobs: Option<usize>, limit: Option<usize>, again: bool, used: bool, t
let cores = std::thread::available_parallelism().map_or(4, |n| n.get());
let jobs = jobs.unwrap_or(cores * 2 / 3).max(1);
println!(
"{} pipelines known, {} made before ({fingerprint}), {} bad; {} to make, {jobs} processes",
"{} pipelines known, {} made before ({fingerprint}, on {card}), {} bad; {} to make, {jobs} processes",
keys.len(),
done.len(),
bad.len(),