← Back to Blog Devlog

Optimizing Mobile Asset Packages down to 265KB with Meshopt and WebP

This is a follow-up on optimizing our framework fork to shrink mobile asset sizes while keeping surface detail and collision data intact.


Why default asset formats hurt on mobile

Plain .glb and .gltf files carry full float vertex streams and uncompressed textures. On mobile that runs into three problems:

  • Storage: download sizes grow fast.

  • Memory bandwidth: pulling raw floats from VRAM costs battery.

  • GC stutter: repeatedly allocating raw arrays on the Java heap causes hitches during camera moves.

So we updated the core asset fork gdx-gltf-KHR to read pipelines packed with gltfpack.

Choosing the quantization grid

Instead of removing vertices (which turns low-poly meshes into blobs), we kept the geometry and only reduced the bit width of the data to its minimum safe value:

Attribute          Default          Optimized           Result
Vertex positions   32-bit float     14-bit short      -vp 14   ~50% stream reduction
Texture coords     16-bit norm.     12-bit grid       -vt 12   matches 4095 range
Surface normals    3D float         8-bit octahedral  -vn 8    stored as 2 components


The result on a real mesh set

Combining that bit-packing with WebP textures (-tw) gave these numbers on our own static mesh test set:

Standard gltfpack GLB                 : 347.3 KB
Quantized streams + WebP split        : 265.0 KB
Net storage saved                     : ~24%


Because we kept the global index array instead of dropping references, the physics and collision sweeps can still parse the mesh hulls directly.