Repository navigation
8 GB cards: past the budget, no first uploads that keep the card over it - #1944
Draft
RomanFama592 wants to merge 3 commits into
Draft
RomanFama592 wants to merge 3 commits into
RomanFama592 wants to merge 3 commits into
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
RomanFama592
force-pushed
the
feature/8gb-cards
branch
from
November 29, 2026 04:24
f3f6706 to
6c05445
Compare
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.
On a graphics card of 8 GB the black-face fix's first-upload admission lets the card grow past its DXGI budget for good, and past the budget Windows pages the card's memory: the frame rate then falls with how far over the card is. This keeps first uploads from doing that, adds one opt-in residency hint, and documents what helps on these cards. Measured on an RTX 4060 Ti 8 GB, which is still being tested; details in
docs/8gb-cards.md.What it changes
Past the budget, no first uploads that keep the card over it (
resource::first_upload_decision; on by default, acts only while DXGI says the card is at or past its budget). Two cases let the card grow without end:Windows then paged the card: 89–234 ms of GPU a frame, 3–5 fps, and a Streamline budget warning every frame (5,153 times). Now neither case is admitted past the budget. Under it, and just past it with free ranges to spare, nothing changes, so a card with memory to spare never reaches this. The #1496 test's free-range case is refused now (2.3 GB past the budget with 16 MiB free) and the test says so.
The cost: a refused slot shows the neutral texture until there is room, so walking into a new place, floors and walls can stay grey or black until eviction lets go of the old place's textures (about four seconds unsampled).
VICTORY_RESIDENCY_PRIORITY=1(opt-in, off by default): committed render targets, depth and UAV memory getD3D12_RESIDENCY_PRIORITY_HIGH, so past the budget Windows pages textures out first. A hint only.docs/8gb-cards.md: why the budget decides the frame rate on these cards (a table of GPU time and fps by how far past the budget the card was), the change and its cost, the switches, settings that help (frame generation off, fewer target pixels, what F1 saved overrides, keep the wave-wide fallback on), and what is open. Linked fromdocs/windows-memory.md.How it was tested
VICTORY_RESIDENCY_PRIORITY=1is not compared on the card yet; off by default until it is.cargo test -p victory-gpupassed: yes (591). Clippy: no new findings.Checked for overlap
View::Shadertextures in the first-upload admission, the better fix for the one-byte case; this only refuses them past the budget, so the two fit together, and with First-upload admission: size View::Shader textures and skip non-texture/placed-buffer slots #1771 that half of the rule rarely acts.🤖 Generated with Claude Code
https://claude.ai/code/session_01WiREjB6TQEQ2QzFVNzZKGS