Cutting a libGDX Android Build from 28MB to 9.3MB with R8
Going from a 28MB debug build to a 9.3MB Android bundle with R8, and the ProGuard keep-list that stopped the 3D engine from crashing on launch.
ReadThoughts on building systems that breathe. No fluff. No filler. Just the signal.
Going from a 28MB debug build to a 9.3MB Android bundle with R8, and the ProGuard keep-list that stopped the 3D engine from crashing on launch.
ReadA complete R8/ProGuard setup for Kotlin libGDX 3D games: what to flip in build.gradle, the full keep-list that protects JNI, g3d, and Scene2D, and why to leave minification off in debug builds.
ReadA looping animation freezes for several frames then snaps because duplicated keyframes leave overlapping Bézier handles. Fix it in the Graph Editor by shrinking the handles and setting Auto Clamped.
ReadAdding rigged, animated glTF meshes to the gdx-gltf-KHR fork alongside compressed static geometry, and the two endianness/stride bugs that came with it.
ReadA 3D mesh rendered as an invisible dot because manual ByteBuffer loops read big-endian by default. The fix is a single .order(LITTLE_ENDIAN) call before decoding weights.
ReadHow I got a real mobile mesh package down to 265KB with gltfpack grid quantization and WebP, without melting the geometry or breaking collision.
ReadFour real bugs when adding gltfpack (Meshopt, quantization, WebP) support to gdx-gltf on Android: a BasisU global init crash, shared buffer views reading out of bounds, 12-bit UV grids, and WebP missing from libGDX's core.
ReadHow I set up Zero Digest's first server: a small domain, then a NestJS, React, Docker, and EJS stack we still run today.
Read