Merge local/next into day/shaders; pipeline workers are all woken
Queue: passes over the screen first (local/next), then what draws asked for, the early ones, and those known to take long by a quarter of the workers. start() woke one worker, which could be one of the two that take passes over the screen alone: the pipeline then waited for the next push. All are woken now. victory warm goes through the pipelines no run drew with in no order, 40 a process. victory translate: VICTORY_HOST_RDNA=1. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
commit
35bd011453
51 files changed
+7121
-558
No files matched your search
@@ -68,6 +68,7 @@ pub fn run(
|
||||
// and their patched copy are not read again, and were held for the
|
||||
// whole run (two blocks of 114.7 MB each for the title, in
|
||||
// physical memory: run 65's memory map).
|
||||
let image_name = prepared.file_name();
|
||||
drop(prepared);
|
||||
drop(original);
|
||||
victory_hle::runtime::set_main_image(image.base());
|
||||
@@ -162,6 +163,11 @@ pub fn run(
|
||||
}
|
||||
let exe_name = exe.file_name().unwrap_or_default().to_string_lossy();
|
||||
show(&exe_name, image.bind_imports(&with_dlls, policy)?);
|
||||
if execute {
|
||||
let size = image.info().size_of_image as usize;
|
||||
// SAFETY: the image stays mapped, and nothing of it has run yet.
|
||||
unsafe { victory_loader::write_sites::apply_asked(&image_name, image.base(), size) };
|
||||
}
|
||||
if !execute {
|
||||
println!("not executing (pass --execute to start the title)");
|
||||
return Ok(());
|
||||
|
||||
@@ -250,6 +250,8 @@ pub fn run(
|
||||
if let Some(n) = std::env::var("VICTORY_HOST_MAX_WAVE").ok().and_then(|v| v.parse().ok()) {
|
||||
victory_shader::emit::set_host_max_wave(n);
|
||||
}
|
||||
// `VICTORY_HOST_RDNA=1`: as for an AMD RDNA card (`VICTORY_RDNA_FLOAT`).
|
||||
victory_shader::emit::set_host_rdna(std::env::var_os("VICTORY_HOST_RDNA").is_some_and(|v| v == "1"));
|
||||
let dll = validate.then(Validator::default_path).flatten();
|
||||
if validate {
|
||||
Validator::load(dll.as_deref()).map_err(anyhow::Error::msg)?;
|
||||
|
||||
@@ -50,14 +50,14 @@ pub fn run(jobs: Option<usize>, limit: Option<usize>, again: bool, used: bool, t
|
||||
let bad: HashSet<&str> = bad.lines().filter_map(|l| l.split(' ').next()).collect();
|
||||
let early = std::fs::read_to_string(dir.join("early-pipelines.txt")).unwrap_or_default();
|
||||
let early: HashSet<&str> = early.lines().collect();
|
||||
// Those earlier runs drew with first.
|
||||
// Those earlier runs drew with first, the others in no order (by key).
|
||||
let mut all: Vec<usize> = (0..keys.len())
|
||||
.filter(|&n| {
|
||||
let key = keys[n].as_str();
|
||||
(again || !done.contains(key)) && !bad.contains(key) && (!used || early.contains(key))
|
||||
})
|
||||
.collect();
|
||||
all.sort_by_key(|&n| (!early.contains(keys[n].as_str()), n));
|
||||
all.sort_by_key(|&n| (!early.contains(keys[n].as_str()), &keys[n]));
|
||||
all.truncate(limit.unwrap_or(usize::MAX));
|
||||
let cores = std::thread::available_parallelism().map_or(4, |n| n.get());
|
||||
let jobs = jobs.unwrap_or(cores * 2 / 3).max(1);
|
||||
|
||||
Reference in new issue
Block a user