ws-tex: Bcn BC4 / BC5 encoder: a smaller endpoint nudge search (3.7x faster, PSNR within 0.4 dB)

This commit is contained in:
4DBug committed 2026-10-31 15:43:32 -05:00
1 parent 918c8310af
commit 50d856ac4a
1 file changed
+2 -2
+2 -2
View File
@@ -333,8 +333,8 @@ local function channelBlock(out: buffer, o: number)
else
-- 8-value ramp, then a few nudged endpoints
local bestErr, b0, b1 = math.huge, hi, lo
for d0 = 0, 2 do
for d1 = 0, 2 do
for d0 = 0, 1 do
for d1 = 0, 1 do
local x0, x1 = hi - d0, lo + d1
if x0 > x1 then
ramp(x0, x1)