The views table is a read-write lock: list recorders only read it #18
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/DexNom--VIctory!18
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-18"
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?
@Daayben on GitHub · 2026-11-25 18:38 UTC · original
Daayben:pr/views-rwlock→main· +13 −9 · 1 files · 1 commits · opendescriptor::VIEWSbecomes aRwLock. List recorders read it for every descriptor they bind. Belobug's PIX timing capture showed the title's five recording threads taking turns on the mutex, at 6,600 context switches a second each.Read lock:
view,view_at(table entries andplaced_of),views_kept, and the two lookups in the tests.Write lock:
words_for(shape()may add a shape,entry()an entry) andforget.Adapted from Belobug/VIctory-Belobug-AMD ff920f2 (beloooo, credited as co-author). This tree's table has shapes and placed views that the original did not, so the patch does not apply as is.
Measured effect: Belobug saw no frame-time change from this alone (4.2 to 5.8 fps either way). The submit thread is the limit there. I have not measured it in the game.
Checked on Windows 11, RTX 4090, i9-10900F:
cargo clippy --workspace --all-targets --locked -- -D warnings, and the same with--all-features: cleancargo test --workspace --locked: 634 passed, 0 failed, 11 ignoredcargo test --locked --release -p victory-gpu: 188 passed, including the 23descriptortests🤖 Generated with Claude Code
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.