Repository navigation
Conversation
The plan subtracted the free ranges of the placed blocks from the card's use whatever the budget said. The ranges are committed memory either way: the driver's budget is spent on them, and only letting a texture go - and, in time, its emptied block - gives memory back. With enough block space free, the plan could weigh the use under its high line while the card sat past the driver's budget, and the over_budget idle and cap right below never came into play. On an RTX 3070 Ti 8 GB (Series S, DLSS quality, no frame generation, 2026-11-29) the card sat at 7,261 MB of a 7,064 MB budget with 1,698 MB free in blocks, the plan weighed 5,563 MB against a 6,004 MB line ('not evicting') to the end, and the run ended on 'a host command list did not close (0x80070057)' (trustno1-coder#2778).
Under the budget the subtraction stands: a new placement reaches the free ranges without a new block, so evicting there would only churn.
Mise à jour du 30/11 à 0h50 : éviction des textures quand la carte dépasse son budget (trustno1-coder#3454)
…criptor churn Integrate trustno1-coder#3475 with tested 60s held-texture grace and opt-in expensive census; trustno1-coder#3454 real over-budget eviction; trustno1-coder#2234 idle snapshot reclamation adapted to idle list trim; trustno1-coder#2956 cap descriptor sync; trustno1-coder#2607 advance unmatched remap cursor; trustno1-coder#3503 normalize descriptor footprint cache keys. Preserve shader translator, cache keys and settings.
|
Test on an emulated 8 GB card. This change isn't reached in this scene, so these runs neither confirm nor rule it out. The numbers on main may still be useful. Setup
In all four runs the slot eviction line reads What this does show, for #191's 8 GB case: main ends 1.0–1.5 GB over its 6,800 MB budget in the city, and nothing there gives the memory back. I'll follow up with 🤖 Generated with Claude Code |
|
Additional 8 GiB data point on v2026.11.29.05. Desktop RTX 4060 (621.14), Ryzen 7 5800X, 31.9 GiB RAM, Windows 11 26H2. Series X at 2560×1440, DLSS Ultra Performance, 2× frame generation with MFG Unlocker, RT off.
This is from the release build before applying this PR. It provides another case to test candidate eligibility once the budget trigger is active. The next comparison is sampled eviction off/on with the same save and route, tracking evicted bytes and how many pool blocks return to the driver. |
…rustno1-coder#3454) Port of trustno1-coder#3454, applied clean. The slot_evict plan subtracted the free ranges of the placed blocks from the card's use whatever the budget said, so with enough free block space it never evicted while the card sat past the driver's budget; now over the budget the plan weighs the full use (under it the subtraction stands). Upstream: RTX 3070 Ti 8 GB, a 42-minute run without a crash with VICTORY_SAMPLED_EVICT=1; the unit tests only otherwise. Changes when eviction starts on this PC (eviction is on by default here).
|
A correction to my comment above, and a follow-up. Correction. I wrote that this scene "has no slot-picked textures for the pass to let go". That was wrong: I read the upload queue's "0 slots" line. On main in this scene the sampled-marks line shows 31,924 textures shown by a slot that shaders pick by index, and 26,751 of them (1,969 MB) marked by no shader within the idle time. Slot eviction let go of 0 because Follow-up, same setup as above: emulated 8 GB card (
No crashes in any run. RTX 3090 with the budget capped, i9-14900K, 32 GB (corrected; I first wrote 64 GB), Series S, window off screen. 🤖 Generated with Claude Code |
|
Follow-up on my earlier “zero textures” observation. The periodically reported “since the start” value was reading counters reset by the interval logger, so that line cannot establish how many evictions occurred in a session. In a later RTX 4060 Series S capture with sampled eviction enabled, summing the interval lines gave 175,338 host copies let go, 101,925 made again, and 9,738 made again within two seconds. These counts describe slot churn. The telemetry PR #3766 fixes the cumulative log and adds a measurement for whole heap blocks released by the texture pools. |
confirmed on my side: summing the interval lines instead of the |
|
Updated the description above. In short, per @nick0451's correction and
|
…on when the card is over its budget) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Follow-up on Setup: same emulated 8 GB card ( Result:
Not covered: these are stills a minute apart while standing. A texture that reloads in under a second, or pop-in while turning the camera, wouldn't show. In the 20-minute runs above, 61,000–70,000 slots were queued again after being let go, so a check while moving would be the next step. 🤖 Generated with Claude Code |
…he card is over its budget
What it changes
The
slot_evictplan subtracted the free ranges of the placed blocks fromthe card's use whatever the budget said (
resource.rs). Theover_budgetbranch right below it (idle 3 s, cap 768 MB) was therefore dead code: with
enough block space free, the plan weighed the use under its high line while
the card sat past the driver's budget, and never turned on.
This change makes that branch reachable: at or over the budget the plan
weighs the card's use as it is; under the budget the subtraction stands (a
new placement reaches the free ranges without a new block, so evicting
there would only churn). It mirrors the direction
VICTORY_ROOM_REAL(v2026.11.29.05, foxhound 4349ab56) already takes on the placement side of
the same free-in-blocks accounting.
What it does not do
It is not a fix for the
0x80070057crash family:base, card at 7,805/7,148 MB,
VICTORY_SAMPLED_EVICT=0), the pass let go20 copies (4.8 MB, interval sums) - its candidates were
indexed-slot-blocked - and the run still ended on
0x80070057.VICTORY_SAMPLED_EVICT=1on main, the sweep keeps the card underbudget in an 8 GB city bench (@nick0451: 0 % samples over, ~1.2 GB less,
no fps loss), so the trigger rarely engages there.
inconclusive: main crashed with the card under its budget the whole run,
so the differing factor was not this trigger - that crash belongs to the
still-open invalid-command family (Texture copies the host does not take are left out instead of ending the run (0x80070057) #3678 was closed "not the cause").
What it does change: in the state the v2026.11.29.03 run died in (card at
7,261/7,064 with 1,698 MB free in blocks, the plan weighed 5,563 MB against
a 6,004 MB line and read "not evicting" to the end), the plan now turns on.
Whether the pass then finds takeable candidates depends on
VICTORY_SAMPLED_EVICTand on what is evictable at that moment - this PRand that switch are the two halves of one gate.
How it was tested
cargo test -p victory-gpu --lib: 914+ passed + the newslot_plan_used_ignores_block_room_only_when_the_card_is_over_its_budget.cargo build --release --locked -p victory; the diag tree here also carried the copystat/timing fixesthat have since landed in
41adb551).scene 1280x720, DLSS quality, frame generation off; Ryzen 7 5700X,
64 GB, Windows 11 26H2.
interval logger (GPU: report slot eviction totals and whole texture blocks let go #3766 fixes it) - the numbers above come from summing
the "slot eviction since the last line" interval lines.
Checked for overlap
#2591 (sweep eviction under host RAM pressure) and #2549 (bounds the sweep,
backs off empty slot_evict passes) are complementary; #2778's analysis
(unmapped_only, slot keyspaces) does not cover this trigger;
VICTORY_ROOM_REAL(v2026.11.29.05) covers the placement side.