BC7 BCPack: colour of 39 endpoint presets fitted on mip consistency #284

Manually merged
github merged 1 commit from gh-pr/284/head into gh-pr/284/base 2026-11-26 20:24:29 +00:00
Owner

@⁠holdmysocks on GitHub · 2026-11-25 14:52 UTC · original
holdmysocks:claude/bcpack-bc7-colour → master · +39 −39 · 1 files · 1 commits · merged 2026-11-25 15:27 UTC

Colour (R, G, B) entries of 39 BC7 endpoint preset slots, fitted the same way as the alpha entries in #230 to #266: per slot, coordinate descent against the 2x2 mean of the next smaller mip, now with joint endpoint moves. Only the table changes.

The fit proposed 48 slots; a root lookup per texture showed that nine of them (1, 3, 6, 12, 88, 99, 107, 147, 203) caused all of the regressions, so they are left out.

Full mip check of the 1,433 BCPack BC7 textures:

  • alpha unchanged for every texture
  • colour better on 132 textures, worse on 5 (only one by more than 1 dB: 38.1 to 36.9 dB)
  • colour under 20 dB: 17 to 14 textures; under 25 dB: 42 to 33; under 30 dB: 67 to 53
  • largest gains: 16.6 to 49.3 dB, 12.7 to 37.9 dB, 8.9 to 22.3 dB

Tests: run by CI.

**@⁠holdmysocks** on GitHub · 2026-11-25 14:52 UTC · [original](https://github.com/holdmysocks/SixNG/pull/284) `holdmysocks:claude/bcpack-bc7-colour` → `master` · +39 −39 · 1 files · 1 commits · merged 2026-11-25 15:27 UTC Colour (R, G, B) entries of 39 BC7 endpoint preset slots, fitted the same way as the alpha entries in #230 to #266: per slot, coordinate descent against the 2x2 mean of the next smaller mip, now with joint endpoint moves. Only the table changes. The fit proposed 48 slots; a root lookup per texture showed that nine of them (1, 3, 6, 12, 88, 99, 107, 147, 203) caused all of the regressions, so they are left out. Full mip check of the 1,433 BCPack BC7 textures: - alpha unchanged for every texture - colour better on 132 textures, worse on 5 (only one by more than 1 dB: 38.1 to 36.9 dB) - colour under 20 dB: 17 to 14 textures; under 25 dB: 42 to 33; under 30 dB: 67 to 53 - largest gains: 16.6 to 49.3 dB, 12.7 to 37.9 dB, 8.9 to 22.3 dB Tests: run by CI.
Same fit as for alpha, with joint endpoint moves, applied to the R, G and
B entries. Nine slots that made textures worse are left out. Full mip
check of the 1,433 BCPack BC7 textures: alpha unchanged, colour better on
132 textures and worse on 5 (only one by more than 1 dB, 38.1 to 36.9);
colour under 25 dB 42 to 33, under 30 dB 67 to 53, under 20 dB 17 to 14.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 20:24:25 +00:00
github manually merged commit c00554c488 into gh-pr/284/base 2026-11-26 20:24:29 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.