vkback: no texture provider call or SipHash per descriptor slot #267
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/vktory6--VKtory!267
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-267"
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?
@Flezzonkeys on GitHub · 2026-12-02 19:04 UTC · original
Flezzonkeys:slot-path-lean→main· +3 −12 · 4 files · 1 commits · openWhat
Takes two pieces of counter work off the descriptor slot path (docs/TASKS.md "Renderer CPU: index slots"). 3 lines added, 12 removed, no change to what is written.
TextureInfoclone or a fullTextureInfo::build, umem query) to learn whether the texture is linear. Its question is answered: no view of a single level in #152's house and boat runs, and none in three play sessions here (one level 0, several 6167 / 5668 / 3634). So the split shapes in "Linear textures with mipmaps are not bound in place" cannot serve these views.Arena::held_newandArena::freshusecrate::fx, like the crate's other per-op maps.held_read(#236) asksheld_newat every slot read andhold_newasksfreshat every image slot write; both used std's SipHash.The reference
No counterpart: both are our own bookkeeping.
Evidence
Ryzen 7 9800X3D, RX 9070 XT, CachyOS, Proton Experimental.
88d66aeplus a local counter, free play, 67 windows of 60 presents with at least 5,000 recorded draws/dispatches a frame): ~368k slot reads a frame, 37 % of them while a slot was held, so with a non-emptyheld_new. ~65k placed and resource SRV slots written a frame.held_newlookup, set not emptymaporder::check_all). Placed slot writes went from 135 to 119 ns and resource SRV writes from 172 to 143 ns, but kinds it does not touch also got about 12 % faster, so part of that is the run. My estimate is about 1 ms of renderer CPU a frame. The heavy scenes here are at 45-50 ms GPU, which hides it.88d66aedid not have. Slot reads took 38.8 ns each (allslot_readstime over all reads) against 46.3 ns on plain88d66ae: single runs on different routes, so not a proof. Renderer CPU per recorded draw/dispatch was not lower (3.49 against 3.32 ms per 1,000).--all-targets -D warningsclean.Checklist (docs/AGENTS.md)
docs/TASKS.mdnot edited, the fixed item named above (rule 29)unsafeblock has a// SAFETY:comment; no raw pointer around the borrow checker (rule 36)TRANSLATOR_VERSIONbumped if the translator's output changes (rule 27)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.