Repository navigation
Conversation
Upstream trustno1-coder#1763 and trustno1-coder#1772 on top of the 0.16 room hold-back, both aimed at the same run 18772 collapse (RTX 3070 Ti: budget 7,144 MB, pool 8,199 MB, `slEvaluateFeature: out of VRAM (39)` 2,299 times, 8-14 fps): - trustno1-coder#1772 `idle_sweep_policy` (resource.rs:2805): the card's own idle rule stays in charge while the card is pressured. Before, host commit pressure switched the sweep to unmapped-placed-only (`host_idle.is_some()` at the two `continue`s), so mapped idle textures - the 146-181 MB/frame churn of that run - were never reclaimed however far over budget we were. - trustno1-coder#1763 (resource.rs:3013, sampled.rs): slots the screen samples are marked per sweep and evicted last; over budget (`used >= budget`) the idle threshold drops to 3 s and the protect window shortens, and `room_line` minus the face headroom picks the eviction line. Its two switches are in the launcher's built-in settings (`apps/victory/src/play.rs:121-122`). Both merged clean against main and clippy is quiet on x86_64-pc-windows-msvc, bare and with `--features diagnostics`.
|
Tested in game, and it does what it says. I had found the same fault from the other end and was about to send the same change when I found this one, which was here first. So here is the evidence instead. Where I met it. A report in a fork of this tree (KyleS98/VIctory-Neo#7): RX 6900 XT 16 GB beside 32 GB of RAM, 3.8 GB of commit left when the world loaded. How it was tried here. RTX 3090 Ti 24 GB (616.92), Ryzen 9 9950X3D, 64 GB, Windows 11 26200. A PC like that does not get into the state on its own, so it was made to:
No error line and no device loss in either. The same on today's One difference between the two, for whoever merges. Here, while the card is pressured the unmapped-only pass does not run (the card's rule takes those copies too, once they are idle 1.5 or 5 s), and while it is not, the PC's rule runs alone, so the card's ten-minute rule is not asked meanwhile. With two passes both always run. I saw nothing between them in these runs. Who else may have it: #1580 (an 8 GB card with 16 GB of RAM, "no room" for good) reads like this state. AI-assisted (Claude Code, Claude Fable 5.2). |
|
I tested #1772 on an RTX 4070 at the cell-window checkpoint using its parent
All 93 baseline sweeps used the host-pressure policy. All 101 sweeps on the PR head selected GPU eviction while host pressure was active, releasing 418 texture copies during that interval. Both captures showed the character at the cell window. One startup attempt on each build hit the same null-write crash before the checkpoint and was excluded. The PR's focused policy test passed. This is one completed run per build at a stationary checkpoint. It measures memory pressure and frame times in that scene. Longer-session growth and texture recreation during movement still need testing. Both builds also predate the upstream change that recognizes Streamline's over-budget return as a recorded upscale. I used OpenAI Codex to build and instrument both revisions, run the comparison, and write this report. |
What it changes
Fixes a bug in
let_go_idle()(crates/victory-gpu/src/resource.rs, introduced in91cd117) where host memory pressure completely short-circuits VRAM texture eviction:residency::host_texture_idle_ms()returnsSome(1_000)orSome(5_000)whenever host RAM/commit headroom is belowmin(RAM/4, 16 GiB)— which is almost continuously true on 16 GB and 32 GB PCs running GTA VI.match host_idle { Some(ms) => (ms, u64::MAX), None => ... }bypassedvram_keep_below(...)andvram_idle_ms(...)wheneverhost_idle.is_some(), forcingmost = u64::MAX(never buildingby_age), scanning onlyPART = 8192textures, and skipping every mapped texture (if !unmapped { continue; }) — even though the comment at line 2740 explicitly states that mapped textures should still follow the card's rule.host_idle(1_000 ms) intoslot_evict(memory, idle_ms, IDLE_FRAMES)instead of the card'sidle_ms.idle_sweep_policy(host_idle, card_rule) -> (idle_ms, most, unmapped_only)so that:card_most != u64::MAX || card_idle < 60_000), VRAM eviction stays active (unmapped_only = false) usingcard_rule.host_idleas intended.slot_evictalways receivescard_rule.0rather thanhost_idle.How it was tested
626Balanced &720Quality) and Series X (1440Performance), DLSS 2x Frame Generation.host_texture_idle_ms()stayedSome(...)throughout gameplay, disabling mapped VRAM texture eviction once VRAM crossed the room line and pushing usage to10.6/10.7 GBVRAM +9–10 GBshared spill.8.5–8.9 / 10.8 GBacross extended open-world + driving sessions.cargo testpassed for the crates it touches: yes (cargo test --locked -p victory-gpu --lib -- --test-threads=4— 551 passed, 0 failed, including new unit testidle_sweep_policy_keeps_vram_eviction_active_under_host_pressure).Checked for overlap
match host_idleshort-circuit inlet_go_idle; in particular,#1562's eviction changes inside theNone =>arm are also silently bypassed without this fix).