Descriptors: search dynamic slots a word at a time #1294
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1297"
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?
Imported from fxceless/victory-fork. Originally posted by HenriqueSBueno on 2026-11-26T12:23:43Z.
The dynamic slot ring is a
Vec<bool>walked one slot at a time under the lock every recording thread takes. On NVIDIA, view heaps stop at 1,000,000 views, so 2^18 dynamic slots fit; when they fragment, every table that finds no run walks the whole ring before it is refused (the cost runs 299–300 point at).Takenkeeps one bit per slot and skips whole free or whole taken 64-bit words. The search keeps both parts of4d0c6345(fromnexton, then from the start and on pastnextby n − 1) and theDYNAMIC_WHY[3]count of runs found acrossnext.Measured on an RTX 3080 (10 GB) / i5-10400F, a 9-minute run, on an AMD-fork base that has the same ring:
A new test checks
Takenagainst the slot-at-a-time search on random patterns across word ends; the existing dynamic-slot tests pass. Clippy is clean with and withoutdiagnostics.On why the ring fills: on that AMD-fork base, counters of slots given out / back showed ~239,000 of 262,144 slots held while a frame takes ~38,000 — landed flights kept their lists, and with them their table slots, for a 64-submission bury lag. Giving table slots back at landing took refusals from ~2,300 a frame to 0 there (avatarmanz/VIctory-7900XTX#237). This tree has no such lag, so the cause here may differ, but the counters may help.
AI-assisted (Claude Code)
Imported from fxceless/victory-fork. Originally posted by slauko on 2026-11-26T13:29:47Z.
Ported to a Linux/Wine line (RTX 3080 Ti, vkd3d-proton
ec20719, uiliannn's base) and it earns its keep there, smaller than on your RTX 3080 because this line's ring is used differently:(three runs each side, same build otherwise:
m44/m45againstm47; the frame number sits inside this line's run-to-run spread of 210–272, the preparing number does not.)The
Takenunit test came over too (word-at-a-time against slot-at-a-time, 400 random patterns across word ends). It compiles under thexwintarget; this Linux host cannot buildvictory-gpu's tests at all, so the in-game A/B is the evidence here.One note for the next porter: the recipe on this line asks for
VICTORY_DYNAMIC_SLOTS=524288, twice the ring your numbers use, and the search only walks when a table finds no run — so the win is the refused tables' walk, not the common case.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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.