fix: slots that keep showing an older texture give it up when the card has no room (VICTORY_KEPT_VIEWS_YIELD) #381
No reviewers
Labels
No labels
accessibility
bloqué : binaire console
bug
chargeur
console-dll
cpu
documentation
duplicate
enhancement
good first issue
gpu
help wanted
invalid
performance
question
runtime-gdk
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/LooperSalty--AnyXboxX!381
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-381"
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?
@Skyfrye on GitHub · 2026-11-26 14:22 UTC · original
Skyfrye:nep/kept-views-yield→main· +99 −2 · 3 files · 2 commits · merged 2026-11-26 17:55 UTCChange
VICTORY_KEPT_VIEWS_YIELD=1(off by default: unset runs today's code).A slot written with a newer view of a texture, or a view of another texture, keeps showing the older one until the texture queue makes the newer one. That is what
VICTORY_KEEP_VIEWSandVICTORY_KEEP_OTHER_VIEWSdo, both on by default, so that the slot does not read as black meanwhile. For that time the slot holds the older host copy.With the card full, the queue is refused, so the newer view is never made and the older copy is never let go. A full card stays full this way. In the world of the title this fork works on (RTX 5080, Series X), the ram line showed about 3 GB of the card as "filled idle but held" while uploads of the queue were refused ("the texture queue is refused, the card has no room").
With the switch:
HostHeap::keeping, cleared whenever the slot's held resource changes);HostHeap::yield_kept_views);The frame log's placed-view line gains the slots keeping an older texture now and those made null so far.
Linked issue: none.
Verification
Windows 11 26300, Rust 1.98.1 (MSVC), on upstream
mainatb5a9d10(no file of this PR changed up to369bfa4), fromthird_party/victory:slots_keeping_an_older_texture_give_it_up_for_roomcovers three cases:It does not build without the change.
In the world, my copy of the game, Series X,
VICTORY_INDIRECT_RAW=3, runs of 600 s with screen captures every 15 s. The build stacks this PR with #354, the placed-view fix #382 and the open #278, #279, #291, #292, #307, #360-#362 onmainat8ed1109.VICTORY_TEXTURE_AUTO_MIP_CLAMP=auto, #382 andVICTORY_STAGE_POOL_MB=2048Oracle and test data
No game file. The counts come from my own runs of my copy of the game.
Checklist
E_NOTIMPL), never a fake success. (Nothing unimplemented here.)AI assistance: written with Claude Code (Claude Opus 5.5): the analysis of the card's memory, the change, its test, the game runs and this description.
🤖 Generated with Claude Code