Take the test/fx-prs branch of asdaasdsaddf's fork (as one commit)
Double-precision shader instructions (v_cvt_f32_f64, v_add_f64 sums, the makeDouble overload name and flag), a first half of a paired interpolation read as data, sooner eviction of idle textures and caches under memory pressure, a retried DirectStorage destination write, the texture catch-up budget, VICTORY_FIRSTLANE_OWN, and zlib-rs in place of miniz_oxide. Left out: the fork's personal launcher scripts and its readme. Co-Authored-By: Claude Fable 5.2 <[email protected]>
This commit is contained in:
1 parent
2119b0e44c
commit
3bff182ef4
22 files changed
+1147
-64
No files matched your search
@@ -422,19 +422,22 @@ pub(crate) fn let_go() -> [u64; 2] {
|
||||
/// Called before a submission starts, by the thread that submits.
|
||||
pub(crate) fn let_go_idle() {
|
||||
use std::sync::atomic::Ordering::Relaxed;
|
||||
const IDLE_MS: u64 = 10_000;
|
||||
const IDLE_FRAMES: u64 = 4;
|
||||
let mut map = STAGING.lock().unwrap_or_else(|e| e.into_inner());
|
||||
let Some(map) = map.as_mut() else {
|
||||
return;
|
||||
};
|
||||
if map.is_empty() {
|
||||
return;
|
||||
}
|
||||
let idle_ms = crate::host::ram_idle_ms(crate::host::available_physical_ram());
|
||||
// A list that recorded an upload or a check holds the staging until it
|
||||
// is reset: one only the table holds is named by no list, recorded or
|
||||
// running.
|
||||
let (mut went, mut bytes) = (0u64, 0u64);
|
||||
map.retain(|_, s| {
|
||||
let keep = Arc::strong_count(s) > 1
|
||||
|| !crate::host::long_ago(s.used.load(Relaxed), IDLE_MS, IDLE_FRAMES);
|
||||
|| !crate::host::long_ago(s.used.load(Relaxed), idle_ms, IDLE_FRAMES);
|
||||
if !keep {
|
||||
LET_GO[0].fetch_add(1, Relaxed);
|
||||
LET_GO[1].fetch_add(s.bytes, Relaxed);
|
||||
|
||||
Reference in new issue
Block a user