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
@@ -1410,12 +1410,12 @@ pub(crate) fn room() -> bool {
|
||||
#[cfg(windows)]
|
||||
pub(crate) fn let_go_idle() {
|
||||
use std::sync::atomic::Ordering::Relaxed;
|
||||
const IDLE_MS: u64 = 5_000;
|
||||
const IDLE_FRAMES: u64 = 4;
|
||||
static ON: std::sync::OnceLock<bool> = std::sync::OnceLock::new();
|
||||
if !*ON.get_or_init(|| std::env::var_os("VICTORY_TEXTURE_SWEEP").is_none_or(|v| v != "0")) {
|
||||
return;
|
||||
}
|
||||
let idle_ms = crate::host::vram_idle_ms(crate::host::host().and_then(|h| h.video_memory()));
|
||||
// For the trail (`crate::host::trail`): how many went, their bytes,
|
||||
// and the first one.
|
||||
let (mut went, mut bytes, mut first) = (0u64, 0u64, None);
|
||||
@@ -1430,7 +1430,7 @@ pub(crate) fn let_go_idle() {
|
||||
let gone = {
|
||||
let mut made = r.host.made.lock().unwrap_or_else(|e| e.into_inner());
|
||||
let idle = made.as_ref().is_some_and(|(host, _)| {
|
||||
crate::host::long_ago(r.host.used.load(Relaxed), IDLE_MS, IDLE_FRAMES)
|
||||
crate::host::long_ago(r.host.used.load(Relaxed), idle_ms, IDLE_FRAMES)
|
||||
&& std::sync::Arc::strong_count(host) == 1
|
||||
&& crate::host::references(&host.texture) == 1
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user