BC1 BCPack: 19 more preset window slots fitted on mip consistency #321

Manually merged
github merged 1 commit from gh-pr/321/head into gh-pr/321/base 2026-11-26 20:27:13 +00:00
Owner

@⁠holdmysocks on GitHub · 2026-11-25 23:08 UTC · original
holdmysocks:claude/bcpack-bc1-mipfit → master · +28 −2 · 2 files · 1 commits · merged 2026-11-25 23:19 UTC

Adds 19 slots to the BC1 BCPack preset window and refits one existing slot (192). That makes 39 overrides.

Method. Each slot is fitted so its decoded blocks match the next mip of the same texture, per 2x2 quadrant. Blocks whose reference mip starts at the same slot are skipped. A slot is kept only where the fit gains on both even and odd chunks. A first whole-install check traced all 42 regressions to slot 214, and a second traced 3 of 5 to slot 157, so both were dropped.

Mip check over all BC1 BCPack textures (35,533), master vs this table:

  • Under 20 dB: 138 -> 72
  • Under 25 dB: 603 -> 491
  • Better by more than 1 dB: 321 textures. Worse: 2 (by 1.6 and 1.2 dB).
  • Plain textures and all other formats: unchanged.

The values are fitted, not extracted, so output is still not byte-exact.

Tests: cargo test -p sixng-core bc1pack passes (no duplicate slots, valid field ranges, window differs only in overridden slots).

**@⁠holdmysocks** on GitHub · 2026-11-25 23:08 UTC · [original](https://github.com/holdmysocks/SixNG/pull/321) `holdmysocks:claude/bcpack-bc1-mipfit` → `master` · +28 −2 · 2 files · 1 commits · merged 2026-11-25 23:19 UTC Adds 19 slots to the BC1 BCPack preset window and refits one existing slot (192). That makes 39 overrides. **Method.** Each slot is fitted so its decoded blocks match the next mip of the same texture, per 2x2 quadrant. Blocks whose reference mip starts at the same slot are skipped. A slot is kept only where the fit gains on both even and odd chunks. A first whole-install check traced all 42 regressions to slot 214, and a second traced 3 of 5 to slot 157, so both were dropped. **Mip check over all BC1 BCPack textures (35,533), master vs this table:** - Under 20 dB: 138 -> 72 - Under 25 dB: 603 -> 491 - Better by more than 1 dB: 321 textures. Worse: 2 (by 1.6 and 1.2 dB). - Plain textures and all other formats: unchanged. The values are fitted, not extracted, so output is still not byte-exact. Tests: `cargo test -p sixng-core bc1pack` passes (no duplicate slots, valid field ranges, window differs only in overridden slots).
Each slot is fitted so decoded blocks match the next mip of the same
texture per 2x2 quadrant, skipping references rooted at the same slot.
Kept are slots that gain on both even and odd chunks; slots 214 and 157
were dropped after a whole-install check traced regressions to them.

Mip check over all BC1 BCPack textures (35,533): under 20 dB 138 -> 72,
under 25 dB 603 -> 491; 321 textures better by more than 1 dB, 2 worse
(by 1.6 and 1.2 dB). Plain textures and other formats are unchanged.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 20:27:11 +00:00
github manually merged commit a5f875e5b5 into gh-pr/321/base 2026-11-26 20:27:13 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.