Invalidate cached buffer lookups at registration and idle sweep #1245
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/fxceless--victory-fork!1245
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1245"
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?
@UwUCammie on GitHub · 2026-11-26 01:46 UTC · original
UwUCammie:fix/upstream-shadow-publication→main· +108 −25 · 1 files · 2 commits · openThis follows the lookup cache imported in
32be36d. Registration could publish its new generation while a recording thread could still see the old table. A lookup could also upgrade a weak reference to a loose window after the idle sweep removed it and before it dropped its last reference.Registration now publishes under the table lock after insertion. A cached loose window is checked against the window table and marked in use under the same lock as the idle sweep. Registered-buffer hits keep their fast path. The existing
0,1andaltmodes stay available.Both focused regressions fail on the original contributor branch and pass with these fixes under Wine 11.22 on the RX 7900 XT (RADV 26.3.1). The registration case uses no GPU. The sweep case uses a synthetic window. The patch also builds against
7496a4c.Four first-room pairs on the patched contributor branch gave 6.02 FPS with the cache off and 6.01 with it on, with 132 million cached lookups in the enabled blocks. Those measurements compare the switch settings on the patched binary. Run details · Contributor PR
@UwUCammie on GitHub · 2026-11-26 01:47 UTC · original
I also ran the two tests on this PR head (
7b42ef2) on the RX 7900 XT. Both passed in three separate-process pairs and in three grouped runs. One Wine process per pair cut the median wall time from 9.71 to 4.92 seconds. Exact command and timingsView command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.