BC1 BCPack: preset window checked per texture, 20 slots replaced #154
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/holdmysocks--SixNG!154
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/154/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@holdmysocks on GitHub · 2026-11-24 13:26 UTC · original
holdmysocks:claude/bcpack-bc1-window2→master· +18 −7 · 1 files · 1 commits · merged 2026-11-24 13:40 UTCFollow-up to #126. Only
bc1pack_tables.rschanges.The plain references of a preset slot come from few textures (often under 50), so one large texture could decide a slot. Every texture now counts once, and a value is kept only if it wins on held-out textures.
Mip check of 35,533 BCPack BC1 textures, against the default window:
Largest loss 4.3 dB (one texture), largest gain 31.8 dB. Three-colour blocks that use index 3 on preset-rooted chains (5 % sample): 121,918 to 50,334.
The commit message gives the counts of an earlier run (1,834 / 81, on 33,993 textures of one pixel format); the table above is the measurement of this exact window on both BC1 formats.
Tests: decoder tests pass.