BC7 BCPack: refine the preset tables against plain reference mips #40

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

@⁠holdmysocks on GitHub · 2026-11-23 05:37 UTC · original
holdmysocks:claude/bc7-refine → master · +190 −190 · 1 files · 2 commits · merged 2026-11-23 12:17 UTC

Refines the fitted BC7 preset tables. Only bc7pack_tables.rs changes.

Method.

  1. Per-field descent over every preset slot, scored on the blocks each slot roots in the 1,029 chunks that have a plain neighbour mip.
  2. Arbitration: every changed field is checked on all 1,433 BC7 textures (mip 0 against mip 1) and falls back to its previous value where that is better (166 endpoint and 58 index fields).

Result.

  • Reference score: 1,163,847 -> 1,263,337 good blocks.
  • Whole-install check of mip 0 against mip 1: textures under 20 dB fall from 6.7 % to 2.0 %; mean 33.4 -> 35.1 dB; 300 textures gain more than 1 dB, 7 lose more than 1 dB (worst -8.1 dB).
  • The 18 library tests pass.
**@⁠holdmysocks** on GitHub · 2026-11-23 05:37 UTC · [original](https://github.com/holdmysocks/SixNG/pull/40) `holdmysocks:claude/bc7-refine` → `master` · +190 −190 · 1 files · 2 commits · merged 2026-11-23 12:17 UTC Refines the fitted BC7 preset tables. Only `bc7pack_tables.rs` changes. **Method.** 1. Per-field descent over every preset slot, scored on the blocks each slot roots in the 1,029 chunks that have a plain neighbour mip. 2. Arbitration: every changed field is checked on all 1,433 BC7 textures (mip 0 against mip 1) and falls back to its previous value where that is better (166 endpoint and 58 index fields). **Result.** - Reference score: 1,163,847 -> 1,263,337 good blocks. - Whole-install check of mip 0 against mip 1: textures under 20 dB fall from 6.7 % to 2.0 %; mean 33.4 -> 35.1 dB; 300 textures gain more than 1 dB, 7 lose more than 1 dB (worst -8.1 dB). - The 18 library tests pass.
Per-field descent over every endpoint and index preset slot, scored on the
blocks each slot roots in chunks that have a plain neighbour mip. 185 endpoint
and 54 index slots change. Reference score 1,163,847 -> 1,264,377 good blocks.
Whole-install check of mip 0 against mip 1 (1,431 BC7 textures): textures
under 20 dB 6.7 % -> 2.5 %, 283 gain more than 1 dB, 64 lose more than 1 dB.
The refinement only saw chunks with a plain neighbour mip. Each changed field
is now checked on all 1,433 BC7 textures (mip 0 against mip 1) and falls back
to its previous value where that is better: 166 endpoint and 58 index fields.
Reference score 1,263,337 (refined 1,264,377, before 1,163,847). Textures
under 20 dB: 2.0 % (refined 2.5 %, before 6.7 %). Textures losing more than
1 dB against the tables before the refinement: 7 (was 64).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 20:05:03 +00:00
github manually merged commit 0983ba9984 into gh-pr/40/base 2026-11-26 20:05:05 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.