Most people don't watch your app on a new 4K Max. They watch on whatever stick came free with a TV years ago, or on Amazon's newest Fire TV Stick 4K, which has only 1 GB of memory. On those devices a heavy app takes seconds to open and stutters while you scroll a row. People notice. They don't file a bug report; they open something else.
We build our Fire TV apps to be light from the first commit. Our three apps, Doric TV, Rungs and Mise, are each about 1.3 MB to download. In the Android TV emulator they open cold in a median of 127 to 161 milliseconds. Real sticks are slower than an emulator on a Mac, so treat those as a floor, not a promise. Here's what keeps them that way.
1. Don't touch storage or the network before the first frame
The fastest way to make an app feel slow is to load data on the thread that draws the screen. Our apps read their catalog and watch history in the background and draw the home screen as soon as they can. A TV app should show something within a blink, even if the thumbnails arrive a moment later.
2. Ship less code
Turn on code shrinking and resource shrinking in release builds (R8 on Android). Delete the libraries you added for one small feature. Every library you skip is memory you keep and startup time you don't pay. We use a small hand-rolled back stack instead of a navigation library, because a TV app with three screens doesn't need one.
3. Build rows lazily
A home screen with ten rows of twenty posters shouldn't create two hundred cards at launch. Make rows and their items lazy, so only what's on screen, plus a little more, exists at any time. This matters more on TV than on phones, because TV home screens are mostly long rows.
4. Load the right size of image
A poster card on a 1080p screen is a few hundred pixels wide. Loading a full-resolution image and shrinking it costs memory and time on every card. Ask your image service for the size you'll actually show. Use one image loader with a memory cache, and let it handle the rest.
5. Keep the work on screen small
Focus animations, glows and shadows look great on a 4K Max and can drop frames on an old stick. Keep the focused card's effect simple: we scale the focused item slightly and add a border and a soft glow, and that's it. Test scrolling a row quickly with the remote, not just a still screenshot.
6. Measure, don't guess
Measure cold start the same way every time and write the number down. On a Fire OS device or emulator, force-stop the app, launch it with the activity manager's wait flag, and read the total time. Do it five times and take the middle value. Run it before and after every change that could matter, and on the oldest stick you care about, not just the newest.
If you can't say how long your app takes to open on a 1 GB stick, that's the first thing to find out. It's the first thing our Fire TV Audit measures, along with memory, dropped frames and every focus path.