Skip to content

8 GB cards: past the budget, no first uploads that keep the card over it - #1944

Draft
RomanFama592 wants to merge 3 commits into
trustno1-coder:mainfrom
RomanFama592:feature/8gb-cards
Draft

RomanFama592 wants to merge 3 commits into
trustno1-coder:mainfrom
RomanFama592:feature/8gb-cards

Conversation

@RomanFama592

@RomanFama592 RomanFama592 commented Nov 29, 2026 •

Copy link
Copy Markdown

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:

  • A texture object of the title's (not placed in title memory) is weighed as one byte, since the pass does not know its size, and one byte always fit the free ranges: 6.0 → 8.3 GB in use against a 6.8 GB budget 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 were admitted because they take no new memory, but those ranges are what slot eviction had just given back: 125,675 went in in 18 minutes while in use rose 7.7 → 9.9 GB.

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 get D3D12_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 from docs/windows-memory.md.

How it was tested

  • GPU and profile: RTX 4060 Ti 8 GB (budget 6.6–7.2 GB), Ryzen 9 5900X, 64 GB, Windows 11, driver 610.88. Series X at 1440p, DLSS balanced, frame generation off, ray tracing off; earlier runs also Series S 626/720 and frame generation x2.
  • Before: 2–3 GB past the budget, GPU 89–234 ms a frame, 3–5 fps, 5,153 Streamline budget warnings in 18 minutes.
  • After: four runs of 8–11 minutes, 150–780 MB past the budget, no Streamline budget warnings, 5–12 fps median depending on how far over the card stayed (13–14 fps under 300 MB over, 5–6 over 600 MB).
  • VICTORY_RESIDENCY_PRIORITY=1 is not compared on the card yet; off by default until it is.
  • cargo test -p victory-gpu passed: yes (591). Clippy: no new findings.

Checked for overlap

🤖 Generated with Claude Code

https://claude.ai/code/session_01WiREjB6TQEQ2QzFVNzZKGS

@github-actions github-actions Bot added the pr-fix Pull request: fixes a bug label Nov 29, 2026
@github-actions github-actions Bot changed the title [pr-fix] 8 GB cards: no first uploads past the budget; opt-in switches, native build, docs 8 GB cards: no first uploads past the budget; opt-in switches, native build, docs Nov 29, 2026
RomanFama592 and others added 3 commits November 29, 2026 01:23
…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 RomanFama592 changed the title 8 GB cards: no first uploads past the budget; opt-in switches, native build, docs [pr-fix] 8 GB cards: past the budget, no first uploads that keep the card over it Nov 29, 2026
@github-actions github-actions Bot changed the title [pr-fix] 8 GB cards: past the budget, no first uploads that keep the card over it 8 GB cards: past the budget, no first uploads that keep the card over it Nov 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-fix Pull request: fixes a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant