resource: a placed texture is made outside the table's lock #530
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!530
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-530"
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?
@cerealfordinner on GitHub · 2026-12-04 23:06 UTC · original
cerealfordinner:upstream-pr-placed-texture-outside-lock→main· +21 −3 · 1 files · 1 commits · closed without mergingTexture lookup takes the lock only to look; texture creation happens under a separate MAKING lock, cutting lock contention on the draw path. Small, self-contained fix.
@Kal0s-design on GitHub · 2026-12-05 00:59 UTC · original
For reviewers, this is the same change as
f84b643in #355, line for line (same commit author too), just on its own. I went through that commit on native Windows when re-checking #355. The second lookup underMAKINGstops a double make, and the insert, theplacedflag andPlaced::retainall happen beforePLACED_TEXTURESis let go, so the trim thread can't drop a fresh entry. The 8 threads by 48 keystexture_attest ended with one resource per key. So nothing new to add on the code. It's mostly a question of whether it lands here or with #355, since whichever goes second will conflict in resource.rs.AI-assisted: yes
Pull request closed