VICTORY_LEAVE_OUT: pipelines of named shaders left out in every build
VICTORY_SKIP_PIPELINES drops a shader's draws in diagnostics builds only. The decal heap's CS_DefragHeap_ComputeRelocations (02384a60fda6f2d0), translatable for 32-lane hosts since ce383f8 through host waves that meet by spinning, took 11.85 ms of the card a frame in the first gameplay area (timing run x1440-gputime2): gameplay 45 -> 51 ms. Its pipelines are left out the way the ray-tracing passes are, until it is fast. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
02b255d25b
commit
672442b710
1 file changed
+21
@@ -56,7 +56,28 @@ fn named(shaders: &[Arc<Shader>], name: &[u8]) -> bool {
|
|||||||
.any(|s| s.stage == "compute" && s.container.windows(name.len()).any(|w| w == name))
|
.any(|s| s.stage == "compute" && s.container.windows(name.len()).any(|w| w == name))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Shader hashes whose pipelines are left out in every build
|
||||||
|
/// (`VICTORY_LEAVE_OUT=<16 hex digits>[,..]`; `VICTORY_SKIP_PIPELINES` does
|
||||||
|
/// the same in diagnostics builds only). The decal heap's
|
||||||
|
/// `CS_DefragHeap_ComputeRelocations` (02384a60fda6f2d0), translatable for
|
||||||
|
/// 32-lane hosts through host waves that meet by spinning, took 11.85 ms of
|
||||||
|
/// the card a frame in the first gameplay area (timing run, 2026-11-26).
|
||||||
|
fn leave_out() -> &'static [String] {
|
||||||
|
static HASHES: OnceLock<Vec<String>> = OnceLock::new();
|
||||||
|
HASHES.get_or_init(|| {
|
||||||
|
std::env::var("VICTORY_LEAVE_OUT")
|
||||||
|
.unwrap_or_default()
|
||||||
|
.split(',')
|
||||||
|
.map(|h| h.trim().to_ascii_lowercase())
|
||||||
|
.filter(|h| h.len() == 16 && h.bytes().all(|b| b.is_ascii_hexdigit()))
|
||||||
|
.collect()
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
fn left_out(shaders: &[Arc<Shader>]) -> Option<&'static str> {
|
fn left_out(shaders: &[Arc<Shader>]) -> Option<&'static str> {
|
||||||
|
if !leave_out().is_empty() && shaders.iter().any(|s| leave_out().contains(&s.hash)) {
|
||||||
|
return Some("named in VICTORY_LEAVE_OUT, left out");
|
||||||
|
}
|
||||||
static SKIP_RT_RESOLVE: OnceLock<bool> = OnceLock::new();
|
static SKIP_RT_RESOLVE: OnceLock<bool> = OnceLock::new();
|
||||||
let skip_rt = *SKIP_RT_RESOLVE.get_or_init(|| {
|
let skip_rt = *SKIP_RT_RESOLVE.get_or_init(|| {
|
||||||
let builder = std::env::var_os("VICTORY_BVH_BUILDER").is_some_and(|v| v == "1");
|
let builder = std::env::var_os("VICTORY_BVH_BUILDER").is_some_and(|v| v == "1");
|
||||||
|
|||||||
Reference in new issue
Block a user