Bytes to GPU blocks in 1 pass. Zero CPU image decode.

Native GPU format for .rcd and .rcd.glb: zero CPU decode, zero WASM, and 1 GPU pass.

Runtime ReadyLoads in ultra-fast-texture, /three and /gltf · CLI & Vite plugin included.

CPU image decode 0ms 0.96 ms 4K GPU submit
14-asset PBR corpus 1,863KiB 39.92 dB mean PSNR
vs Basis UASTC .ktx2 13of 16 smaller & faster at equal PSNR
Viking Ship .rcd.glb −32.5% 1,491 vs 2,208 KiB
Over the network · 4 textures 3.4–4.2×sooner 3.7× fewer bytes than .ktx2 (35.87 vs 35.76 dB)
  • 8 Mbps3.4×515 vs 1,753 ms
  • 20 Mbps3.5×217 vs 752 ms
  • 50 Mbps3.5×96 vs 339 ms
  • 100 Mbps3.6×53 vs 191 ms
  • 1 Gbps4.2×13.6 vs 57 ms

Apple M3 Max · Chrome 156–157. The network figures use the 2026-11-03 RCD1 files; today's step 8 files for those four textures total 452.2 KiB at 35.69 dB.

Decision matrix · 5 GPU delivery formats

What to use when.

Five specialized delivery formats that all feed UltraTexture’s zero-WASM WebGPU block encoders. Pick by network target and test live on your GPU.

Use Case / Scenario Recommended Format 4-Tex Batch Mean PSNR Warm GPU Cold 4G+ Cold Local Why It Wins Live GPU Test
General 3D Web / glTF / Single Textures AVIF-Fast + UFT 294.2 KiB 35.91 dB 4.12 ms 230.3 ms 49.5 ms 5.4× smaller than .ktx2 at 35.76 dB · GPU YUV upload Test AVIF-Fast →
Mobile / Slow Networks (4G–5G Batch) AV1 Stream (.ivf) + UFT 283.6 KiB 35.59 dB 3.99 ms 220.4 ms 52.8 ms 4 textures in 1 HTTP stream Test AV1 .ivf →
Universal Drop-In WebP WebP-Fast + UFT 337.9 KiB 35.00 dB 3.94 ms 247.7 ms 49.6 ms 3.6× faster WebP · 4 strips Test WebP-Fast →
PBR Sets / Decal & UI Atlases Mega-Atlas + UFT 293.5–337.0 KiB 34.97–35.91 dB 4.65 ms 236.2 ms 55.7 ms N textures in 1 file · GPU crop Test Mega-Atlas →
PBR Sets · .rcd.glb · Zero CPU Jank RCD1 (.rcd) + UFT 427.0 KiB 35.87 dB 4.94 ms 289.6 ms 55.1 ms 0 ms CPU · 42.42 dB at step 1 Test RCD1 →
Default · −35% 4K WebCodecs .avif · .avif.glb

1. AVIF-Fast + UFT

64×64 superblocks + fast-decode AV1 intra flags + WebCodecs VideoFrame GPU YUV→RGB upload: 21.4 ms 4K upload (−35.3%), 4.12 ms 4-tex warm, and 49.5 ms Cold Local (1-tex).

npx uft-convert model.glb -f avif-fast
# or in vite.config.js:
uftVitePlugin({ auto: 'all', format: 'avif-fast' })
1 Stream · 3.99 ms Warm .ivf (DKIF + UFAT)

2. AV1 Video Stream (.ivf) + UFT

8-chunk WebCodecs VideoDecoder + single-pass fused YUV_PRELUDE + BC7 with seamClamp64: 3.99 ms warm (0.55 ms GPU BC7) & 486 ms Cold 4G.

npx uft-convert ./textures -f av1-stream -o scene.ivf
Universal · 3.94 ms Warm .webp · .webp.glb

3. WebP-Fast (4-Strip ANMF) + UFT

-f 0 zero loopfilter + 4 horizontal ANMF strips decoded in parallel + fused GPU YUV→BC7 (3.94 ms 4-tex warm, 3.6× faster than WebP).

npx uft-convert albedo.png -f webp-fast -o albedo.webp
# or in vite.config.js:
uftVitePlugin({ auto: 'all', format: 'webp-fast' })
1 File · 53.1 ms Cold 1G .atlas.webp · .atlas.avif

4. Mega-Atlas (ANMF / ufat) + UFT

Packs N textures into 1 container with a UFAT chunk; UFT’s fused GPU YUV→BC7 crops each sub-rectangle in one pass (4.65 ms warm, 53.1 ms Cold 1G).

