host: base in-block texture eviction idle time on net occupancy #164
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!164
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-164"
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?
@eirik200 on GitHub · 2026-12-02 05:42 UTC · original
eirik200:pr/texture-eviction-room-ms→main· +69 −4 · 2 files · 1 commits · merged 2026-12-02 19:52 UTCSummary
vram_plancomputedroom(bytes to evict inside staying texture blocks) from net occupancy (settled - free + kept), but still used the grossidle_msfrom whole-card occupancy (settled + kept) when deciding how long a texture had to be idle.When the card sat around 88% gross with 6–12% free inside our own 64 MiB texture blocks, in-block textures were evicted after 2 s idle instead of 4 s (or kept for 10 min when net occupancy was under 80%).
Changes
Keepto carry a dedicatedroom_ms(room_ms >= idle_ms) derived fromvram_keep(budget, settled - free + kept)when admissions are open.keep.room_msinresource::let_go_idlefor in-block eviction; whole-block release (back) continues to use grossidle_msso blocks still return to the card before admissions close.room_in_blocks_goes_by_what_textures_holdcovering net vs gross thresholds and closed admissions.Testing
JOBS=6 ./build.sh checkpasses cleanly.@joaowtrdev on GitHub · 2026-12-02 12:39 UTC · original
Tested on an RX 9070 XT 16 GB / Ryzen 7 5700X3D / 32 GB (CachyOS, KDE Wayland, system Wine 11.22). Settings: 4K output, FSR 4 Performance, RT off,
VICTORY_CARD_PULL=0 VICTORY_PAGES_SEEN=1,VICTORY_ROOM_TIMING=1. It is an A/B:d044248with this PR and #163 applied, against plaind044248. Same save and route, ~5 min each, back-to-back. VRAM sits at 88–91% of the budget while driving, so the new path is exercised.d044248room_ms > idle_msreuseat the endtexture_mbper frameIt does what it says: textures are used again 13% less after being let go, and 55% fewer are refused for room. On this machine, the frame rate does not change beyond run-to-run noise. The run with the PRs also streamed more new textures per frame (8.8 vs 7.4 MB). Both builds still let go ~180k textures in 5 min, so here the drops seem to come from the streaming volume itself (see #159). The two PRs were tested together, so this does not separate #163 from #164.
VICTORY_FFX_SCALEabove 2/3 crashes (int3) as soon as gameplay starts, withVICTORY_FSR_HOST=1#140@csj0oe on GitHub · 2026-12-02 18:51 UTC · original
8 GB RX 7600 XT / Ryzen 5 5600G field result, with FSR off (title's built-in scaler at 0.5, 1080p output).
Build:
241c79e+ this commit. After the intro reached the world:Two runs on the same setup without the commit showed ~68k-73k copies / 5.5-6.1 GB at a similar point, but that is not a controlled A/B — different scenes and loading states. The useful part is that the new reuse path is active on an 8 GB card, and the churn is substantially lower in this run. FPS was 20-33 depending on the scene; no crash.
Texture popping is still visible on 8 GB, so this helps but does not eliminate it here.