Repository navigation
[pr-fix] Smaller PCs: 22 upstream PRs for 8–12 GB cards and 16 GB of RAM - #1
Merged
Merged
Conversation
…r it On an 8 GB card (RTX 4060 Ti, budget 6.8 GB) the black-face fix's first-upload admission let the card grow past its budget for good: - texture objects of the title's, whose size the pass does not know, were weighed as one byte and always fit the free ranges: 6.0 to 8.3 GB in use in ten minutes, 34,108 first uploads allowed and 11 refused in five seconds; - past the budget, textures that fit free ranges of the texture blocks refilled what slot eviction had just given back: 125,675 in 18 minutes while the card rose from 7.7 to 9.9 GB. Windows then paged the card: 89 to 234 ms of GPU a frame, 3 to 5 fps, a Streamline budget warning every frame. While DXGI says the card is at or past its budget, neither is admitted now. Under it, and just past it with free ranges to spare, nothing changes. On the same card: no budget warnings in four runs of 8 to 11 minutes, 150 to 780 MB past the budget instead of 2 to 3 GB. The trustno1-coder#1496 test's free-range case is refused now: 2.3 GB past the budget with 16 MiB free. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WiREjB6TQEQ2QzFVNzZKGS
…nt first Opt-in, off by default. Committed render targets, depth and unordered-access memory on the card get D3D12_RESIDENCY_PRIORITY_HIGH, so past the budget Windows pages textures out before memory every frame writes. A hint only: nothing reads or writes differently. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WiREjB6TQEQ2QzFVNzZKGS
…settings that help, what is open Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WiREjB6TQEQ2QzFVNzZKGS
Measured on the RTX 4060 Ti 8 GB at the same places, 7 to 9 minutes a run: with every priority normal, the card a few hundred MB past its budget had Windows page render targets out too, 181 ms of GPU a frame and 3.4 fps; with them at high priority, 2.3 ms and 14.9 fps, the picture unchanged. A hint only, and a card under its budget pages nothing. VICTORY_RESIDENCY_PRIORITY=0 gives them normal priority, as before. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WiREjB6TQEQ2QzFVNzZKGS
…nd left out Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WiREjB6TQEQ2QzFVNzZKGS
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WiREjB6TQEQ2QzFVNzZKGS
…or less (trustno1-coder#1962) Entering the world dies with 0x8007000E on 8 GB cards (trustno1-coder#1962) because shadow::by_address arenas have their own card budget (arena_card_most) of flat 4 GiB, leaving the texture line and filling the card whole. arena_card_most() now follows the budget the way windows do: on cards of 12 GiB or less, it is 9 % of the budget, at most 1024 MiB; on bigger cards it stays 4 GiB. VICTORY_MEMORY_CARD_MB still overrides.
… or more With render targets held at high residency priority, what Windows pages past the card's budget is mostly textures, into the PC's memory. On a laptop with an RTX 4060 8 GB and 16 GB of RAM the priority took away every out-of-memory error and then the device was removed after a 9 s frame (reported in trustno1-coder#1944). Until that is understood, a PC with less than 24 GiB (a 32 GB one is in) keeps normal priority and the log says so once; VICTORY_RESIDENCY_PRIORITY=1 turns it on anyway, =0 off. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WiREjB6TQEQ2QzFVNzZKGS
Reclaim only spare device-local buffers and pause pooling while the existing budget sample is full. Leave live staging buffers and the normal cache ceiling unchanged. Co-authored-by: Codex <noreply@openai.com>
Reclaim only returned GPU detile buffers that have been idle for two seconds, retaining exact-size reuse for hot buffers. Co-authored-by: Codex <noreply@openai.com>
…d_steps test, and launcher scripts - victory-gpu (resource): honor the busy flag returned by descriptor::evict_slots in slot_evict so textures with active slot creation on another thread are skipped (incrementing SLOT_EVICT[6]) instead of being evicted. - victory-gpu (streamline): use the adapter returned by game_adapter() in highest_shader_model instead of discarding it and re-querying hardware_adapter(). - victory-gpu (card_steps): clear the test page range in late::PAGES via late::forget before running places_written_after_sending_are_learned and fills_done_on_the_cpu_are_learned_too so parallel test runs do not collide on reused heap pages. - victory-gpu (font): remove unreachable duplicate b'%' arm in the F3 panel bitmap font. - PLAY_FRAMEGEN.cmd: preserve %errorlevel% before pause in the check branch so failed checks do not exit with 0. - PLAY_FACES_FIX.cmd: default to Windows powershell and use pwsh only when available instead of failing when PowerShell 7 is not installed.
…e alias_rt overflow tiles Fixes three long-session VRAM/FPS degradation issues: 1. resource::let_go_idle: check unmapped_only instead of host_idle.is_some() when deciding whether to restrict eviction to unmapped placed textures. idle_sweep_policy() already sets unmapped_only = false when GPU VRAM is pressured, but the inner checks still tested host_idle.is_some(), which disabled all mapped VRAM texture eviction whenever host RAM dipped below its threshold. 2. resource::let_go_idle (sweep_unmapped_on): clear r.host.used when evicting a streamed-out placed texture so subsequent sweeps do not re-collect, re-sort, and re-lock already-evicted entries. 3. alias_rt::OverflowPool: add a free list (OverflowSlots) and RAII OverflowLease attached to HostTexture (dropped after texture) so overflow tiles are returned and reused instead of monotonically allocating 4 MiB Tier-2 heaps.
Windows lets the card use about half the RAM (the non-local budget, 7,359 MB on a 16 GB PC). On an RTX 3060 Laptop the host copies of title memory came to 5.6-5.9 GB of it in the first 75 s of world load in every run, and two runs of three passed the budget and ended on a host command list (0x8007000E, issue trustno1-coder#1520). The memory guards looked at RAM and commit only (commit counts pagefile growth: 41 GB "left" in those runs). With VICTORY_SHARED_GUARD (off unless set; 1 is 85 %, else a percent 50-98), once that memory passes the share: - new textures wait (resource::room and room_for_first_upload say no room, under the floor too); - windows of title memory may go to card memory mapped by the CPU up to the card's budget less 256 MB instead of four fifths of it, so they take none of that memory; - it counts as host memory pressure (left 5 points under the share), so the spares and pools already trimmed under RAM pressure are trimmed. A line every 5 s says the memory's use and what the guard did. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ssure (VICTORY_CARD_SWEEP_WINS) idle_sweep_policy (3246d25) lets the card's eviction win when both the card and the PC's memory are pressured (unmapped_only false), but the take in let_go_idle still asked for title memory wholly unmapped whenever host pressure was on (host_idle.is_some(), 0efd23e, from before the policy). On a 16 GB PC free RAM is under 8 GiB in all of play, so host_idle is always Some, and a full card got almost nothing back: a few MB in a 10-minute run on an RTX 3060 Laptop with 7.2 GB in use of a 5.2 GB budget. With VICTORY_CARD_SWEEP_WINS=1 (off by default) the wholly-unmapped test is asked only in the unmapped-only sweep. Found by a read of the code by Gemini; checked against the code and the logs. texback's two GPU tests fail when run in parallel with the others and pass alone (--test-threads=1); not touched here. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
residency::refresh read pressured(), which since cb096a52 also counts the shared guard's pressure: with the guard on, RAM pressure entered at 3-5 GB free instead of 3, and over 5 GB free it said "host memory pressure cleared" at every look. It reads PRESSURED alone now. Found in a review of cb096a52 by Gemini. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…the shared guard on (trustno1-coder#1520) On a host of under 24 GiB of RAM (residency::small_host_ram), unset: - VICTORY_CARD_CPU_HEAP is on: the CPU sides of copies with a card side go to the process's own memory, not the memory Windows lets the card use (about half the RAM); - VICTORY_SHARED_GUARD is 85 %. An explicit value decides as before on any host (0 off); bigger hosts keep both off. On a 16 GB PC (RTX 3060 Laptop 6 GB) two runs of three died a minute into the world at 7,426 of 7,359 MB of that memory. With the mirrors out of it, 942 MiB of them, the most came to 6,151 MB and an 11-minute run lived at the same frame rate (10.8 fps against 11.3 without). The guard alone held a run at 6,915 MB. The measurement test of the mirrors expects what CardCpu decides now. A line of docs/bug-journal.md says the above. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
3ebcfa5 kept CardCpu::asked's answer in a OnceLock and read the switch only when VICTORY_CARD_CPU_HEAP itself was set, so a diagnostics or `ab` build's VICTORY_AB naming it alone was passed over, and set, it could not flip mid-run. Only the host-size default is kept now; set, or named by VICTORY_AB, the switch goes through asked_for! at each call, as before the default. Found in a review by Gemini. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…serve eviction totals
…ORY_CARD_SWEEP_IDLE_MS) With VICTORY_CARD_SWEEP_WINS=1 the card's sweep took every copy idle its rule's time, 1.5 s on a card past its line, as a 6 GB card is in all of play. On an RTX 3060 Laptop that doubled the texture uploads (48 GB in 11 minutes against 27 GB in 10) and cost ~3 fps of 14: copies went and were made again. Textures looked better (fewer waiting). Now, under host pressure, a copy whose title memory is still mapped goes only once idle VICTORY_CARD_SWEEP_IDLE_MS (15,000 unset, 1,500 to 600,000); one wholly unmapped goes at the card's time, as before the switch. Without host pressure, or with the switch off, nothing changes. VICTORY_CARD_SWEEP_WINS goes through asked_for!, so VICTORY_AB can turn it on and off in one run. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…eaps The high residency priority for render targets was given in prioritise(), to committed resources only. With render-target aliasing on (alias_rt.rs, the default), the render targets placed in its physical heap chunks kept a normal priority, so the hint did not reach most of them: a Series S run on an RTX 5060 Ti 8 GB with 32 GB of RAM never logged the high priority at all (Yuanzer on trustno1-coder#1944). Those chunks hold render targets only, so the heap itself now gets the high priority (a heap's pieces share it), logged once as "aliased render targets' heaps: high residency priority". Off with the same VICTORY_RESIDENCY_PRIORITY=0 and the same RAM rule. Measured with victory-probe-mod's example plan (trustno1-coder#2825: same places, hours and camera each run), RTX 4060 Ti 8 GB, 64 GB RAM, Series X, DLSS balanced, two A/B pairs in both orders: neutral here (casa 20:00 14.2/14.2 fps before vs 13.8/14.4 after; salida_casa 23:00 6.8/6.7 vs 6.8/5.6; avenida 01:00 12.8/13.9 vs 12.5/13.4; avenida 13:00 14.2/15.1 vs 13.7/14.9). A hint only: it matters where the card pages render targets out, which this PC with 64 GB did not show at these places. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KLpN7BE6FrjsqTq22kbwy7
…ommit floor The guard puts off a driver compile while it would leave commit under 4096 MB, and the pipeline is tried again a second later. Under Proton free commit sat at 3.2 to 3.4 GB for minutes (31 GB RAM, 8 GB swap), so every new pipeline was put off for good: entering the title's highlight view (both sticks) asked for shaders not seen before, a pass over the screen waited 10 s a frame for one, 60 draws a frame were dropped, the picture broke into blocks and the title ended (2026-11-29, reproduced twice at the same place). A pipeline counts its put-offs; from the third (about three seconds of draws still asking for it) its build runs with memguard::starved_compile, and compilemem::begin takes memguard::floors_now(): the commit floor lowered to VICTORY_STARVED_COMMIT_FLOOR_MB (default 1024, never above the ordinary floor, not where the check is off). Under that floor it is still put off, as before; the soft physical floor still lets compiles start one at a time. A pipeline made so is said once in the log. Tests: a_starved_compile_has_the_lower_commit_floor (the run's figures: refused ordinarily, not refused starved); a_pipeline_put_off_again_and_again_is_made_on_the_starved_floor (the lower floor holds for that build only); a_starved_build_that_panics_gives_the_floor_back (the flag is put back on drop: the build runs under catch_unwind and the worker goes on).
A mesh pipeline is refused with E_OUTOFMEMORY while an upload burst holds the card's budget, and refused::failed records it once and returns None: the draws that need it stay dropped for the rest of the run (trustno1-coder#2464: 56 host pipelines failed, 51 mesh, never retried). On 8 GB cards this is what leaves objects missing after a load. Only for E_OUTOFMEMORY, give idle texture memory back (resource::let_go_idle) and spare upload chunks (host::trim_spare_chunks), then ask the driver again up to four times, 200 ms apart (under a second in all). Other refusals behave as before. The retry logs once if it succeeds.
…rustno1-coder#2778) slot_evict builds raws keyed by the raw host texture pointer with the title address as the value, and descriptor::evictable_slots returns its slots keyed the same way. Both use sites looked the title address up in that map, so retain emptied the candidates on every pass and the loop below never ran: no texture was ever let go, the card climbed to its line, and runs could end on E_INVALIDARG from a command list that would not close. Translate the title address to its raw key before the lookup, as trustno1-coder#2778 works out. The second use site is changed with the first, or it would index a missing key.
…hosts (trustno1-coder#1520) The memory warning before a start said nothing where Windows manages the page file's size ("it grows as needed"). On a 16 GB PC (RTX 3060 Laptop, 2026-11-29) it stayed at 8.5 GB, a commit limit of 24.7 GB with the title committing ~21 GB, and the driver compiles memguard keeps 4 GB of commit free for were put off all run (2,048 times): 149 pipelines were never made. With a custom page file of 36,864-49,152 MB none were, at the same frame rate (12.1 fps against 11.8). Under 24 GB of RAM a managed page file is now judged by the commit limit now (streamline::ram_and_page_files gives it), and on such a host the fix named is a custom size (initial 52 GB less the RAM, maximum 12 GB more), not the managed one. Bigger hosts are warned about as before. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…pile A flat 4096 MB commit floor is unreachable on a 16 GB PC (the title commits ~17 GB), so every driver compile was put off: no pipelines, 0 draws, black picture. Below 24 GiB of RAM the default floor is an eighth of the RAM (1536..4096 MB); larger PCs are unchanged and an explicit VICTORY_COMMIT_FLOOR_MB still wins. On small PCs the guard counts pagefile growth as the residency state already does, and texture staging does not grow for 3 s after a compile is put off for commit. Adds tests for the floor and the RTX 3070 Ti (30 series, no DLSS frame generation). Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QCd6hXPEAyMEqW76Nojdgd
… out The memory warning before a start said nothing where Windows manages the page file's size, and Windows makes that file larger only once a commit was refused: the moment the game stops. On a PC of 13.9 GB of RAM with an RTX 5060 Ti 8 GB and a system-managed page file, v2026.11.29.03 stopped with 0x8007000E at 22.5 GB committed and 684 MB left to commit (2026-11-29). With the page file at a fixed 40 GB (54 GB allowed) the same settings loaded the world about 1.5 minutes sooner and stopped with 20.6 GB still left to commit (the card and its shared memory full: a limit of its own, not this one). Where the size is Windows' own, the warning now reads what programs can have at the moment (streamline::commit_limit, ullTotalPageFile) and asks for a fixed size up to the 52 GB the fixed-size warning already asks for. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011f6R3kMoarujHzzA1AvSBb
… of RAM On a PC of 13.9 GB of RAM with an RTX 5060 Ti 8 GB (a budget of the shared memory of 6,502 MB) every start ended with 0x8007000E at the end of the world's load, whatever the console, picture size or page file: the card full, the PC's memory shared with it at 6.5 to 6.8 GB, the RAM free under 300 MB (2026-11-29). The host copies of title buffers were what grew: from 4,855 to 5,567 MB in the last 5.6 s of one start, only 1,132 MB of them on the card, which the textures (3.4 GB) had filled. The copies the card cannot take stay in the PC's memory, the shared part of it. `VICTORY_TEXTURE_CAP_MB` caps the bytes of host copies of title textures: 1024 by default where `residency::small_host_ram` (under 24 GB of RAM), none elsewhere; 0 for none, or a number of MB. `room` refuses at it (before the floor), and a first upload (the black face fix) passes it by the allowance it passes the card's line by, no more. An explicit `VICTORY_TEXTURE_BUDGET_MB` still decides alone. Starts of the same save, Series S at 960x540 with DLSS, six minutes each: | texture copies held to | starts that passed the world's load | most shared memory | |---|---|---| | (no cap) | 0 of 4 | (stopped at 6.5 to 6.8 GB) | | 2 GB, with the face allowance | 0 of 4 | 6,654 to 6,758 MB | | 1.5 GB | 1 of 1 | 6,470 MB | | 1 GB | 4 of 5 | 5,666 to 6,108 MB (the fifth: 6,644 MB) | The start of five that still stopped had the same texture copies (1,212 MB) and the same buffer copies on the card (3,010 MB) as one that played on; its buffer copies in all peaked at 7,288 MB against 6,910: the load asks for some 400 MB more from start to start, and on this PC that is the margin. The buffer copies, not the textures, are most of what the load takes there. What is not known: how the picture looks with 1 GB of texture copies (the runs were unattended), and whether a PC of 16 GB whose RAM is all visible (this one gives some to its integrated GPU) needs as low a cap. A cap that follows the shared budget may suit both; one PC cannot say. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011f6R3kMoarujHzzA1AvSBb
…pile off (500 ms held in every second at the commit limit)
A pipeline whose compile the memory guard put off is paused for a second
and not waited for meanwhile. When the pause ran out, the next draw queued
it again and waited; a worker took it, was refused within the millisecond
and put it off again, which wakes the waiters. But the wait looked only at
whether the pipeline was made, so the draw stood there for the rest of its
500 ms budget, once a second, for as long as memory stayed short.
Seen on an RTX 4070 Ti SUPER with the PC at its commit limit (75.1 of
75.9 GB): frame times of 38 ms median with one of about 500 ms in every
second ("p99 506.2"), and "draws dropped for pipelines not made yet" for
the same key each second. With this the same scene has no such frame.
The wait now ends as well when the compile is put off. The test waits
508 ms without the change and returns with the refusal with it.
The test of a pipeline made ready takes a key of its own: it shared the
process's list of used keys with the tests that ask for a pipeline of no
shaders, on other threads, and passed or failed by their order.
…follows the budget on a card of 12 GiB or less (trustno1-coder#1962) From trustno1-coder/VIctory-NVIDIA pull request 1998. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RxGcWqw1QvqSBENLiNPRD8
…ast the budget, render targets resident first From trustno1-coder/VIctory-NVIDIA pull request 1944. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RxGcWqw1QvqSBENLiNPRD8
…irst streamed textures From trustno1-coder/VIctory-NVIDIA pull request 3406. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RxGcWqw1QvqSBENLiNPRD8
…n 8 GB cards From trustno1-coder/VIctory-NVIDIA pull request 3258. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RxGcWqw1QvqSBENLiNPRD8
…est_shader_model adapter reuse, card_steps test isolation, and launcher scripts From trustno1-coder/VIctory-NVIDIA pull request 2486. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RxGcWqw1QvqSBENLiNPRD8
… sweep and back off empty slot_evict pa… From trustno1-coder/VIctory-NVIDIA pull request 2549. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RxGcWqw1QvqSBENLiNPRD8
…tion under host RAM pressure and recycle alias_rt overflow tiles From trustno1-coder/VIctory-NVIDIA pull request 2591. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RxGcWqw1QvqSBENLiNPRD8
…didates by the raw texture key (part of trustno1-coder#2778) From trustno1-coder/VIctory-NVIDIA pull request 2890. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RxGcWqw1QvqSBENLiNPRD8
…s under VRAM pressure From trustno1-coder/VIctory-NVIDIA pull request 2240. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RxGcWqw1QvqSBENLiNPRD8
…used with E_OUTOFMEMORY after making room From trustno1-coder/VIctory-NVIDIA pull request 2888. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RxGcWqw1QvqSBENLiNPRD8
…n by default through 10 GB of VRAM From trustno1-coder/VIctory-NVIDIA pull request 3128. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RxGcWqw1QvqSBENLiNPRD8
…iction in the F1 menu From trustno1-coder/VIctory-NVIDIA pull request 3127. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RxGcWqw1QvqSBENLiNPRD8
…or to the PC's RAM so 16 GB PCs can com… From trustno1-coder/VIctory-NVIDIA pull request 3379. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RxGcWqw1QvqSBENLiNPRD8
…ends when the memory guard puts the compile off (500 ms held every second at the commit limit) From trustno1-coder/VIctory-NVIDIA pull request 3398. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RxGcWqw1QvqSBENLiNPRD8
…ow gate to 88% to prevent premature shared-memory spill From trustno1-coder/VIctory-NVIDIA pull request 2988. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RxGcWqw1QvqSBENLiNPRD8
…ture copies held to 1 GB, and a page-file warning where Windows sizes it From trustno1-coder/VIctory-NVIDIA pull request 3397. The three tests trustno1-coder#1944 added for first_upload_decision pass the new cap argument as None, the behaviour they were written against. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RxGcWqw1QvqSBENLiNPRD8
… into the world (trustno1-coder#1520) From trustno1-coder/VIctory-NVIDIA pull request 2657 ("Lowvram/evict guard"). Conflicts resolved against PRs already merged here: - play.rs: trustno1-coder#2657's page-file warning (with the commit limit) comes first, trustno1-coder#3397's warning for a page file Windows sizes only when it says nothing. - resource.rs let_go_idle: when card_sweep_wins() (on by default under 24 GiB of RAM) the trustno1-coder#2657 rule decides, otherwise unmapped_only does, keeping trustno1-coder#2591's fix. - shadow.rs window_mapped_for: trustno1-coder#2988's 88% line, or trustno1-coder#2657's budget less the guard margin when the PC's shared memory is tight. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RxGcWqw1QvqSBENLiNPRD8
… idle texture eviction and preserve eviction totals From trustno1-coder/VIctory-NVIDIA pull request 2724. One conflict in let_go_idle's streamed-out sweep: the copy comes from take_unmapped_host (trustno1-coder#2724) and its used stamp is still cleared as main does. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RxGcWqw1QvqSBENLiNPRD8
…ff again and again is made on a lower commit floor From trustno1-coder/VIctory-NVIDIA pull request 2886. Conflicts were two additions side by side: trustno1-coder#3379's RAM-scaled default floor (floors_for) and trustno1-coder#2886's mb helper in memguard.rs, and each PR's test in pipeline/make.rs; both are kept. floors_now() lowers whichever floor floors() chose. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RxGcWqw1QvqSBENLiNPRD8
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #
What it changes
This merges 22 open pull requests from trustno1-coder/VIctory-NVIDIA into this fork. Each one helps the game run on a smaller PC: a graphics card of 8 to 12 GB, or a PC with 16 GB of RAM. Each PR is its own merge commit (
Merge upstream PR #N: …). The numbers below are upstream's.Merged without conflicts (17)
Merged by hand (5): each merge commit message gives the resolution.
first_upload_decisiontests that 8 GB cards: no first uploads past the DXGI budget trustno1-coder/VIctory-NVIDIA#1944 added now pass the newcapargument asNone.play.rs: Lowvram/evict guard trustno1-coder/VIctory-NVIDIA#2657's page-file warning comes first. 16 GB PCs with 8 GB cards: texture copies held to 1 GB, and a page-file warning where Windows sizes it trustno1-coder/VIctory-NVIDIA#3397's warning is used only when Lowvram/evict guard trustno1-coder/VIctory-NVIDIA#2657's gives none.let_go_idle: whencard_sweep_wins()is on, Lowvram/evict guard trustno1-coder/VIctory-NVIDIA#2657's rule decides. Otherwiseunmapped_onlydoes, so victory-gpu: restore VRAM eviction under host RAM pressure and recycle alias_rt overflow tiles trustno1-coder/VIctory-NVIDIA#2591's fix stays.window_mapped_for: fix(gpu): raise 12GB VRAM window gate to 88% to prevent premature shared-memory spill trustno1-coder/VIctory-NVIDIA#2988's 88% line applies. Lowvram/evict guard trustno1-coder/VIctory-NVIDIA#2657's line (the budget less the guard margin) applies when the PC's shared memory is tight.take_unmapped_host, and itsusedstamp is still cleared.Left out
play-foxhound.ps1and conflicts with it.How it was tested
cargo check --workspace --all-targets --locked --target x86_64-pc-windows-msvcpasses, with and without--all-features. No new warnings: victory-gpu has 15, against 18 on main.cargo testpassed for the crates it touches: no, not run. victory-gpu, victory-hle and victory do not build for Linux on main either. The crates that do build ran: their only failures are 3 tests invictory-formats, which this PR does not touch, and they fail on main too.cargo xtask policyreportscrates/victory-loader/src/heap_sites/frame_users.rs. That file is unchanged from main.Checked for overlap
Generated by Claude Code