Merge VIctory-7900XTX (0a43566) with RTX 5090 fidelity & 32 GB RAM optimizations: two-plane compose, fallback heaps, TablePlan, residency guard, 256 MiB DirectStorage, and WaitOnAddress fence wakes
This commit is contained in:
1 parent
aebe5a0622
commit
f5847e6248
13 files changed
+974
-129
No files matched your search
@@ -227,11 +227,20 @@ extern "system" fn create_queue(
|
||||
)
|
||||
}
|
||||
|
||||
/// The title asks for 32 MiB and stops if this fails.
|
||||
/// The title asks for 32 MiB and stops if this fails. Give PC worker threads
|
||||
/// enough staging headroom (default 256 MiB) so multi-MB RPF chunks don't
|
||||
/// starve the remaining cores.
|
||||
extern "system" fn set_staging_buffer_size(_: Factory, size: u32) -> HRESULT {
|
||||
tracing::info!(size, "dstorage: staging buffer size");
|
||||
static FLOOR_MB: std::sync::OnceLock<u64> = std::sync::OnceLock::new();
|
||||
let floor = *FLOOR_MB.get_or_init(|| {
|
||||
std::env::var("VICTORY_DSTORAGE_STAGING_MB")
|
||||
.ok()
|
||||
.and_then(|v| v.trim().parse::<u64>().ok())
|
||||
.unwrap_or(256)
|
||||
}) << 20;
|
||||
tracing::info!(size, floor, "dstorage: staging buffer size");
|
||||
if let Some(scheduler) = scheduler() {
|
||||
scheduler.lock().staging = u64::from(size);
|
||||
scheduler.lock().staging = u64::from(size).max(floor);
|
||||
}
|
||||
S_OK
|
||||
}
|
||||
|
||||
@@ -1197,7 +1197,6 @@ mod host {
|
||||
// pad's buttons, by the stand-in pad's table: with a real pad
|
||||
// connected the stand-in is not there, and a title that listens
|
||||
// to the pad (the title's start screen) saw nothing.
|
||||
#[cfg(feature = "diagnostics")]
|
||||
if slot == 0 {
|
||||
for vk in scripted() {
|
||||
if let Some(&(_, button)) = super::FALLBACK_BUTTONS.iter().find(|(key, _)| *key == vk) {
|
||||
@@ -1209,10 +1208,7 @@ mod host {
|
||||
}
|
||||
|
||||
fn keys(&mut self) -> Vec<KeyState> {
|
||||
#[cfg(feature = "diagnostics")]
|
||||
let mut down = scripted();
|
||||
#[cfg(not(feature = "diagnostics"))]
|
||||
let mut down = Vec::new();
|
||||
if focused() {
|
||||
// Left/right modifier keys only, as devices report them; no
|
||||
// mouse buttons (below 0x08).
|
||||
@@ -1250,7 +1246,6 @@ mod host {
|
||||
/// time), with or without focus. A key is a
|
||||
/// letter, a digit, or `Enter`, `Esc`, `Tab`, `Back`, `Up`, `Down`,
|
||||
/// `Left`, `Right` (the stand-in pad's table maps them to buttons).
|
||||
#[cfg(feature = "diagnostics")]
|
||||
fn scripted() -> Vec<u8> {
|
||||
static SCRIPT: LazyLock<(Instant, Vec<(Duration, Duration, u8)>)> = LazyLock::new(|| {
|
||||
let list = std::env::var("VICTORY_KEYS").unwrap_or_default();
|
||||
|
||||
Reference in new issue
Block a user