Skip to content

Slot eviction counts the card's use as the texture queue does (#3829) - #3848

Open
Trillazill wants to merge 3 commits into
trustno1-coder:mainfrom
Trillazill:fix/slot-evict-counts-as-the-queue
Open

Trillazill wants to merge 3 commits into
trustno1-coder:mainfrom
Trillazill:fix/slot-evict-counts-as-the-queue

Conversation

@Trillazill

@Trillazill Trillazill commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

What this changes

The texture queue (resource::room) and slot eviction (resource::slot_evict) count the card's memory in use differently:

  • the queue: used - free in texture blocks + kept for card copies of title buffers + kept for render targets, against room_line - face headroom;
  • eviction: used - free in texture blocks, against min(VICTORY_SLOT_EVICT_PERCENT, that same line as a percent).

The lines are nearly the same, but eviction leaves out what the queue keeps. With #3829's figures (RTX 4060 Ti 8 GB, budget 6,910 MB) the queue saw 5,494 − 873 + 115 + 629 = 5,365 MB against 5,272 MB and said no room, new textures wait. Eviction saw 5,494 − 873 = 4,621 MB against its start line of 76 % (5,251 MB) and never started. The textures then wait with nothing making room for them; on that card they flicker black (0 of 137 looks decided evicting across three runs). A comment in the issue replayed the same numbers through room and slot_plan in the issue.

Now both count through one function, queue_use, so eviction starts where the queue says there is no room. VICTORY_SLOT_EVICT_KEPT=0 goes back to the old count.

After review

  • Correction to the paragraph above: the no room diagnostic is arithmetic only. room() admits before that comparison while the texture copies are under the floor (a quarter of the budget, 1,727 MB there) or an explicit VICTORY_TEXTURE_BUDGET_MB is set. 8 GB RTX 4060 Ti: black flicker on skin, eyes, shadows and orange jumpsuits in the intro; slot eviction never starts on v2026.11.29.05 while the queue says "no room" #3829's line showed 1,238 MB of copies, so at that exact snapshot the queue was not refusing.
  • Reserves are gated (reserves_counted): eviction counts them, and starts at the queue's line, only with copies at or past the floor and no explicit texture budget, i.e. exactly where room() compares the counted use. Elsewhere it plans as on main.
  • Exact byte line (cherry-picked from tyr0nsur's 267a5f6, author kept): in that path the start is the queue's byte line (refusing at equality), not the rounded percentage clamped to 50 %. At VICTORY_TEXTURE_ROOM_PERCENT=50 the clamp had put eviction above the queue's line.

With #3829's card figures and the copies past the floor, eviction starts and lets go of up to 256 MB a pass (VICTORY_SLOT_EVICT_MB), down to the low line (4,856 MB).

What it does not change:

  • the queue's own decision (room; the arithmetic moved into queue_use unchanged);
  • the lines, the cap a pass, the idle times, and which textures eviction may take.

What to watch

The reserves count as use while they are kept. Right after a world loads, the render-target reserve (2.5 GB on cards with a budget of 8 GiB or less) can be most of what counts. Eviction can then let go of idle textures while the targets are still coming. It already stopped short of the queue's line before; now it reaches it. The reserve is given up once the targets settle (VICTORY_CARD_ROOM_FOR_TARGETS_SETTLE_MS, 20 s). The "made again (within 2 s)" count in the slot-eviction line shows if that costs re-uploads.

Tests

  • New: resource::tests::slot_eviction_starts_where_the_queue_says_no_room, on 8 GB RTX 4060 Ti: black flicker on skin, eyes, shadows and orange jumpsuits in the intro; slot eviction never starts on v2026.11.29.05 while the queue says "no room" #3829's figures. Without the reserves eviction stays off; counted as the queue counts, it starts, capped at a pass's bytes.
  • New after review: resource::tests::the_reserves_count_only_where_the_queue_counts_them, the review's three cases (1,238 MB default: off; 2,000 MB default: on, 256 MB; 2,000 MB with an explicit texture budget: off) and VICTORY_SLOT_EVICT_KEPT=0. From 267a5f6: resource::tests::slot_eviction_can_open_room_at_the_exact_byte_line.
  • cargo test -p victory-gpu --lib -- resource:: pool::: 74 pass, 1 fails (host::uav_pool::tests::host_list_uav_pool_lifecycle_retire_trim_and_info_queue, which the filter catches; it passes alone and does not touch this code).
  • cargo test -p victory-gpu --no-fail-fast: 921 pass, 2 fail. shader_cache::tests::every_switch_of_the_translator_is_in_the_key fails the same way on 41adb55. host::card_steps::tests::places_written_after_sending_are_learned failed in the full run and passed alone three times out of three; it does not touch resource.rs. (In another full run the same way, host::uav_pool::tests::host_list_uav_pool_lifecycle_retire_trim_and_info_queue was the one: the suite has tests that share process-wide state.)
  • cargo xtask policy --staged: ok (1 file).
  • Clippy (-p victory-gpu --lib --tests --features diagnostics): nothing in the lines this change adds or touches. Main at 41adb55 already stops -D warnings in victory-shader.
  • In game, on an RTX 4080 with VICTORY_VRAM_BUDGET_MB=6910 (diagnostics build, Series X): the reserves fell to 0 MB within the first ~30 s in the world, and the card sat over the capped budget (7.5–7.9 GB counted). That is past both the old and the new start line, so this run does not tell them apart. It needs a real 8 GB card in 8 GB RTX 4060 Ti: black flicker on skin, eyes, shadows and orange jumpsuits in the intro; slot eviction never starts on v2026.11.29.05 while the queue says "no room" #3829's setup. The same run showed something worth knowing for 8 GB RTX 4060 Ti: black flicker on skin, eyes, shadows and orange jumpsuits in the intro; slot eviction never starts on v2026.11.29.05 while the queue says "no room" #3829: when eviction looked, 16,147 of 20,316 idle-looking textures could not be taken because a slot that shaders pick by index showed them. Only VICTORY_SAMPLED_EVICT=1 lets those go, which is the switch the reporter found reduced the flicker on .02. So on that card this change lets eviction start, and how much it can take still depends on that switch.

No game data, logs or other files from the title are in this change.

🤖 Generated with Claude Code

…o1-coder#3829)

The texture queue counted what is kept for card copies of title buffers
and for render targets as used; slot eviction did not. With trustno1-coder#3829's
figures (8 GB card) the queue said "no room, new textures wait" at
5,365 MB against 5,272 MB while eviction saw 4,621 MB against 5,251 MB
and never started, so the waiting textures were never given room and
flickered black.

Both now count through queue_use. VICTORY_SLOT_EVICT_KEPT=0 goes back to
the count without the reserves.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@tyr0nsur

Copy link
Copy Markdown
Contributor

The 50% clamp can still put the eviction start above the texture queue’s byte line. At a 6,910 MiB budget with VICTORY_TEXTURE_ROOM_PERCENT=50 and the default 256 MiB face headroom, the queue refuses at about 3,199 MiB while 055615f still starts above about 3,455 MiB. This is in the counted path after the texture floor is met.

Follow-up 267a5f6 uses the queue’s exact byte line to bound the start in that path. It keeps the lower stop line, the per-pass cap and the existing percentage path for explicit caps and VICTORY_SLOT_EVICT_KEPT=0. The regression checks one byte below the line, equality, and the hysteresis down to the stop threshold. #3829’s public figures still start eviction and request the capped 256 MiB. The targeted Windows resource and pool diagnostics suite passed (74 passed, 4 ignored), as did the staged asset policy check.

A separate below-budget case is the raw VICTORY_ROOM_REAL margin. With 6,910 MiB budget, 6,700 MiB raw use and 5,144 MiB counted against a 5,272 MiB line, it can refuse while the counted plan remains idle. #3454 overlaps at and above the DXGI budget. For the band just below it, I’d measure whole blocks released before forcing extra slot eviction. Returning a piece to a partially used block can improve reuse while the DXGI number stays flat.

Comment thread crates/victory-gpu/src/resource.rs Outdated
// against eviction's 5,251 MB; on an 8 GB card the waiting
// textures flicker black). `VICTORY_SLOT_EVICT_KEPT=0`: as
// before, without them.
let used = if crate::toggled!("VICTORY_SLOT_EVICT_KEPT") {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The logged arithmetic can disagree with actual admission. #3829's quoted line includes 1,238 MiB in texture copies. At a 6,910 MiB DXGI budget, texture_floor_bytes is 1,727.5 MiB. The full room() returns true before comparing the counted usage. The diagnostic in host.rs prints no room from the arithmetic alone. I corrected my earlier issue comment to account for that. Corrected #3829 analysis

I ran the exact admission and eviction planning blocks on Windows with injected memory figures. The other figures stay at #3829's quoted values.

Texture copies and setting Actual room() Main eviction 055615f / 267a5f6 With reserve counting gated
1,238 MiB, default Allows Off Requests 256 MiB Off
2,000 MiB, default Refuses Off Requests 256 MiB Requests 256 MiB
2,000 MiB, explicit 2,048 MiB texture cap Allows Off Requests 256 MiB Off

In 267a5f6, the conditions under align select the threshold, but the plan can still add the reserves before hitting that gate. Could the same conditions gate counting the reserves as well? I checked that change in the fixture. It preserves the old eviction calculation under the floor or with an explicit texture cap, and still starts the new plan when actual budget admission refuses in the middle case.

For the 8 or 10 GB hardware A/B, recording held back for room, first-upload room decisions, and the eviction/recreation count would help distinguish a real upload refusal from the diagnostic line.

If you reuse the regression case or gate change, please retain its authorship with Co-authored-by: andrewpozdnakov7-jpg <andrewpozdnakov7-jpg@users.noreply.github.com>.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Retested the exact a9980e6 head on Windows with diagnostics. The resource and pool suites passed 75 tests, with four ignored. The regression covers the automatic floor, real budget admission, and the explicit cap cases.

I also checked the two hardware logs from the earlier 055615f head. With KEPT=0, 27 of the 33 diagnostic no room lines were below the floor, but the actual indexed-texture pass still recorded 107,868 held back for room events across the capture. With KEPT=1, all 10 diagnostic lines were below the floor and that counter stayed at zero. Those are repeated admission events, so they should be read as counts of work being held back. Matched hardware logs

The revised head resolves the planning case I raised. The hardware comparison with that head is still needed to see whether the initial reset burst and the flicker change.

@andrewpozdnakov7-jpg

andrewpozdnakov7-jpg commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

VectorMan896 ran a useful hardware control on the RTX 4060 Ti by changing only the existing start percentage to 66. Eviction was active in 29 of 37 checks versus 0 of 137 in the earlier runs. The sampled-slot counter recorded 49,780 resets, with 12,150 queued again when read. The texture-level counter reported zero. Flicker was reduced and still visible. The run started with more available system commit, so its FPS difference is hard to attribute. 8 GB hardware report

I also checked the uploaded control log. All 12 no room lines were below the automatic texture floor. Across the 37 windows, the indexed-texture pass reported zero held back for room and the first-upload refusal counters were zero. These particular lines are budget diagnostics. Control log

That shows why starting the pass can help on this setup and why the requeue count belongs in the comparison. It was a test of the existing percentage switch. The reserve-counting change in this PR still needs a direct run.

@Lancito01 Thanks for offering the RTX 3080 test. Once the reserve-counting gate is settled, could you compare the same build and route with VICTORY_SLOT_EVICT_KEPT=0 and =1, keeping the sampled settings fixed? Please include the upload refusals and recreate counts, and whether the bank scene progresses. 10 GB reproduction

@VectorMan896

Copy link
Copy Markdown

Tested 055615f on the 8 GB card from #3829 (RTX 4060 Ti 8 GB, driver 621.01, Ryzen 5 5600X, 32 GB). Built from the PR head with cargo build --release --locked -p victory and ran the same intro stretch each time, with the same settings as in #3829 (Series S, 1080to1440, DLSS Balanced, DLSS FG 2x, VICTORY_SAMPLED_EVICT=1, no VICTORY_SLOT_EVICT_PERCENT). Each run was about three minutes in the game. The first run after the build (preload, warm-up) is left out.

VICTORY_SLOT_EVICT_KEPT=0 VICTORY_SLOT_EVICT_KEPT=1
Room checks saying no room, new textures wait 33 of 41 10 of 42
Eviction looks that decided evicting 0 of 41 29 of 42
Texture-level slot_evict let go 0 0
VICTORY_SAMPLED_EVICT slots put back to null 0 49,177
... of them queued again as a shader read them 0 12,277 (25 %)
Free in texture blocks at the end 723 MB 1,198 MB
Last room line 5,639 against 5,305 MB: no room 5,038 against 5,292 MB: room
Median / slowest 5 % rendered fps 14.9 / 8.5 15.5 / 9.9
Seconds under 10 fps 19 10
Pipelines failed 0x8007000E 0 0

The commit free at the start was the same for both runs (30.0 / 30.2 GB).

The change does what it says. With KEPT=1, eviction starts where the queue says no room, and the queue gets room back. With KEPT=0 (the old count), eviction never starts and the queue stays over its line. The warm-up run with KEPT=1 looked the same: 26 of 41 evicting, 2 of 41 no room.

But the flicker was not better: by eye it was a bit worse with KEPT=1 than with KEPT=0. It was on the same jumpsuits, skin, eyes and shadows. This is one run each and a subjective call, so treat it with care. It's also not what I saw with VICTORY_SLOT_EVICT_PERCENT=66 on .05 earlier, where the flicker was less than with no eviction.

The requeue count may explain it. As before, all the freeing is the sampled pass: the texture-level pass takes nothing (every look finds idle textures it may not take because a slot shaders pick by index shows them). Over the run, 25 % of the nulled slots were queued again when a shader read them. Most of the nulling comes in one burst about a minute in, then the requeues keep growing at roughly 1,000 every 30 s:

10:22:18  30,956 nulled,  2,174 queued again
10:22:52  39,162 nulled,  5,620 queued again
10:23:24  44,446 nulled,  9,758 queued again
10:24:23  47,676 nulled, 11,343 queued again
10:24:52  49,177 nulled, 12,276 queued again

If a nulled slot is sampled before its texture is back, it would draw black, which looks like the flicker being reported. So on this card the start gate is fixed, but which slots the sampled pass lets go of may now matter more than when it starts. The first burst fits the "right after a world loads" case in the PR's "What to watch" section.

Logs (KEPT=0, KEPT=1) attached below.

@VectorMan896

VectorMan896 commented Nov 30, 2026 •

Copy link
Copy Markdown

Logs for the two runs above (KEPT=0, KEPT=1):
victory-logs-pr3848-kept0-kept1.zip

tyr0nsur and others added 2 commits November 30, 2026 02:31
After the texture floor is reached, bound the counted eviction start by
the automatic queue's exact line. The 50% minimum of the rounded policy
can put eviction above that line once face headroom is subtracted.

Keep separate start and stop thresholds and retain the percentage plan
for the legacy switch and explicit texture budgets. Test the equality
boundary, the capped pass, and the lower stop line.
…-coder#3848 review)

room() admits before it compares its count with its line when the texture
copies are under the floor or an explicit texture budget is set. Counting
the reserves there started eviction with nothing waiting: trustno1-coder#3829's line
showed 1,238 MB of copies, under that card's 1,727 MB floor.

reserves_counted() now decides both whether the reserves are counted and
whether the queue's byte line bounds the start (the cherry-picked
267a5f6). The test covers the reviewer's three cases.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Trillazill

Copy link
Copy Markdown
Contributor Author

Thanks, both of you. You're right about the snapshot: I read the no room line as the decision, and at 1,238 MB of copies room() had already admitted.

Pushed:

  • feb4266 is 267a5f6 cherry-picked, authorship kept.
  • a9980e6 adds reserves_counted(). That one predicate decides both whether the reserves are counted and whether the byte line bounds the start: VICTORY_SLOT_EVICT_KEPT on, no explicit VICTORY_TEXTURE_BUDGET_MB, copies at or past the floor. Your fixture's three cases are in the_reserves_count_only_where_the_queue_counts_them: 1,238 MB default → off; 2,000 MB default → on, 256 MB; 2,000 MB with an explicit cap → off.

I've corrected the description too. The VICTORY_ROOM_REAL band just below the budget is left alone here. As tyr0nsur says, measuring whole blocks freed there should come before forcing more eviction.

@VectorMan896

Copy link
Copy Markdown

On the question of a real refusal against the diagnostic line: my logs have the counters you asked for. They come from the texture pass's 5-second line (... N held back for room ...) and the first-upload room decisions line, totalled over each run. All are the same PC, settings and intro stretch as above.

Run Eviction ran held back for room First uploads admitted just over the room line Refused by budget, ceiling or byte limit
.05, no eviction 0 of 54 looks 73,417 5,751 0
.05, SLOT_EVICT_PERCENT=66 29 of 37 0 0 0
055615f, KEPT=0 0 of 41 107,868 10,743 0
055615f, KEPT=1 29 of 42 0 0 0

So on this card the no room line wasn't only a diagnostic: uploads really were held back while eviction stayed off, and none were held back once it ran.

On a9980e6. I read it against these runs. The texture pass holds back only when room() returns false, and room() returns true under the floor, so every one of those holds happened with KINDS[1] + tiles::given_total() at or above the floor (~1,727 MB on this 6.9 GB budget). That's the same figure reserves_counted() checks, so at those moments the new gate would count the reserves and eviction could start. The run quoted in #3829 (1,238 MB of copies) was just a sample taken under the floor.

One thing that may matter for 8 GB cards: the copies figure on the room lines swings a lot around the floor here, from 264 to about 1,820 MB within one run. With align decided again at each pass, eviction would count the reserves only in the stretches above the floor. Whether that's enough to keep it running long enough to make room is what a run would show.

The flicker note from my previous comment still stands: with KEPT=1 nothing was held back, but by eye the flicker was a bit worse than with KEPT=0, with 25 % of the nulled slots queued again. So having eviction run and having less flicker aren't the same thing here.

I can build a9980e6 and run the same intro with KEPT=0 and KEPT=1.

@andrewpozdnakov7-jpg

Copy link
Copy Markdown
Contributor

Thanks, @VectorMan896. The same-intro KEPT=0 and KEPT=1 runs on a9980e6 would answer the remaining question. Please keep the eviction threshold, texture limit, and the start/end of the capture the same for both. Include the commit and effective settings with the output.

The most useful comparison is the texture pass's held back for room counts, the eviction nulled and queued again counts, and whether the same scene flickers in each run. If the copies figure crosses the ~1,727 MiB floor, a few adjacent lines around a crossing would help show when the holds and resets occur.

The revised head passed the Windows policy tests for the automatic floor and the explicit cap. Your earlier run also gives us a separate visual baseline, since clearing the upload holds coincided with slightly more flicker on that head.

AI-assisted with OpenAI Codex.

@VectorMan896

Copy link
Copy Markdown

Ran a9980e6 as asked: the same intro, with KEPT=0 then KEPT=1, back to back on the same build.

Commit and effective settings (identical for both runs except KEPT):

  • Build: a9980e6, built with cargo build --release --locked -p victory (no local source changes)
  • Hardware: RTX 4060 Ti 8 GB, driver 621.01; Ryzen 5 5600X; 32 GB
  • Budget: ~6.7–6.8 GB, so the floor is ~1,680–1,700 MiB
  • Display and frame settings: Series S, --res 1080to1440, DLSS Balanced, DLSS frame generation 2x
  • Eviction: VICTORY_SLOT_EVICT=1 (the play default), VICTORY_SLOT_EVICT_PERCENT unset (85), VICTORY_SAMPLED_EVICT=1
  • Texture limits: no VICTORY_TEXTURE_BUDGET_MB, VICTORY_TEXTURE_ROOM_PERCENT=80
  • Other switches: VICTORY_WIDE_THREADS=6, VICTORY_POOL_SMALL=1, VICTORY_WAVE_FOLDED=1, VICTORY_HOST_TEXTURE_SWEEP=0
  • Capture: from launch to closing the window. The same intro stretch was played by hand for about three minutes in the game (176 s and 184 s). Commit free at the start was 28.1 GB in both runs. A preload/warm-up run before them is left out.
KEPT=0 KEPT=1
held back for room (total) 91,903 3,395
VICTORY_SAMPLED_EVICT slots nulled 16,503 29,613
... queued again as a shader read them 1,732 (10 %) 5,551 (19 %)
Eviction looks that said evicting (5 s samples) 1 of 43 0 of 48
Room lines with copies at or past the floor 5 of 43 (max 1,752 MiB) 0 of 48 (max 1,706 MiB, during loading)
Median / slowest 5 % rendered fps 16.0 / 8.7 16.1 / 9.4

I've left out the no room counts, since #3904 says that meter mislabels uploads below the floor. held back for room is the real one.

Flicker, by eye: worse with KEPT=1, in the same scene (orange jumpsuits, skin, eyes, shadows). That's the same direction as on 055615f.

Around the floor crossing, KEPT=0. The holds peak while the copies are at the floor, and drop once they fall away:

11:06:04 room: copies 1667, counted 5595 vs line 5118   held back  3,397 of 33,166 taken
11:06:10 room: copies 1697, counted 5597 vs line 5120   held back  4,924 of 31,794
11:06:15 room: copies 1711, counted 5704 vs line 5118   held back 18,814 of 44,479
11:06:20 room: copies 1752, counted 5695 vs line 5118   held back 10,899 of 27,039
11:06:26 room: copies 1751, counted 5649 vs line 5087   held back  7,418 of 26,981
11:06:31 room: copies 1696, counted 5690 vs line 5087   held back 25,837 of 47,625
11:06:36 room: copies 1072, counted 5869 vs line 5117
(sampled nulled: 0 throughout)

The same stretch, KEPT=1. Nothing is held back while the copies climb toward the floor, and the sampled pass nulls 22,045 slots in one burst between two 5 s lines. Every 5 s sample of the look still says not evicting, so eviction ran and stopped between samples:

11:10:02 room: copies 1285, counted 5488 vs line 5120   held back 0 of 29,987   look: not evicting   nulled 0
11:10:35 room: copies 1519, counted 5422 vs line 5115   held back 0 of 39,477   look: not evicting   nulled 22,045, requeued 2,067
11:10:40 room: copies 1671, counted 5599 vs line 5113   held back 0 of 28,154   look: not evicting   requeued 2,154
11:10:45 room: copies 1352, counted 5287 vs line 5113   held back 3,395 of 42,981

How I read it (unconfirmed): with KEPT=1, each time the copies reach the floor, eviction starts (now that the reserves count), nulls a large batch through the sampled pass, and drops the copies back under the floor, where room() admits everything. So the holds go away, but the scene is still sampling a good part of what was nulled: 19 % were queued again, against 10 % with KEPT=0. On this card that trades waiting textures for nulled ones, and the nulled ones seem to be what flickers.

Logs below.

@VectorMan896

Copy link
Copy Markdown

@Yoruiopz

Yoruiopz commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

An independent 8 GB data point on the exact current head a9980e6. I ran KEPT=0 then KEPT=1 on an RTX 5070 Laptop GPU with the same copied porch checkpoint, input tape, settings, and two copies of the same warm cache. This is a different scene from the intro above.

Series S, DLSS Ultra Performance preset M (640×360 to 1920×1080 in the renderer log), frame generation off. Both runs explicitly enabled VICTORY_SLOT_EVICT, VICTORY_SAMPLED_MARKS and VICTORY_SAMPLED_EVICT. Both used the default eviction limits, 75% texture room, and the live DXGI budget (6,924–7,019 MiB in the sampled room logs).

Measurement KEPT=0 KEPT=1
Upload holds across complete 5-second buckets from world +5.3 s through +60 s 9,722 0
Sampled slots nulled by the end of the foreground interval 17,796 18,827
Of those, queued again 744 1,178
Rendered FPS in the 28-second foreground interval 22.27 21.67
Frame time p95 in that interval 57.82 ms 62.86 ms

All the baseline holds were in the bucket ending about 10.3 seconds after world entry. Both modes finished that startup pressure episode before the foreground interval, which began at world +27.3 s and +26.3 s. Each had zero upload holds in the complete measured buckets during that steady interval. The two opening captures of that interval show the same black forearm artifact in both modes.

This pair exercises both modes through brief startup pressure on the current gate. Treat the steady pacing and requeue differences as single-run measurements.

@andrewpozdnakov7-jpg

andrewpozdnakov7-jpg commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

I independently summed the 4060 Ti logs from a9980e6. The totals agree at 91,903 → 3,395 upload holds, with 16,503 → 29,613 sampled slots nulled and 1,732 → 5,551 later requeued.

One detail from the higher-frequency victory_gpu::resource line explains the five-second snapshots. At 11:10:10.653Z the KEPT=1 log explicitly says Evicting: yes and reports 20,345 host copies let go. The sampled-slot counter then increases by 22,045 by 11:10:14.375Z, although every periodic last look says not evicting. The burst was real and fell between those periodic observations.

The exact-head 5070 Laptop pair also removed the startup holds (9,722 → 0) and retained the same visible artifact. Taken together, the reports support earlier upload admission in these cases and leave the visual outcome unresolved. The 4060 Ti report of worse flicker is relevant to the default. A paired KEPT=0/1 repeat with VICTORY_SAMPLED_EVICT=0 would test whether that trade-off depends on sampled-slot eviction.

AI-assisted with OpenAI Codex.

@VectorMan896

Copy link
Copy Markdown

The paired repeat with VICTORY_SAMPLED_EVICT=0, on a9980e6, same 4060 Ti 8 GB and settings as my last comment, only KEPT changed. This time both runs are timed the same way. The launcher closes the game exactly 180 s after the log's first DLSS upscaling (the world's first frame): 180.5 s in both runs. The shader preload was skipped so the cache was identical, and commit free at the start was 26.8 GB in both.

