VICTORY_SEND_CHANGED off by default: run tile1-0 lost light and geometry with it

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
localandClaude Opus 5.5 committed 2026-11-25 00:31:25 -06:00
1 parent 240ea7a2bf
commit 6ae06963b2
2 files changed
+6 -5

No files matched your search

+2 -2
View File
@@ -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 {
+4 -3
View File
@@ -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")
})
}