SVGA file size and performance: keeping gifts smooth on cheap phones
What makes an SVGA animation heavy, the numbers to check before you ship one, and the habits that keep a busy live room at a steady frame rate.
The two costs: download and memory
The size of the .svga file decides how long a viewer waits the first time a gift is sent. The size of the pictures inside it, once unpacked, decides how much memory it takes while it plays. A small file can still be heavy in memory if it hides very large pictures.
What to check in every file
Canvas size: it should match where the animation is shown. A badge drawn on a full-screen canvas wastes memory for nothing.
Number and size of pictures: many small pieces are fine; a few enormous ones are not. Frame rate and length: 20 to 30 frames a second is normal, and a loop rarely needs more than a few seconds.
You can read all of these for any file in the free player on this site.
Frame sequences are the heavy kind
Some animations are exported as a stack of full pictures, one per frame, like a flipbook. They look good and are easy to make, but every frame is a whole picture in memory. Use them for short effects such as fire or smoke, not for a long full-screen gift.
Layered animations, where a few pieces are moved by the file's instructions, are far lighter and stay sharp.
Habits inside the app
Download gift files ahead of time and keep them on the phone. Play one large effect at a time and queue the rest. Stop and free an animation when its screen is covered. Give long-running loops, such as mic rings, the smallest files you have.
Test on the cheapest phone your audience uses, in a room with video, chat and several gifts at once. That is the only test that counts.