npx uft-convert ./materials -f webp-atlas -o mat.atlas.webp
npx uft-convert ./materials -f avif-atlas -o mat.atlas.avif
0 ms CPU · 1 GPU pass .rcd · .rcd.glb

5. RCD1 (.rcd) GPU-Native + UFT

6 native modes (r, xy-normal, rg, la, ycocg, ycocg-a) + f16 RDOQ + single-pass GPU fusion: 1,863.4 KiB at 39.92 dB on the 14-asset corpus (AVIF-Fast: 1,850.4 KiB at 43.18 dB; 1.28× at equal PSNR) and 0.96 ms 4K submit.

npx uft-convert scene.glb -o scene.rcd.glb --step 8
# or in vite.config.js:
uftVitePlugin({ auto: true, format: 'rcd1', step: 8 })
The bottleneck

Why we built RCD1.

On a standard 1024² WebP, browser CPU image decode accounts for 77% of the 15 ms warm load. RCD1 moves that decode onto the GPU too.

WebP q75 + UltraTexture

203.9 KiB · 32.45 dB PSNR
14.67ms
  • Browser image decode 11.35 ms
  • Upload + UltraTexture BC7 2.89 ms

Basis UASTC .ktx2, RDO 6

726.2 KiB · 30.80 dB PSNR · three.js’s Basis transcoder
12.54ms
  • WebAssembly transcode on the main thread 11.08 ms
  • Upload 1.15 ms

RCD1 step 8 + UltraTexture 4.1× faster than WebP3.5× faster than UASTC

236.6 KiB · 32.40 dB PSNR · 3.1× smaller than UASTC, 16% larger than WebP
3.58ms
  • CPU: read the Blob, parse, upload, submit 0.70 ms
  • GPU: Rice decode → IDCT → BC7, the rest of the 3.58 ms

Brick, 1024², one mip level, BC7 output, the same files as the size / quality tables below; Apple M3 Max, headless Chrome 157, 2026-11-16, one-minute load average 5.8 with other applications open. Bars share one 0–15 ms scale. Each stage is its own median of 9 warm runs, so stages need not add up exactly to the total. No library, transcoder or loader download is included.

Architecture · Single-pass GPU fusion

One compute pass, one submit.

In the shipped runtime, Rice entropy decode, 1–4-plane f16 IDCT, mipchain generation, and any of the 11 BC / ASTC / ETC2 encoders fuse into one GPUComputePassEncoder and one queue.submit() (0.96 ms 4K submit, 0.0 MiB warm transient allocs ≤ 2K).

Stage 01 bits → coefficients · O(1) prefix-popcount

Parallel Golomb-Rice decode

Independent 128–1,024-value packets decoded in parallel (8 streams per 64-thread workgroup) with an O(1) CPU prefix-popcount trailer, wgStream broadcast, and pooled zero-maintained coeffBuf.

Stage 02 coefficients → chainBuf · 6 native modes

1–4-plane f16 inverse DCT

64 × P binary16 quantizers + separable 8×8 IDCT across r, 45° xy-normal, rg, la, ycocg, and ycocg-a → packed texels straight into Engine.gpuStage mip 0.

Stage 03 mips + 11 GPU block formats · 0.06–2.19 ms

Mipchain + BC / ASTC / ETC2 encode

Full mip chain down to 1×1 plus UFT’s BC7/BC5/BC4/BC1, ASTC 4×4/6×6/8×8, or ETC2/EAC kernel in the same compute pass — zero intermediate rgba8unorm texture and zero readback.

All 11 compressed formats · single-pass fused

Windows, Linux, macOS, iOS and Android WebGPU: BC, ASTC and ETC2/EAC all run in the 1-pass fused pipeline (3 → 1 compute passes, −26% to −37% faster GPU completion).

NPOT dimensions & RGBA8 fallback

Non-divisible-by-8 sources (e.g. 758×600, 126×126) pad edges symmetrically on encode and crop exact dimensions on GPU decode; devices without block compression receive mipmapped RGBA8.

Measured · Apple M3 Max · headless Chrome 156–157 · 2026-10-27 to 2026-11-19

14-Asset PBR Corpus, .rcd.glb Models & Basis UASTC.

Across all 14 mixed PBR corpus textures at step = 8, RCD1 totals 1,863.4 KiB (39.92 dB, 0 ms CPU). AVIF-Fast is 1,850.4 KiB at 43.18 dB, so at equal PSNR RCD1 needs about 1.28× its bytes. It shrinks viking_ship.glb by −32.5%, its textures at 37.4 dB against the originals.

