Game dev
Saved & recent

Texture compression

Related terms: BC, DXT, ASTC, ETC, block compression

Textures stay compressed in VRAM, in formats the GPU reads directly. The image is cut into blocks of 4 by 4 pixels. Each block is stored as two colors plus a tiny number per pixel saying how to blend them.

The result is 4 to 8 times smaller with a small loss of quality. PC and consoles use the BC formats. Phones use ASTC or ETC. PNG and JPEG are different: they must be fully unpacked first, so they save disk space, not VRAM.

Further reading
Unity: GPU texture formats reference
0 1 2 3 palette 1 3 3 2 1 3 2 2 3 3 2 0 3 2 2 0 2 endpoints + 16 indices RGBA8 input BC1 decoded 64 bytes 8 bytes 4 × 4 texels
An RGBA8 block takes 64 bytes. Opaque BC1 stores two RGB565 colors and sixteen 2-bit indices in 8 bytes. The decoded block uses the two stored colors and two mixtures.

View in the full Game dev collection