fix: let idle textures go from the texture queue's share (8 GB preset gap) #465
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!465
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-465"
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?
@KainanP on GitHub · 2026-11-27 00:11 UTC · original
KainanP:fix/vram-evict-room-percent→main· +180 −63 · 5 files · 2 commits · openFixes #449.
The bug, on the Vice-Tay base (
b6d86cf8)akimfomin re-checked it on #454's base and it is still there.
resource::room()refuses new host copies of textures once the card's use (the samecard_usecount in both places) reachesVICTORY_TEXTURE_ROOM_PERCENTof the budget. That is 85 % with the 8 GB preset.host::vram_keep()keeps idle copies for 600 s until a fixed 88 %. Between 85 and 88 % every new texture was refused while idle copies stayed for ten minutes.The change
vram_keep(budget, used, room_percent): letting go starts atmin(room_percent, 88)and comes down to 3 points below that start (the old 88 → 85 gap). The 95 % short-time line (1.5 s) stays.room()andlet_go_idle()now share onecard_use()count and oneunder_share()test, so admission and reclamation can't drift apart again.let_go_idle()aslet_go(all, idle_ms, most)with no change in behaviour, so a test can run it on one texture.Behaviour changes
VICTORY_TEXTURE_ROOM_PERCENTOnly the 8 GB preset (and anyone who sets a share below 88 by hand) behaves differently. On those setups idle copies of textures now go after 5 s from the moment the queue is refused. The cost is that a copy which goes and is needed again gets made and uploaded again. That trade is what needs measuring (below).
The 8 GB preset's 1024 texel cap (second commit)
akimfomin noted that Vice-Tay doesn't read the preset's
VICTORY_TEXTURE_MAX_SIZE=1024cap. I checked: nothing inthird_party/victoryreadsVICTORY_TEXTURE_MAX_SIZEor has amax_size. The cap came with the Neptune base (9e878913) and only worked throughVICTORY_LEVELS_ON_DEMAND=1, which Vice-Tay's tuned set doesn't set. Wiring it back would mean porting that feature and changing image quality on a base where nobody has measured it. I chose the honest option instead: the 8 GB and 12 GB presets no longer set the variable, and their descriptions anddocs/launcher.md(plus the French page) no longer promise capped textures.every_variable_an_option_names_exists_in_victorys_sourcesnow runs without itsUNREAD_BY_VICE_TAYexception. This changes no runtime behaviour, because the variable was unread. The doc line also dropped the stale "256 MB list pool" (Vice-Tay reads no list pool variable, and the preset doesn't set one).Tests (rule 5)
resource::tests::an_idle_copy_goes_once_the_texture_queue_is_refusedfollows akimfomin's suggestion and runs on the host device. It makes a 256×256 BC7 host copy that its title texture alone holds: no list, no slot, never submitted, so its fence is done. Its last use is backdated past 5 s and 4 frames. Only the usage row changes (card_usefixed by construction, 6,823 MiB budget as in #396, share 85):resource::tests::a_refused_queue_never_keeps_idle_copies_for_minutes: for every share from 50 to 97 and every use from 0 to 110 %, ifroomrefuses, the sweep lets idle copies go within 5 s.host::batch::textures_go_from_where_the_queue_is_refused:vram_keeprows at shares 85 and 50.textures_are_kept_while_the_card_has_roomnow checks the old rows at 88, 90 and 97 to show nothing changed there.vram_keepforced back to the fixed 88 % start, the three new tests fail. The device test gets(false, true)at 86 %: refused, and the copy is kept.Run here (RTX 4060 Laptop GPU, Intel UHD iGPU, WARP):
cargo test -p victory-gpu --lib --release --features diagnostics, RTXwatch.rswrite-watch timing test (no_write_is_lost_with_port_7,what_the_kernel_writes_through_is_not_guarded_for_another_view), each passing on rerun. One run hung and was killed after 9 minutes; 25 later runs with a 90 s timeout didn't reproduce it.watch.rsisn't touched here, and main shows the same kind of failure (nothing_is_guarded_between_our_forgetting_it_and_its_unmapping, 1 in 112 runs), but the rate here was higher, so I'm flagging it rather than calling it noiseVICTORY_D3D12_ADAPTER=IntelVICTORY_D3D12_WARP=1cargo test -p anyxboxx-launcher --releasecargo clippyvictory-gpu (lib + tests) / launcheroverlay.rsis_multiple_ofone as main)cargo xtask policycargo build --release --workspace --exclude anyxboxx-launcher(CI step)W605,F,E9), pytesttest_launcher,test_site,test_readme_sync,test_launch,test_lanceur_victoryAsking for an A/B on an 8 GB card
I don't have an 8 GB card. Could someone who owns one (an RTX 5060 8 GB like #396's, or similar) run the 8 GB preset on
mainand on this branch? The useful numbers are the ones listed in #449's "done when": texture refusals, local and non-local memory in use, how many textures are let go and made again (sweep:trail lines, card accounting), and frame times (VICTORY_FRAMETIME_DUMP=1). The risk to watch for is a let-go/re-upload cycle between 82 and 85 %.Credit: FunWithFlagsDev for the analysis in #449, and akimfomin for re-checking it on the Vice-Tay base, spotting the unread cap and proposing the test.
AI use: code, tests and this description written with Claude Code; tests run locally on RTX, Intel UHD and WARP; nothing was run in game.
🤖 Generated with Claude Code
@akimfomin on GitHub · 2026-11-27 01:01 UTC · original
Your 84/86/88 regression now gives the receiving team a runnable 86% failure case, and the unread cap is no longer advertised. I checked the exact #465 head
f9e4260against current main4340aac; the Git merge is clean.For the 8 GB A/B you asked for, PortBridge Test Lab #107 has the exact pair, the host synthetic control, and the eviction/recreation counters needed to check the 82–85% churn risk. A volunteer can give the link to their agent and send aggregates. We can return the attributed result here. The report distinguishes your existing test coverage from this outstanding timing question.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.