Port NVIDIA Wave32 lowering, smooth movie-plane uploads, XMA audio fixes, and 32GB RAM residency budgets

This commit is contained in:
codec_d committed 2026-11-25 15:31:19 -08:00
1 parent 45e90f4de8
commit 3bcc96f9bb
11 files changed
+463 -110

No files matched your search

+10 -2
View File
@@ -221,7 +221,7 @@ static BAKE_SERVED: AtomicU64 = AtomicU64::new(0);
/// `PS_BakeDecorations_*`), by the first 16 hex digits of their hash as the
/// frame listings print it. They draw into a 256x256 corner of 2048x2048
/// targets and name no texture in a table.
const BAKE_PIXEL_SHADERS: [&str; 4] =
pub(crate) const BAKE_PIXEL_SHADERS: [&str; 4] =
["c0a7fe77b1862e10", "0d1575a396dfe513", "b7cfd8dda91ebb6b", "280967ad158cee0b"];
/// Since the start: early runs of the texture pass, and those of them
@@ -2239,7 +2239,15 @@ impl State {
});
let per_frame = match asked {
Some(mb) => mb << 20,
None => staging_budget_per_frame(memory.map(|[budget, ..]| budget)),
None => {
let base = staging_budget_per_frame(memory.map(|[budget, ..]| budget));
let capped = if crate::residency::limited_host_ram() {
base.min(128 << 20)
} else {
base
};
crate::residency::prefetch_limit(capped, crate::residency::pressured())
}
};
static FRAME: AtomicU64 = AtomicU64::new(u64::MAX);
static SPENT: AtomicU64 = AtomicU64::new(0);