Skip to content

feat(overlay): reserve TOC slack - #289

Merged
Crauzer merged 3 commits into
mainfrom
feat/overlay-toc-slack
Oct 1, 2026
Merged

Crauzer merged 3 commits into
mainfrom
feat/overlay-toc-slack

Conversation

@Crauzer

@Crauzer Crauzer commented Oct 1, 2026 •

Copy link
Copy Markdown
Member

TOC_SLACK_ENTRIES = 16384 (512 KiB per WAD). A full build reserves that many TOC slots past the entry count. A WAD whose entry count changes within the capacity takes the tail rewrite and keeps its source region.

Requires ltk_wad 0.5.8 (LeagueToolkit/league-toolkit#266: admits_entry_count accepts any count <= capacity).

Largest new-entry count seen for one mod on one WAD: about 1650.

Bench, Map11, one added chunk: 9-15 s -> 0.32 s. In game: fresh 16384-slot build, in-place add (UI.wad.client, 171 ms build), in-place removal (180 ms build).

Tests: slack reserved past the entry count, add and remove as tail rewrites.

@Crauzer
Crauzer marked this pull request as ready for review October 1, 2026 15:22
@Crauzer
Crauzer merged commit 7a6712d into main Oct 1, 2026
6 checks passed
@Crauzer
Crauzer deleted the feat/overlay-toc-slack branch October 1, 2026 15:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant