Performance optimization for tv-detox home screen focus animations on low-end Android TV devices.
Raw Developer Origin & Technical Request
GitHub Issue
Oct 23, 2026
First, thanks for tv-detox. The home screen is small and clean, and I've been using it as the default Home on several of my streamers.
### Summary
On weak GPUs the focus animation was visibly choppy (a hitch when moving between tiles). Profiling with `gfxinfo` showed the cost is not the tile animation (scale / `translationZ` / `withLayer`) but the **window background**: `background()` returns a `LayerDrawable` of three `GradientDrawable`s (one linear and two radial, with dithering) that gets rasterized on every frame. Rendering it **once** into a bitmap makes the frames cheap again, with the same look and no extra memory.
### Devices and results
Same procedure on each device (see "How I measured"). Median frame time and share of janky frames while moving focus:
| Device | SoC / OS | Before | After |
|---|---|---|---|
| Fire TV Stick 4K (2023, `AFTKM`) | MediaTek MT8696 / Fire OS 8 (Android 11), 4K panel, UI at 1080p | 36 ms, 75% janky | **5 ms, 0–4% janky** |
| Mecool KD3 Google TV Stick | Amlogic S905Y4 / Android 14, 1080p | 57 ms, 77% janky | **14 ms, 5–7% janky** |
| Fire TV Stick 3rd gen (`AFTSSS`) | Fire OS 7 (Android 9), 1080p | 13 ms, 27% janky | **6 ms, 6% janky** |
| Xiaomi Mi TV Stick (`MiTV-AESP0`) | Amlogic S805Y / Android 9, 1 GB RAM, 1080p | not measured before | 7 ms, 8% janky (after) |
### What I tried (to find the cause)
- **A. Drop `translationZ` and `withLayer()` from the focus animation:** no change (38 ms and 57 ms medians on the two slowest device...
Developer Debate & Comments
No active discussions extracted for this entry yet.
Adjacent Repository Pain Points
Other highly discussed features and pain points extracted from Ansub/tv-detox.
Frequently Asked Questions
Market intelligence mapped to Performance optimization for tv-detox home screen focus animations on low-end Android TV devices..
What problem does Performance optimization for tv-detox home screen focus animations on low-end Android TV devices. solve?
What are the foundational technologies related to Performance optimization for tv-detox home screen focus animations on low-end Android TV devices.?
Are developers creating tools for Performance optimization for tv-detox home screen focus animations on low-end Android TV devices.?
Engagement Signals
Cross-Market Term Frequency
Quantifies the cross-market adoption of foundational terms like scale and linear by tracking occurrence frequency across active SaaS architectures and enterprise developer debates.
SaaS Metrics