BC5 and BC6H BCPack: fit the last preset slots #21

Manually merged
github merged 1 commit from gh-pr/21/head into gh-pr/21/base 2026-11-26 20:03:33 +00:00
Owner

@⁠holdmysocks on GitHub · 2026-11-23 00:30 UTC · original
holdmysocks:claude/bcpack-last-slots → master · +32 −32 · 3 files · 1 commits · merged 2026-11-23 00:53 UTC

A decode of every BCPack chunk in the install (108,605 chunks, all six codecs) fails on none. This PR removes the remaining unfitted blocks in BC5 and BC6H; only generated table files and two README sentences change.

BC5 (1,811 blocks in 18 chunks, mostly texture arrays with no neighbour mip): the 13 missing preset slots are fitted by edge continuity. Endpoints are prediction + residual mod 256 along the reference chain, so a slot's value is the offset that makes the blocks rooted at it continuous with their neighbours. The large slots land at about 6/255 per edge pixel.

BC6H (81 K blocks, 1.7 %): 15 endpoint slots are fitted against the next smaller mip; the last 2 (three lighting textures stored as mip 0 only) by edge continuity. The largest of those textures (1024x1024) renders as a smooth glow with no seams.

Unfitted blocks after this PR: BC1 0, BC3 0, BC4 0, BC5 0, BC6H 0. BC7 still has 1.05 % (34 endpoint slots), which a follow-up will address.

Scores against plain neighbour mips are unchanged (BC6H 87.7 % of blocks within 0.15 stops, 28.1 dB). Library tests pass.

**@⁠holdmysocks** on GitHub · 2026-11-23 00:30 UTC · [original](https://github.com/holdmysocks/SixNG/pull/21) `holdmysocks:claude/bcpack-last-slots` → `master` · +32 −32 · 3 files · 1 commits · merged 2026-11-23 00:53 UTC A decode of every BCPack chunk in the install (108,605 chunks, all six codecs) fails on none. This PR removes the remaining unfitted blocks in BC5 and BC6H; only generated table files and two README sentences change. **BC5** (1,811 blocks in 18 chunks, mostly texture arrays with no neighbour mip): the 13 missing preset slots are fitted by edge continuity. Endpoints are prediction + residual mod 256 along the reference chain, so a slot's value is the offset that makes the blocks rooted at it continuous with their neighbours. The large slots land at about 6/255 per edge pixel. **BC6H** (81 K blocks, 1.7 %): 15 endpoint slots are fitted against the next smaller mip; the last 2 (three lighting textures stored as mip 0 only) by edge continuity. The largest of those textures (1024x1024) renders as a smooth glow with no seams. Unfitted blocks after this PR: BC1 0, BC3 0, BC4 0, BC5 0, BC6H 0. BC7 still has 1.05 % (34 endpoint slots), which a follow-up will address. Scores against plain neighbour mips are unchanged (BC6H 87.7 % of blocks within 0.15 stops, 28.1 dB). Library tests pass.
BC5: the 13 preset slots no neighbour mip could fit (1,811 blocks in 18
chunks, mostly texture arrays) are fitted by edge continuity: endpoints
are prediction + residual mod 256, so the slot value is the offset that
makes the blocks rooted at it continuous with their neighbours.

BC6H: 15 endpoint slots are fitted against the next smaller mip, and the
last 2 (three lighting textures stored as mip 0 only) by edge continuity.

A decode of every BCPack chunk of the install (108,605 chunks) now leaves
no unfitted block in BC1, BC3, BC4, BC5 and BC6H. Scores against plain
neighbour mips are unchanged.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 20:03:31 +00:00
github manually merged commit 307e5e101c into gh-pr/21/base 2026-11-26 20:03:33 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.