descriptor: a waiting slot keeps the texture it shows, whatever the room #503
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/lobomfz--VIctory-xmem!503
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-503"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@YaBulochka on GitHub · 2026-12-04 19:37 UTC · original
YaBulochka:pr/keep-shown→main· +4 −4 · 1 files · 1 commits · merged 2026-12-04 20:32 UTCProblem
A slot whose texture is not shown yet falls back to the neutral texture unless
resource::room_lately()lets it keep the previous one:With the texture line at 86–93 % of the card's budget (what a full 8 GiB card runs at)
room_lately()is false most of the time, so waiting slots show neutral gray for a frame or two and then the texture. On a small card that is a constant flicker between the old picture and gray.Change
Keep the shown texture for the wait in all four places, regardless of the room. Nothing else changes: the reasons a slot goes neutral, the pool, the residency.
Measured (same world, same save, log level info)
Of the slots shown after their texture's upload, the neutral texture was shown meanwhile in:
The neutral-reason counters are unchanged (all
new slot), so this does not change why a slot waits, only what it shows while it does.Test PC: RX 7600 XT 8 GB, RADV, Series S, FSR host. Visually the flicker between the old picture and gray went from constant to occasional.
Cost
A waiting slot holds its previous texture for the wait, so one more texture per waiting slot stays alive. The pool's
stayingaccounting still decides when a block retires; on the same runs the texture-block count and the VRAM line did not move beyond their usual spread.@t-jonesy on GitHub · 2026-12-05 14:19 UTC · original
A data point for anyone tempted to raise
KEEP_SHOWNto 2 (keep the old view forKin::Othertoo): we did that in a fork, and it showed another material's texture for a frame or two.What we ran. Our fork kept a waiting slot's old view for any texture of the same dimension, whatever the room. That is #503's change plus
Kin::Other. On an RX 9070 XT at 89-94% of the texture budget it gave a one-frame artefact:downtownroute. Shots before and after were always clean.The counters say most kept slots are another texture. Main's since-start line (
slots that showed a texture and were written with another …) read, after 15,000 rewrites on the route:So about 82% of the rewrites of a shown slot are
Kin::Other. WithKEEP_SHOWN = 2all of those keep showing the previous, unrelated texture until the new upload runs. Our format-family check did not stop it: BC1/BC3/BC7 and RGBA8 are all the same channel class, and it refused only 2-5 per 5 s against 1.5-6.7k kept.What it means for main. Main's rule (
Kin::Same, andMoved/SizedwithKEEP_SHOWN = 1) keeps only the same image. The ~82%Othershare is probably also part of why #503's measured neutral share fell to 55% and not lower: those slots still show the neutral grey for a frame. A frame of grey is much less visible than a frame of another material, so we are testing main's rule again in our fork. Our first visual A/B was inconclusive, so we can't yet say main's rule removes the garbage entirely. A second, rarer variant could be a kept view whose host copy is uploaded again after the title reused its memory with the same start and length but another format.If someone wants to shorten the
Othergrey frame, the option we would look at is to show the new texture's smallest uploaded levels at once, rather than the old texture.