BC6H BCPack: 9 endpoint presets refitted on mip consistency #322

Manually merged
github merged 2 commits from gh-pr/322/head into gh-pr/322/base 2026-11-26 20:27:18 +00:00
Owner

@⁠holdmysocks on GitHub · 2026-11-25 23:42 UTC · original
holdmysocks:claude/bcpack-bc6-mipfit → master · +9 −9 · 1 files · 2 commits · merged 2026-11-26 00:36 UTC

Refits 9 BC6H endpoint preset slots (5, 66, 83, 85, 118, 135, 155, 200, 210).

Method. Each slot is fitted so its decoded blocks match the next mip of the same texture, per 2x2 quadrant in log2 RGB. The next mip can be stored plain or BCPack. Blocks whose reference starts at the same slot are skipped. The search is coordinate descent with joint moves. A slot is kept when it gains on both even and odd chunks, or by more than 20 % where its blocks sit in one half only. Slot 24 was dropped: its blocks are a single texture's mip 1, fitted against a mip that moved with it. That texture fell from 30.9 to 5.4 dB with slot 24 and goes to 66.8 dB without it.

Mip check of the 89 BCPack BC6H textures, master vs this table:

  • Under 20 dB: 4 -> 0
  • Under 25 dB: 18 -> 15
  • Median 29.2 -> 29.8 dB, mean 30.5 -> 31.6 dB
  • 8 textures better by more than 1 dB, none worse
  • Other formats: unchanged. One plain BC6H texture whose next mip is BCPack moves 32.9 -> 32.1 dB.

Slot 85, which the edge-continuity fit could not settle, is included. Values are fitted, not extracted.

Tests: cargo test -p sixng-core bc6pack passes.

**@⁠holdmysocks** on GitHub · 2026-11-25 23:42 UTC · [original](https://github.com/holdmysocks/SixNG/pull/322) `holdmysocks:claude/bcpack-bc6-mipfit` → `master` · +9 −9 · 1 files · 2 commits · merged 2026-11-26 00:36 UTC Refits 9 BC6H endpoint preset slots (5, 66, 83, 85, 118, 135, 155, 200, 210). **Method.** Each slot is fitted so its decoded blocks match the next mip of the same texture, per 2x2 quadrant in log2 RGB. The next mip can be stored plain or BCPack. Blocks whose reference starts at the same slot are skipped. The search is coordinate descent with joint moves. A slot is kept when it gains on both even and odd chunks, or by more than 20 % where its blocks sit in one half only. Slot 24 was dropped: its blocks are a single texture's mip 1, fitted against a mip that moved with it. That texture fell from 30.9 to 5.4 dB with slot 24 and goes to 66.8 dB without it. **Mip check of the 89 BCPack BC6H textures, master vs this table:** - Under 20 dB: 4 -> 0 - Under 25 dB: 18 -> 15 - Median 29.2 -> 29.8 dB, mean 30.5 -> 31.6 dB - 8 textures better by more than 1 dB, none worse - Other formats: unchanged. One plain BC6H texture whose next mip is BCPack moves 32.9 -> 32.1 dB. Slot 85, which the edge-continuity fit could not settle, is included. Values are fitted, not extracted. Tests: `cargo test -p sixng-core bc6pack` passes.
Each endpoint preset slot is fitted so its decoded blocks match the next
mip of the same texture per 2x2 quadrant (log2 RGB), whether that mip is
stored plain or BCPack. References rooted at the same slot are skipped.
Slot 24 was dropped: its blocks are one texture's mip 1, fitted against a
mip that moved with it, and that texture fell from 30.9 to 5.4 dB.

Mip check of the 89 BCPack BC6H textures: under 20 dB 4 -> 0, under 25 dB
18 -> 15, median 29.2 -> 29.8 dB; 8 textures better by more than 1 dB,
none worse. This includes slot 85, which the edge-continuity fit could not
settle.
A second mip-consistency round from the new table moves only slots 66 and
200. Mip check of the 89 BCPack BC6H textures against the first round: two
textures better (26.2 to 26.7 and 30.5 to 30.6 dB), none worse.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 20:27:16 +00:00
github manually merged commit de10329f82 into gh-pr/322/base 2026-11-26 20:27:18 +00:00
Author
Owner

@⁠holdmysocks on GitHub · 2026-11-26 00:03 UTC · original

Added a second fit round (de10329): slots 66 and 200 refined. Mip check against the first round: two BC6H textures better (26.2 -> 26.7 and 30.5 -> 30.6 dB), none worse. Totals against master are unchanged: under 20 dB 4 -> 0, under 25 dB 18 -> 15, 8 better, none worse.

**@⁠holdmysocks** on GitHub · 2026-11-26 00:03 UTC · [original](https://github.com/holdmysocks/SixNG/pull/322#issuecomment-7178354613) Added a second fit round (de10329): slots 66 and 200 refined. Mip check against the first round: two BC6H textures better (26.2 -> 26.7 and 30.5 -> 30.6 dB), none worse. Totals against master are unchanged: under 20 dB 4 -> 0, under 25 dB 18 -> 15, 8 better, none worse.
This discussion has been locked. Commenting is limited to contributors.
No description provided.