diff options
| author | NotRexed <therealnothingfn@gmail.com> | 2026-11-30 06:10:50 -0500 |
|---|---|---|
| committer | NotRexed <therealnothingfn@gmail.com> | 2026-11-30 06:10:50 -0500 |
| commit | 3472e6e6a5942c203d0cd7eb7a25f15c1b988a25 (patch) | |
| tree | 1d8fd5f072ba38e0beb86aa8018cf0e4e3d6d548 /docs/coder.md | |
| parent | 139bfb21f3863c7efb60df768ff19360428612da (diff) | |
Placed textures found before are found again in 64 tables under shared locks (LEONIDA_PLACED_SHARDS)
The six list threads looked every placed view of every table up in one map of 69,000 textures behind one lock
(a 60-byte key, a tree of some 16 levels): of their waits for contended locks, 55 % were under placed_texture
(profile list-d207; view_cast_serial alone 34 %), and in diagnostics builds the count of filler twins took a
second lock and a tree's search on most calls. texture_at now looks in one of 64 hash tables read under a shared
lock first, and fills it under the map's lock (never taken under a table's); the map keeps its resources for the
run, so what a table holds stays true. The twins are counted with it on only with LEONIDA_PLACED_TWINS=1. On unless
LEONIDA_PLACED_SHARDS=0; LEONIDA_AB can switch it.
AI-assisted (Claude). Tested on an RTX 4060 Ti, driver 616.64 (Windows 11): built; measured by turns next.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'docs/coder.md')
0 files changed, 0 insertions, 0 deletions