1,863.4 KiB at 39.92 dB across the 14-asset PBR corpus, with 0.00 ms CPU decode. RCD1 is at step 8 and the others at their CLI defaults, so the files are not at the same quality: AVIF-Fast is 1,850.4 KiB at 43.18 dB and WebP-Fast 1,663.2 KiB at 42.61 dB (one near-lossless map at 90.3 dB lifts that mean). At equal PSNR RCD1 needs 1.28× the bytes of AVIF-Fast (more on all 14 textures) and 1.10× those of WebP-Fast (fewer on 5 of 13). Native 1-plane r, 2-plane la / xy-normal, 3-plane ycocg, and 4-plane ycocg-a modes plus binary16 quantizers and Lagrangian RDOQ cut the 9-texture viking_ship .glb from 2,207.7 to 1,491.1 KiB (−32.5%), its textures at 37.4 dB mean PSNR against the originals.

14-asset PBR delivery corpus and 3D .rcd.glb model sizes at step 8
Asset / 3D Model Dimensions · Mode RCD1 (.rcd) AVIF-Fast WebP-Fast RCD1 at AVIF's PSNR
alphaMap512×512 · r (1-plane)60.1 KiB32.43 dB87.3 KiB39.00 dB72.1 KiB35.32 dB92.4 KiB (1.06×)
brick_diffuse1024×1024 · ycocg239.8 KiB33.57 dB303.2 KiB37.96 dB218.6 KiB33.87 dB373.6 KiB (1.23×)
earth_normal_20482048×1024 · xy-normal123.7 KiB39.25 dB157.3 KiB43.45 dB103.0 KiB39.28 dB200.3 KiB (1.27×)
earth_atmos_20482048×1024 · ycocg196.3 KiB37.02 dB223.4 KiB42.01 dB152.8 KiB37.58 dB316.4 KiB (1.42×)
brick_roughness1024×1024 · auto r184.4 KiB39.82 dB185.5 KiB41.87 dB157.1 KiB37.57 dB211.0 KiB (1.14×)
758px-Canestra_di_frutta758×600 NPOT · ycocg127.1 KiB37.11 dB127.9 KiB38.43 dB125.5 KiB34.15 dB147.8 KiB (1.16×)
NormalMapOpenGL512×512 · xy-normal11.9 KiB41.44 dB10.5 KiB46.65 dB9.5 KiB42.20 dB17.6 KiB (1.67×)
hardwood2_diffuse2048×1024 · ycocg215.9 KiB40.10 dB195.7 KiB40.38 dB168.2 KiB37.24 dB222.6 KiB (1.14×)
earth_clouds_10241024×512 · auto la86.0 KiB44.58 dB79.0 KiB46.53 dB225.1 KiB90.34 dB93.5 KiB (1.18×)
hardwood2_roughness2048×1024 · ycocg66.6 KiB45.48 dB53.0 KiB48.69 dB43.5 KiB44.15 dB87.9 KiB (1.66×)
earth_day_40964096×2048 · ycocg450.1 KiB43.96 dB358.3 KiB43.86 dB327.7 KiB40.64 dB445.6 KiB (1.24×)
sprite128×128 · ycocg-a3.9 KiB40.21 dB3.0 KiB44.22 dB2.2 KiB39.83 dB5.2 KiB (1.72×)
uv_grid_opengl1024×1024 · ycocg95.2 KiB38.41 dB64.8 KiB44.16 dB55.0 KiB39.18 dB150.2 KiB (2.32×)
blossom126×126 NPOT · ycocg-a2.3 KiB45.49 dB1.5 KiB47.37 dB2.9 KiB45.17 dB2.8 KiB (1.81×)
14-Asset Corpus TotalAll 14 PBR textures · step 81,863.4 KiB39.92 dB1,850.4 KiB43.18 dB1,663.2 KiB42.61 dB2,366.9 KiB (1.28×)
3D glTF Models (.glb → .rcd.glb) · Embedded image/x-uft-rcd1 views, 0 ms CPU decode
viking_ship_optimized9 embedded PBR textures1,491.1 KiB37.40 dB2,207.7 KiB .glb–−716.6 KiB (−32.5%)
retro-cartoon-car_optimized4 embedded textures1,292.4 KiB40.14 dB1,234.5 KiB .glb–+4.7% · 0 ms CPU
cat-house_optimized1 embedded texture316.6 KiB39.91 dB292.4 KiB .glb–+8.3% · 0 ms CPU

Sizes and quality from node bench/delivery/matched.mjs: the files tools/uft-convert.mjs writes for samples/corpus/delivery/ (RCD1 at step 8, AVIF-Fast and WebP-Fast at the CLI defaults) and the committed demo/models/*.rcd.glb (1 KiB = 1,024 B). PSNR covers the channels each RCD1 mode stores, against the decoded corpus WebPs and before the GPU's BC7 encode; totals are means over textures. The byte columns are not at equal quality; the last column is the size RCD1 needs to reach AVIF-Fast's PSNR on that texture, interpolated over the step sweep. The masters are themselves lossy WebPs, so every codec is scored on reproducing WebP's output; from the upstream three.js originals the ratio is 1.62×. The .glb rows compare against the source model: their dB is the mean over the converted textures against the textures they replaced (the car keeps one WebP as it was). Most of the Viking saving is its three normal maps, 762.7 KiB of WebP in the source and 77.5 KiB in RCD1 at 31.3–36.5 dB.

Smaller and faster in 13 of 16 settings. Basis UASTC .ktx2 runs through three.js’s bundled Basis transcoder (WebAssembly, called directly on the main thread rather than through KTX2Loader’s workers). Each UASTC file is paired with the smallest RCD1 file whose PSNR after BC7 is at least as high. In all 13 settings that have one, RCD1 was both smaller (1.07–7.6×) and faster (1.8–3.9×); for RDO 0 on brick (by 0.002 dB) and RDO 0 and 1 on the UV grid no RCD1 step reaches the UASTC PSNR.

Texture Basis UASTC .ktx2 Matched RCD1 Files KiB Size Warm ms Speed
Brick1024²uastc-rdo0 38.04 dBnot reached947.3 → ––12.65 → ––
uastc-rdo1 37.73 dBstep 1 37.80 dB934.7 → 708.21.32× smaller12.73 → 4.412.9× faster
uastc-rdo3 34.35 dBstep 4.76 34.47 dB836.2 → 337.02.5× smaller12.06 → 3.463.5× faster
uastc-rdo6 30.80 dBstep 11.31 30.98 dB726.2 → 181.54.0× smaller12.54 → 3.183.9× faster
Earth1024×512uastc-rdo0 45.50 dBstep 0.59 45.63 dB284.3 → 265.41.07× smaller5.05 → 2.841.8× faster
uastc-rdo1 44.12 dBstep 1.19 44.54 dB248.9 → 185.21.34× smaller5.08 → 2.482.0× faster
uastc-rdo3 39.99 dBstep 4 40.07 dB222.7 → 86.72.6× smaller4.99 → 2.561.9× faster
uastc-rdo6 36.42 dBstep 8 36.76 dB201.6 → 51.83.9× smaller5.05 → 2.462.1× faster
Wood1024×512uastc-rdo0 43.94 dBstep 0.71 44.09 dB455.3 → 313.81.45× smaller5.80 → 2.702.1× faster
uastc-rdo1 39.81 dBstep 3.36 40.03 dB414.9 → 134.63.1× smaller6.23 → 2.492.5× faster
uastc-rdo3 34.90 dBstep 9.51 35.40 dB330.3 → 60.45.5× smaller5.96 → 1.963.0× faster
uastc-rdo6 32.41 dBstep 16 33.03 dB287.9 → 37.77.6× smaller6.10 → 2.302.7× faster
UV grid1024²uastc-rdo0 45.37 dBnot reached367.5 → ––9.38 → ––
uastc-rdo1 43.96 dBnot reached328.1 → ––9.38 → ––
uastc-rdo3 42.46 dBstep 1.68 42.78 dB320.6 → 212.01.51× smaller9.42 → 3.302.9× faster
uastc-rdo6 40.93 dBstep 3.36 41.08 dB317.3 → 151.82.1× smaller9.35 → 2.883.3× faster

KTX-Software 4.4.2 UASTC (quality 2, Zstd 18, RDO λ 0 / 1 / 3 / 6), transcoded to BC7. RCD1 files are written by tools/uft-convert.mjs at 25 steps from 0.5 to 32 and loaded through the library’s production path. PSNR is RGB, after hardware BC7 decoding. KiB and ms read baseline → RCD1; ms is the median of 9 warm runs from file bytes in memory to GPU completion. Neither the transcoder nor the RCD1 loader download is counted. Where no step reaches the UASTC PSNR, the best RCD1 file (step 0.5) is 916.7 KiB at 38.04 dB on brick, 0.002 dB short, and 366.5 KiB at 43.64 dB on the UV grid. Measured with node bench/delivery/run-matched.mjs on 2026-11-16: Apple M3 Max, headless Chrome 157, one-minute load average 5.7–5.8 with other applications open. RCD1’s times vary the most: its GPU completion wait ranged from 0.8 to 6.6 ms between runs of the same file, and its fastest runs took 1.2–2.6 ms; in every pair its 75th-percentile time is still below the baseline’s 25th percentile. The RCD1 medians are 1.4–2.4× those measured on 2026-11-03, while the UASTC medians are 3–14% lower; the cause is not known yet. The masters are the decoded corpus WebPs: on the 14-texture corpus, scoring against the upstream three.js originals instead raised RCD1’s bytes from 1.28× to 1.62× those of AVIF-Fast at equal PSNR, and this UASTC comparison has not been repeated from the originals.

Same BC7 encoder, minus the image decoder. Both sides end in UltraTexture’s BC7 kernel; RCD1 only removes the browser’s image decode. Paired with the smallest RCD1 file of at least the same PSNR after BC7, RCD1 was 1.8–7.8× faster than lossy WebP and AVIF across all four textures, but larger in 30 of those 32 settings: 1.13–1.32× on brick, up to 2.8× on the UV grid. No RCD1 step reaches the PSNR of the lossless files.

Brick 1024² baseline Matched RCD1 Files KiB Size Δ PSNR Warm ms Speed
webp-q60 31.35 dBstep 9.51171.0 → 207.91.22× larger+0.34 dB13.15 → 3.124.2× faster
webp-q75 32.45 dBstep 6.73203.9 → 268.11.31× larger+0.67 dB14.67 → 3.704.0× faster
webp-q85 35.07 dBstep 4328.9 → 373.91.14× larger+0.03 dB20.54 → 3.236.3× faster
webp-q95 37.33 dBstep 1.41495.2 → 618.31.25× larger+0.17 dB27.66 → 3.537.8× faster
webp-lossless 38.16 dBnot reached1,357.4 → –––20.51 → ––
avif-q45 28.61 dBstep 19.0388.0 → 116.01.32× larger+0.26 dB10.32 → 3.143.3× faster
avif-q60 31.41 dBstep 9.51164.7 → 207.91.26× larger+0.29 dB12.75 → 3.124.1× faster
avif-q75 34.26 dBstep 4.76285.4 → 337.01.18× larger+0.21 dB14.63 → 3.464.2× faster
avif-q90 36.93 dBstep 2471.5 → 532.41.13× larger+0.07 dB19.65 → 2.986.6× faster
avif-lossless 38.16 dBnot reached1,732.6 → –––59.22 → ––

WebP: cwebp 1.6.0, method 6, sharp YUV. AVIF: avifenc 1.4.2, speed 6, 8-bit 4:4:4. Both decoded by the browser, then encoded by UltraTexture. Δ PSNR is RCD1 minus the baseline, after BC7. The lossless files sit at the BC7 encoder’s ceiling on the master; the best RCD1 file (step 0.5, 916.7 KiB) stays 0.12 dB below it. Same run, timing and matching rule as the UASTC tab. The rows are brick; all four textures are in bench/delivery/RESULTS-matched.md, where wood at WebP q85 and q95 is the only case with a smaller RCD1 file (5–6%). The masters are the decoded corpus WebPs; on the 14-texture corpus the upstream originals moved RCD1 from 1.28× to 1.62× AVIF-Fast’s bytes at equal PSNR and from 1.10× to 1.17× WebP-Fast’s, so the AVIF rows here probably flatter RCD1.

The three runtime-supported delivery formats were 3.2–4.8× faster than Basis UASTC .ktx2 on every link from 8 Mbps to 1 Gbps. Against UASTC’s 35.76 dB mean PSNR after BC7, AVIF-Fast (35.91 dB) was 4.2–4.8× faster, RCD1 (35.87 dB) 3.2–3.9× and WebP-Fast (35.00 dB) 3.9–4.6×. The AV1 Video Stream (.ivf) research container (35.59 dB) was first on every link, 4.6–6.0× faster. Warm, WebP-Fast was first (3.94 ms), then the AV1 stream (3.99 ms) and AVIF-Fast (4.12 ms). In the High tier (41.4–42.4 dB), RCD1 step 2 (41.39 dB) was first warm (6.84 ms) and at 1 Gbps (16.6 ms); AVIF-Fast q90 (41.61 dB) was about 2% ahead of it from 8 to 100 Mbps.

Pipeline (4-Texture Scene · 3.1 MP) Files Mean PSNR Warm 8 Mbps 20 Mbps 50 Mbps 100 Mbps 1 Gbps
AV1 Video Stream (.ivf) + UFT283.6 KiB35.59 dB3.99 ms342.5148.467.037.48.8
AVIF-Fast (64×64 SB + Sharp-YUV) + UFT294.2 KiB35.91 dB4.12 ms362.1158.372.042.011.0
AVIF-Fast Mega-Atlas (ufat) + UFT293.5 KiB35.91 dB4.65 ms359.6157.172.643.412.0
WebP-Fast Mega-Atlas (ANMF + UFAT) + UFT337.0 KiB34.97 dB5.20 ms401.9174.379.746.112.1
WebP-Fast (4-Strip ANMF) + UFT337.9 KiB35.00 dB3.94 ms406.2175.879.445.511.6
RCD1 (.rcd GPU-Native) + UFT427.0 KiB35.87 dB4.94 ms514.7217.295.853.213.6
Standard WebP q75 + UltraTexture350.7 KiB35.42 dB14.22 ms429.5190.990.857.121.1
WebP q75 + spark.js350.7 KiB33.99 dB14.98 ms426.7191.691.156.120.3
Basis UASTC .ktx2 three.js’s Basis transcoder1,575.4 KiB35.76 dB33.00 ms1,701.4708.2309.1176.952.9
High-Quality Tier (41.4–42.4 dB BC7 PSNR) · 4-Texture Scene
RCD1 High (step 1) + UFT1,447.0 KiB42.42 dB7.20 ms1,560.0642.0270.0142.019.5
AVIF-Fast High (q95) + UFT1,364.0 KiB42.24 dB11.40 ms1,472.0608.0256.0136.021.0
AVIF-Fast High (q90) + UFT1,036.0 KiB41.61 dB9.80 ms1,128.0466.0198.0106.018.9
RCD1 High (step 2) + UFT1,049.0 KiB41.39 dB6.84 ms1,148.0474.0201.0107.816.6
WebP-Fast High (q92, 4-Strip ANMF) + UFT1,092.0 KiB41.48 dB8.90 ms1,188.0490.0208.0112.019.8
Basis UASTC .ktx2 High (rdo1, 1-subset BC7 M5)1,926.0 KiB41.43 dB33.26 ms2,065.3850.9367.0203.053.3

Brick, earth, wood and UV grid fetched and turned into BC7 inside an already-loaded page under Chrome network emulation (plus 45 / 25 / 15 / 10 / 2 ms latency); median of 3 runs, in ms. Warm: median of 7. Mean PSNR after BC7; each speed-up is UASTC’s time divided by the row’s, link by link. AV1 Video Stream and the two Mega-Atlas rows are research containers that the runtime loader does not decode. Measured from 2026-10-27 to 2026-11-03 (Chrome 156) with the RCD1 files of 2026-11-03, whose encoder was tuned on these four images; not re-run since. Today’s step 8 files for them total 452.2 KiB at 35.69 dB.

Full Cold Page Load → First WebGPU Render (HTML + JS + GPU init + fetch + decode + BC7 + draw). Measured in fresh uncached browser tabs under CDP network emulation. AV1 Video Stream (.ivf) wins 4-texture Cold Local (52.8 ms), Cold 5G (112.0 ms), Cold 4G+ (220.4 ms), and Cold 4G (486.4 ms) — 5.9× faster than Basis UASTC .ktx2 (2,849.3 ms).

Pipeline (Cold Uncached Browser Tab) Payload Cold Local Cold 5G 50M / 15ms Cold 4G+ 20M / 25ms Cold 4G 8M / 45ms
AV1 Video Stream (.ivf) + UFT · 4-Tex283.6 KiB52.8 ms112.0 ms220.4 ms486.4 ms
AVIF-Fast + UFT · 4-Tex294.2 KiB57.2 ms128.4 ms230.3 ms505.4 ms
AVIF-Fast Mega-Atlas (ufat) + UFT · 4-Tex293.5 KiB55.8 ms129.0 ms236.2 ms514.2 ms
WebP-Fast Mega-Atlas (ANMF) + UFT · 4-Tex337.0 KiB55.7 ms127.7 ms245.5 ms546.0 ms
WebP-Fast (4-Strip ANMF) + UFT · 4-Tex337.9 KiB55.6 ms135.7 ms247.7 ms550.2 ms
RCD1 (.rcd GPU-Native) + UFT · 4-Tex427.0 KiB55.1 ms131.5 ms289.6 ms658.0 ms
WebP q75 + spark.js · 4-Tex350.7 KiB72.4 ms152.7 ms291.7 ms616.5 ms
Basis UASTC .ktx2 + WASM · 4-Tex1,575.4 KiB + WASM145.6 ms566.6 ms1,254.0 ms2,850.1 ms
Single 1024² Texture (Brick) · Cold Uncached Browser Tab
AVIF-Fast + UFT · 1-Tex179.9 KiB49.5 ms99.1 ms (5G)182.9 ms (4G+)3.29 ms (warm)
WebP-Fast (4-Strip ANMF) + UFT · 1-Tex200.4 KiB49.6 ms110.2 ms (5G)260.4 ms (4G)4.34 ms (warm)
RCD1 (step 8) + UFT · 1-Tex231.7 KiB52.3 ms132.5 ms (4G+)310.7 ms (4G)1.77 ms (warm)
Basis UASTC .ktx2 + WASM · 1-Tex726.2 KiB + WASM118.9 ms829.2 ms (4G+)1,879.0 ms (4G)14.23 ms (warm)

Measured via performance.now() from navigation start in a fresh browser context (`Cache.setCacheDisabled: true`) until the WebGPU render pass displaying the compressed BC7 texture(s) completes on the GPU. The 4-texture payloads are the Network tab's files, with its mean PSNR. The single-texture rows are brick: RCD1 step 8 at 32.24 dB and UASTC RDO 6 at 30.80 dB after BC7, from the same 2026-11-03 files; the PSNR of the AVIF-Fast and WebP-Fast brick files was not recorded.

116 KiB to 708 KiB, all in 3.0–4.4 ms. Each of the ten timed brick steps reached a BC7 texture in a median 2.98–4.41 ms.

Brick 1024² setting File Bits / pixel BC7 PSNR SSIM Warm median
step 19.03116.0 KiB0.9128.87 dB0.84033.14 ms
step 11.31181.5 KiB1.4230.98 dB0.89193.18 ms
step 9.51207.9 KiB1.6231.70 dB0.90653.12 ms
step 8236.6 KiB1.8532.40 dB0.91923.58 ms
step 6.73268.1 KiB2.0933.12 dB0.93093.70 ms
step 4.76337.0 KiB2.6334.47 dB0.95063.46 ms
step 4373.9 KiB2.9235.10 dB0.95873.23 ms
step 2532.4 KiB4.1637.00 dB0.97982.98 ms
step 1.41618.3 KiB4.8337.50 dB0.98463.53 ms
step 1708.2 KiB5.5337.80 dB0.98714.41 ms

The sweep has 25 steps from 0.5 to 32; the run times the nine that the UASTC, WebP and AVIF tabs matched on brick and the CLI default, step 8. PSNR is RGB, after hardware BC7 decoding, against the decoded corpus WebP master; SSIM is the standard Gaussian SSIM (11×11, σ 1.5) on the same pixels, averaged over RGB. In GPU memory every setting is the same 8 bpp BC7.

Developer & agent tooling

Convert with a Node CLI, a Rust CLI or a Vite plugin.

Supports all 5 delivery formats (rcd1, avif-fast, webp-fast, webp-atlas / avif-atlas, and av1-stream .ivf) across images, folders, and .glb / .gltf 3D models.

Node CLI: all 5 formats & .glb

Converts single textures, directories and .glb / .gltf models. --verify round-trips and reports PSNR; --json prints a machine receipt.

# Convert a .glb model to RCD1, AVIF-Fast, or WebP-Fast
npx uft-convert scene.glb -o scene.rcd.glb --step 8 --verify
npx uft-convert scene.glb -f avif-fast -o scene.avif.glb

# Pack a material folder into an AV1 .ivf stream or Mega-Atlas
npx uft-convert ./textures -f av1-stream -o scene.ivf
npx uft-convert ./textures -f webp-atlas -o scene.atlas.webp

Rust CLI: uft-rcd1

Zero-dependency Rust crate in tools/uft-rcd1-rs/. Builds offline with cargo and converts textures and .glb models with identical flags.

# Same conversion through the Rust CLI
pnpm convert:rs scene.glb -o scene.rcd.glb --step 8 --verify

# Or call the release binary directly
./tools/uft-rcd1-rs/target/release/uft-rcd1 scene.glb -o scene.rcd.glb

Vite plugin + GLTFLoader

Zero-touch conversion during vite dev and vite build (auto: true, auto: 'all', or query imports), cached on disk by SHA-256.

// vite.config.js: zero-touch conversion for .glb and images
import { uftVitePlugin } from 'ultra-fast-texture/vite'
export default {
  plugins: [ uftVitePlugin( { auto: 'all', format: 'avif-fast' } ) ]
}

// Or explicit per-asset query imports:
import heroRcd from './hero-normal.png?rcd1&step=4'
import albedoFast from './albedo.png?webp-fast'
Binary container

Wire format.

64-byte header, 64 × P binary16 quantizers (128–512 B), then independent RDOQ packets.

Offset Field Contents
0–64 B Header Magic 0x31444352 ("RCD1"), version, padded & exact NPOT dimensions, coeffsPerTile (64/128/192/256) & planeMode (6 channel modes), stream count, offsets
64–192..576 B Quantizers 64 × P positive binary16 (f16) factors across 1–4 planes (r, xy-normal, rg, la, ycocg, ycocg-a; legacy f32 still accepted)
192..576 B… Descriptors Active-stream bitmap + packed 96-bit descriptors + optional AC tile masks (augmented at load with an O(1) prefix-popcount trailer)
Payload Packets Continuous LSB-first bitstream addressed by 24-bit bit offsets (Lagrangian RDOQ Golomb-Rice, adaptive EMA, raw int16, or zero)
Usage

Which path when.

AVIF-Fast / WebP-Fast + UltraTexture

Default for standard image pipelines. 4.7–5.4× smaller than the UASTC .ktx2 4-texture set at 35.0–35.9 vs 35.8 dB, with a 21.4 ms (−35.3%) 4K WebCodecs GPU YUV→RGB fast path for AVIF-Fast.

RCD1 + UltraTexture

Zero CPU decode & PBR scenes. About 1.28× the bytes of AVIF-Fast at equal PSNR on the 14-asset PBR corpus, −32.5% on viking_ship.rcd.glb (textures at 37.4 dB), 0.96 ms 4K fused submit, and 42.42 dB at step 1 (1,447 KiB) in the High tier.

Share & Copy-Paste

Copy the numbers in one block.

Select & copy for X/Social or GitHub/HN, or open Benchmarks → for 1-click clipboard buttons and your own GPU’s live receipt.

X / Social Post Snippet

ultra-fast-texture: GPU-native RCD1 (.rcd) + WebCodecs AVIF-Fast in WebGPU (0 WASM):
⚡ RCD1 (.rcd): 1,863.4 KiB at 39.9 dB across 14 PBR assets, 0 ms CPU decode (AVIF-Fast: 1,850.4 KiB at 43.2 dB; 1.28× at equal PSNR)
⚡ Single-pass GPU fusion: 0.96 ms 4K submit · viking_ship.rcd.glb −32.5% (1,491 KiB, textures at 37.4 dB)
⚡ AVIF-Fast WebCodecs GPU YUV→RGB: 21.4 ms 4K (−35.3%) · AV1 .ivf: 283.6 KiB / 3.99 ms warm
https://uft.makio.io/rcd1

GitHub / HN Markdown Table

| Workload / Pipeline (Apple M3 Max) | Payload | Speed → GPU | PSNR |
| --- | ---: | ---: | ---: |
| **14-Asset PBR Corpus: RCD1 (`.rcd`)** | **1,863.4 KiB** | **0 ms CPU · 0.96 ms 4K sub** | **39.92 dB** |
| **14-Asset PBR Corpus: AVIF-Fast** | 1,850.4 KiB | **21.4 ms 4K WebCodecs (−35%)** | 43.18 dB |
| **4-Tex Scene: AV1 Stream (`.ivf`) + UFT** | **283.6 KiB** | **3.99 ms warm · 486 ms 4G** | 35.59 dB |
| **4-Tex Scene: WebP-Fast / AVIF-Fast + UFT** | **294–338 KiB** | **3.94–4.12 ms warm** | 35.0–35.9 dB |
| `@ludicon/spark.js` + WebP q75 (4-Tex) | 351 KiB | 14.98 ms warm · 620 ms 4G | 33.99 dB |
| Basis UASTC `.ktx2` + WASM (4-Tex) | 1,575 KiB | 33.00 ms warm · 2,850 ms 4G | 35.76 dB |

Try UltraTexture on your GPU.

Drop a PNG, an .rcd or a .glb into the Playground, or see how UltraTexture compares at different connection speeds.