AMD FSR 3 frame generation for cards without DLSS frame generation; start notice; F1 preload

- FSR 3 frame generation (AMD FidelityFX 2.x DLLs, never in the repository:
  VICTORY_FIDELITYFX_DIR or a fidelityfx folder beside victory.exe), 2x at most,
  with the HUD-less picture so the HUD is not doubled. Series X needs DLSS upscaling.
- F1 menu: FRAME GEN TYPE (auto, DLSS, FSR 3); PRELOAD SHADERS; unset rows read NOT SET;
  save and restart opens its own console window.
- A notice at the start (30 s on the picture, and in the console): the GPU, which
  frame generation runs, and why not (DLSS off, NVIDIA files missing, or the card).
- victory preload / --preload; warm keys its work to the program's path.
- Logs are named victory-nvidia-...; README: what each card supports, first.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
trustno1-coderandClaude Opus 5.5 committed 2026-11-27 09:06:36 -08:00
1 parent d12eb1b23d
commit 29d8dbf7d9
12 files changed
+1712 -118

No files matched your search

+23
View File
@@ -129,6 +129,17 @@ enum Command {
#[arg(long, hide = true)]
these: Option<String>,
},
/// Preload: `shaders` and then `warm` over the title's folder, and the
/// pipelines a run makes while it loads stored in the pipeline library
/// the runs start with; what they say is shown as they go (the F1 menu's "PRELOAD SHADERS" has the
/// launcher do this before the title starts). A while, maybe long on
/// slower hardware; an update of the translator or the driver needs it
/// again. Stopped, it goes on where it was the next time.
#[cfg(windows)]
Preload {
/// The title's folder (default: the configured game folder).
paths: Vec<PathBuf>,
},
/// Play: the title with this fork's settings, as a start with no
/// command at all does (a double click on the program beside the
/// title's `game_scarlett_master.exe`). F1 in the game is the settings
@@ -213,7 +224,12 @@ fn main() -> Result<()> {
// before anything else is set up.
#[cfg(windows)]
if let Command::Play(options) = &cli.command {
// (Read before `prepare` clears the `VICTORY_...` variables: the menu's restart sets it.)
let preload = options.preload || std::env::var_os("VICTORY_PRELOAD").is_some_and(|v| v == "1");
let done = play::prepare(options).and_then(|ready| {
if preload {
play::preload(&ready.exe);
}
victory_core::logging::init("info");
let console = if ready.series_s { Console::SeriesS } else { Console::SeriesX };
run::run(&ready.exe, Unimplemented::Trap, false, true, console)
@@ -269,6 +285,13 @@ fn main() -> Result<()> {
#[cfg(windows)]
Command::Warm { jobs, limit, again, used, these } => warm::run(jobs, limit, again, used, these),
#[cfg(windows)]
Command::Preload { paths } => {
play::explain_preload();
translate::precompile(paths, None)?;
warm::run(None, None, false, false, None)?;
warm::into_library(None)
}
#[cfg(windows)]
Command::Play(_) => unreachable!("handled above"),
#[cfg(windows)]
Command::GetDlss => play::get_dlss(),