The title's pipelines written down (VICTORY_PIPELINE_BOOK=1, off) and made ahead of a run, each batch in a process of its own (victory warm)
Every pipeline the title creates goes to known-pipelines.bin beside the pipeline library, its containers to known-shaders.bin (in the cache folder; they are the title's code). `victory warm` makes their host pipelines in idle-priority processes of 200 each and lets them go: the driver's cache on disk keeps them. Those earlier runs drew with come first; what is done is noted by translator and driver (warm-done.txt); a pipeline that ends or hangs its process is named in warm-bad.txt and skipped. VICTORY_EARLY_ALL does this in the running title and ended it inside the driver. Not measured yet: how long, and how much the driver's cache grows. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
eaef3651c6
commit
2f22f6e2c2
9 files changed
+736
-10
No files matched your search
@@ -10,6 +10,8 @@ mod replay;
|
||||
mod run;
|
||||
mod shader;
|
||||
mod translate;
|
||||
#[cfg(windows)]
|
||||
mod warm;
|
||||
|
||||
use std::path::PathBuf;
|
||||
|
||||
@@ -103,6 +105,28 @@ enum Command {
|
||||
#[arg(long)]
|
||||
jobs: Option<usize>,
|
||||
},
|
||||
/// Make the host pipelines of every pipeline the title ever created
|
||||
/// (runs with `VICTORY_PIPELINE_BOOK=1` write them down), so that the
|
||||
/// driver's cache on disk has them before a run needs one: once per change
|
||||
/// of the translator or the driver. Goes on where it was stopped.
|
||||
#[cfg(windows)]
|
||||
Warm {
|
||||
/// Processes at once (default: two thirds of the logical cores).
|
||||
#[arg(long)]
|
||||
jobs: Option<usize>,
|
||||
/// At most this many pipelines.
|
||||
#[arg(long)]
|
||||
limit: Option<usize>,
|
||||
/// Those made before too.
|
||||
#[arg(long)]
|
||||
again: bool,
|
||||
/// Only the pipelines earlier runs drew with.
|
||||
#[arg(long)]
|
||||
used: bool,
|
||||
/// (What the processes it starts are given.)
|
||||
#[arg(long, hide = true)]
|
||||
these: Option<String>,
|
||||
},
|
||||
/// Prepare, map and bind a title executable; with --execute, run it.
|
||||
Run {
|
||||
exe: PathBuf,
|
||||
@@ -190,6 +214,8 @@ fn main() -> Result<()> {
|
||||
translate::run(paths, validate, pipelines, list, jobs)
|
||||
}
|
||||
Command::Shaders { paths, jobs } => translate::precompile(paths, jobs),
|
||||
#[cfg(windows)]
|
||||
Command::Warm { jobs, limit, again, used, these } => warm::run(jobs, limit, again, used, these),
|
||||
Command::Run {
|
||||
exe,
|
||||
unimplemented,
|
||||
|
||||
Reference in new issue
Block a user