Publish the pareto-residency Windows build and portable launcher
This commit is contained in:
1 parent
efeef1d65b
commit
545f89019e
20 files changed
+1671
-217
No files matched your search
@@ -52,7 +52,14 @@ pub(crate) fn room(memory: Option<[u64; 4]>) {
|
||||
pool.reclaim(tick, limit, true);
|
||||
}
|
||||
if let Ok(mut pool) = STAGING.try_lock() {
|
||||
pool.reclaim(tick, if pressure { 0 } else { limit }, true);
|
||||
let staging_limit = if crate::residency::critical_commit() {
|
||||
0
|
||||
} else if pressure {
|
||||
1
|
||||
} else {
|
||||
limit
|
||||
};
|
||||
pool.reclaim(tick, staging_limit, true);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -379,6 +386,13 @@ pub(crate) fn staging(host: &crate::host::Host, bytes: u64) -> Option<(StagingPi
|
||||
// Copies from a buffer begin at multiples of 512.
|
||||
let bytes = bytes.next_multiple_of(512);
|
||||
let (piece, memory, again) = lock(&STAGING).take(bytes, 512, now(), || {
|
||||
// Only gate speculative bindless prefetch on staging-pool growth
|
||||
// headroom; table-bound textures and decoration bakes are sampled
|
||||
// immediately and would otherwise read uninitialized/reused VRAM.
|
||||
let speculative = crate::texture::PICKING.get().is_some() && !crate::texture::BAKING.get();
|
||||
if speculative && !crate::residency::allow_staging_growth(false) {
|
||||
return None;
|
||||
}
|
||||
let (buffer, data) = host.upload_buffer(BLOCK)?;
|
||||
crate::host::name(&buffer, || "staging of textures (a block)".into());
|
||||
Some(Upload(buffer, data))
|
||||
|
||||
Reference in new issue
Block a user