VICTORY_SAMPLED_EVICT=0 KEPT=0 KEPT=1
held back for room (total) 135,956 141,405
Eviction looks that said evicting (5 s samples) 17 of 42 20 of 41
Texture-level slot_evict let go 0 0
Sampled slots nulled 0 (off) 0 (off)
Median / slowest 5 % rendered fps 15.2 / 9.2 15.8 / 9.4
Seconds under 10 fps 15 10
0x8007000E lines 5 3

Without the sampled pass, KEPT makes no difference to admission here. Eviction is on in about 40 % of the looks with either count. But the texture-level pass can't take anything, since every idle texture is shown by a slot shaders pick by index, so nothing is freed and the holds stay at 136–141k in both runs. So on this card everything the reserve counting changes goes through VICTORY_SAMPLED_EVICT. The worse flicker I saw with KEPT=1 belongs to the sampled pass running more often, not to KEPT on its own.

Flicker by eye: I couldn't reliably tell these two apart. I'm working on a way to measure it from the screen rather than by eye, and will post numbers if it gives usable ones.

Logs below.

@VectorMan896

Copy link
Copy Markdown

@andrewpozdnakov7-jpg

Copy link
Copy Markdown
Contributor

Thanks for the matched control. I checked the two attached a9980e6 logs independently. The effective VICTORY_* headers agree except for VICTORY_SLOT_EVICT_KEPT, and both say VICTORY_SAMPLED_EVICT=0.

With sampled eviction off, upload holds are 135,956 at KEPT=0 and 141,405 at KEPT=1. The active periodic looks are 17/42 and 20/41. Both logs have zero sampled-slot evictions. I found one ordinary texture-level retirement in the KEPT=1 log at 11:57:28 UTC, rounded to 0.0 MiB, with one slot put back to waiting. There were zero in KEPT=0.

The extra eviction looks therefore did not relieve upload holds in this control. In the earlier pair with sampled eviction on, the holds fell from 91,903 to 3,395 while sampled-slot requeues rose from 1,732 to 5,551. That makes the sampled-pass interaction relevant to the default. The texture-flicker result is still an observation from the earlier pair, and the frame timings here come from one run per setting.

SJTheGreat06 pushed a commit to SJTheGreat06/VIctory-NVIDIA that referenced this pull request Nov 30, 2026
…ard's use as the texture queue does (trustno1-coder#3829)


Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants