Guides / Compression · 6 min read · Updated 21 November 2026
Draco vs Meshopt vs KTX2: which compression to use
Draco and Meshopt compress geometry (vertices and indices); KTX2 compresses textures in GPU memory. In many production GLBs, the best combination is Meshopt + KTX2.
Geometry compression vs texture compression
A common point of confusion in glTF optimisation is treating Draco, Meshopt and KTX2 as competing alternatives. In reality, Draco and Meshopt compress 3D geometry (positions, normals, UVs, indices, and in Meshopt’s case animation and morph buffers), while KTX2 compresses image textures so they stay compressed inside GPU VRAM.
Because they target different parts of the GLB file, you do not have to pick only one. A game-ready or web-ready GLB frequently pairs Meshopt (for mesh and animation buffers) with KTX2 (for base colour, normal and ORM textures).
| Technology | Compresses | Shrinks Download? | Shrinks GPU VRAM? | Best For |
|---|---|---|---|---|
| Draco (KHR_draco_mesh_compression) | Static mesh geometry | Yes (very high ratio) | No (decompressed on CPU) | Static product viewers & bandwidth-critical web |
| Meshopt (EXT_meshopt_compression) | Meshes, skins, morphs, animations | Yes (high with gzip/brotli) | Partial (quantized attributes) | Rigged characters, animated scenes & fast mobile decode |
| KTX2 / Basis Universal (KHR_texture_basisu) | 2D textures & mipmaps | Yes (ETC1S) / Moderate (UASTC) | Yes (4×–8× less VRAM) | Mobile games, Quest VR & texture-heavy WebGL |
When to use Draco
Google’s Draco (KHR_draco_mesh_compression) quantises and entropy-codes vertex attributes, often shrinking raw static mesh buffers by 80–95%. If you are delivering a static architectural scan, sculpture or e-commerce product model over slow connections and transfer size is your #1 metric, Draco is hard to beat.
The trade-offs: Draco decoding runs on the CPU (usually inside a WebAssembly worker in Three.js), which can add noticeable decode latency on low-end phones, and Draco does not compress animation tracks. It can also be trickier with certain morph-target or vertex-order-sensitive pipelines.
When to use Meshopt
Meshopt (EXT_meshopt_compression + KHR_mesh_quantization) is built specifically for fast realtime loading. It compresses vertex buffers, index buffers, skinning weights, morph targets and animation keyframes, and decodes several times faster than Draco on mobile CPUs.
When served over HTTP with gzip or Brotli (which Cloudflare, Netlify, Vercel and modern CDNs apply automatically), Meshopt file sizes are very close to Draco while decoding almost instantaneously. For rigged characters, animated props and game engines (Unity glTFast, Godot 4, Three.js), Meshopt is usually the safest default.
When to use KTX2 (ETC1S vs UASTC)
Standard PNG, JPEG and WebP textures shrink download size, but the moment the browser or game engine uploads them to the GPU they decompress into full 32-bit RGBA bitmaps. A single 2048 × 2048 JPEG that is only 400 KB on disk expands to 16 MB in VRAM (over 21 MB with mipmaps). Four such maps on one character consume 85 MB of GPU memory.
KTX2 with Basis Universal solves this by transcoding directly into native hardware GPU formats (ASTC on modern mobile, BC7 on desktop, ETC2 on older Android) without ever expanding to raw RGBA. Use ETC1S mode in KTX2 Texture Encoder (/ktx2-texture-encoder) for smallest downloads on base colour maps, and UASTC mode for normal maps, sharp UI/logos or high-detail surfaces where block artefacts would stand out.
Recommended combinations by platform
- Web product viewer (static model): Draco + WebP textures (or KTX2 if there are many 2K maps)
- Web 3D character or animated scene: Meshopt + WebP/KTX2 via Optimise GLB (/optimise-glb)
- Mobile games & Meta Quest VR: Meshopt + KTX2 (ETC1S for albedo, UASTC for normals) via KTX2 Texture Encoder (/ktx2-texture-encoder)
- Maximum compatibility (raw import into Blender/legacy tools): plain uncompressed GLB with resized PNG/WebP textures
Tools used in this guide
- Optimise GLB — Reduce model size while preserving important content.
- KTX2 Texture Encoder — Convert PNG, JPEG and WebP textures, or the textures inside a GLB, to GPU-compressed KTX2 for phones, VR and the web.
- Compress Textures — Resize and compress model textures.
- Inspect GLB — Explore every mesh, material, texture and byte in a GLB.