feat(6gb/16gb): RAM-pressure trims, allocator peak-cap, submission toggles, diagnostics

Opt-in, inert-by-default performance work for 6 GB VRAM / 16 GB RAM PCs:
- VICTORY_RAM_PRESSURE_MB: physical-RAM-gated fence-safe idle trims
- VICTORY_LIST_ALLOC_CAP_MB: shed D3D12 command-allocator high-water peak
- VICTORY_TRIM_MIN_MS: hold back zero-yield heavy sweeps to stop frame spikes
- VICTORY_JOIN_FEWER / RELAY_EACH / TABLED_BITS: submission-path latency toggles
- diagnostics-only per-frame refresh/read/dip timers (copystat/dipstat)
- play-6gb.ps1 + play-6gb.cmd launcher preset (OPT=447, INPLACE=0, the above)

The title is referred to only as "the title" throughout.
This commit is contained in:
theme613 committed 2026-12-01 14:09:41 +08:00
1 parent f0d1eb7682
commit 86184c68f3
42 files changed
+4166 -522

No files matched your search

+5 -1
View File
@@ -8,6 +8,7 @@ license.workspace = true
publish.workspace = true
[dependencies]
mimalloc = { workspace = true, optional = true }
blake3.workspace = true
zlib-rs.workspace = true
tracing.workspace = true
@@ -25,12 +26,15 @@ tempfile.workspace = true
[features]
# Debugging switches (frame capture, the host debug layer, per-draw data).
diagnostics = []
# The Rust side allocates through mimalloc (per-thread caches) instead of the
# process heap it shares with the title and the drivers.
mimalloc = ["dep:mimalloc"]
[lints]
workspace = true
[target.'cfg(windows)'.dependencies]
windows-sys = { workspace = true, features = ["Win32_Foundation", "Win32_Security", "Win32_Security_Cryptography", "Win32_Security_WinTrust", "Win32_System_Diagnostics_Debug", "Win32_System_Diagnostics_ToolHelp", "Win32_System_Kernel", "Win32_System_LibraryLoader", "Win32_System_Memory", "Win32_System_Performance", "Win32_System_ProcessStatus", "Win32_System_Registry", "Win32_System_SystemInformation", "Win32_System_Threading", "Win32_UI_Input_KeyboardAndMouse", "Win32_UI_WindowsAndMessaging"] }
windows-sys = { workspace = true, features = ["Win32_Foundation", "Win32_Security", "Win32_Security_Cryptography", "Win32_Security_WinTrust", "Win32_Storage_FileSystem", "Win32_System_Diagnostics_Debug", "Win32_System_Diagnostics_ToolHelp", "Win32_System_Kernel", "Win32_System_LibraryLoader", "Win32_System_Memory", "Win32_System_Performance", "Win32_System_ProcessStatus", "Win32_System_Registry", "Win32_System_SystemInformation", "Win32_System_Threading", "Win32_UI_Input_KeyboardAndMouse", "Win32_UI_WindowsAndMessaging"] }
windows = { workspace = true, features = [
"Win32_Graphics_Direct3D",
"Win32_Graphics_Direct3D_Fxc",