r/iosdev • u/Remarkable-Low2075 • 16h ago
Not sure if anyone here is still into nerdy technical stuff, but here goes.
I didn't want the users of my app to download and then keep hundreds of megabytes of GIFs, videos or images in their cache.
My workout app shows a small 3D figure for each exercise, and you can rotate it to see the movement from any side. There are 80 exercises right now, and together they take about 200 KB in the bundle, around 1-3 KB each.
The idea. I don't ship video, rendered frames or 3D models. Each file stores only a compact description of the movement. The app draws the scene itself at runtime.
The generator. I wrote a small in-house tool that turns an exercise definition into one of these tiny animation files. No Blender and no third-party engine, so adding a new exercise costs just a few kilobytes.
The player. On the device a native renderer built on MetalKit turns that description into a 3D scene in real time. Because it's real geometry and not a picture, the camera can move freely, and the animation stays sharp at any size.
Why it's so small. The heavy part (the renderer) ships once, in the app. Each exercise adds only a small amount of motion data.
The trade-off is a deliberately simple flat style, a stickman instead of a realistic human. For showing technique that's enough, and all exercises look consistent.