diff --git a/crates/victory-gpu/src/host.rs b/crates/victory-gpu/src/host.rs index e6c1552..089deb8 100644 --- a/crates/victory-gpu/src/host.rs +++ b/crates/victory-gpu/src/host.rs @@ -8116,7 +8116,7 @@ mod refresh_tests { }; // What was last written so, by offset. let mut undeclared = std::collections::HashMap::new(); - let exact = std::env::var_os("VICTORY_SEND_CHANGED").is_none_or(|v| v != "0"); + let exact = std::env::var_os("VICTORY_SEND_CHANGED").is_some_and(|v| v != "0"); let stop = AtomicBool::new(false); // Also when an assertion fails on one of the threads. struct Stop<'a>(&'a AtomicBool); @@ -8400,7 +8400,7 @@ mod refresh_tests { } copy.update(region, 4 * PAGE); let written = copy.take_dirty(); - if std::env::var_os("VICTORY_SEND_CHANGED").is_none_or(|v| v != "0") { + if std::env::var_os("VICTORY_SEND_CHANGED").is_some_and(|v| v != "0") { assert_eq!(again, []); assert_eq!(written, [(2 * PAGE + 128, 2 * PAGE + 132), (2 * PAGE + 136, 2 * PAGE + 144)]); } else { diff --git a/crates/victory-gpu/src/shadow.rs b/crates/victory-gpu/src/shadow.rs index b94250f..4933273 100644 --- a/crates/victory-gpu/src/shadow.rs +++ b/crates/victory-gpu/src/shadow.rs @@ -1677,8 +1677,9 @@ fn changed_runs(now: &[u8], was: &[u8]) -> Vec<(usize, usize)> { /// Whether a refresh of a copy in the card's memory takes, and sends up, /// the dwords that title memory changed and no others -/// (`VICTORY_SEND_CHANGED=0`: the 64 KiB pages written since it last took -/// them, whole, as before). +/// (`VICTORY_SEND_CHANGED=1`; off: the 64 KiB pages written since it last +/// took them, whole). Off since run tile1-0: the room lost its indirect light +/// and geometry exploded; run bis1-0, the same but for this, was right. /// /// A page that counts as written is mostly not the title's doing, or not all /// of it: a word the title wrote, and around it what shaders wrote and the @@ -1710,7 +1711,7 @@ fn send_changed() -> bool { if crate::copystat::mode() != 0 { return false; } - std::env::var_os("VICTORY_SEND_CHANGED").is_none_or(|v| v != "0") + std::env::var_os("VICTORY_SEND_CHANGED").is_some_and(|v| v != "0") }) }