Two-plane compose on by default (VICTORY_PLANES=0 turns it off): it acts only when a second plane is presented

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
local
2026-11-26 02:06:47 -06:00
parent a12870aac5
commit 0ce46d5a30

View File

@ -35,10 +35,12 @@ float4 ps(V v) : SV_Target {
"#;
/// Whether a second presented plane is composed over the first
/// (`VICTORY_PLANES=1`; off by default).
/// (`VICTORY_PLANES`; on by default, `0` turns it off). It acts only when
/// the title presents a second plane (the Series S profile does; Series X
/// presents one), so the default costs nothing elsewhere.
pub(crate) fn on() -> bool {
static ON: std::sync::OnceLock<bool> = std::sync::OnceLock::new();
*ON.get_or_init(|| std::env::var_os("VICTORY_PLANES").is_some_and(|v| v == "1"))
*ON.get_or_init(|| std::env::var_os("VICTORY_PLANES").is_none_or(|v| v != "0"))
}
pub(crate) struct Composer {