How mobile screens refresh at 60Hz and 120Hz, and why blocking the single main UI thread drops frames and creates jank.
Imagine an assembly line conveyor belt running at high speed: every 16.6 milliseconds, a container passes your station. If you take 20ms to pack an item, the conveyor belt skips a beat, resulting in a dropped frame that the human eye perceives as a visual stutter or lag.
V-Sync Pulse: Hardware clock emits a vertical synchronization signal (every 16.6ms at 60Hz, 8.3ms at 120Hz)
Event Handling: Touch gestures and scroll events are read from native hardware buffers
Layout & Measure: Measuring bounding boxes, margins, and flexbox dimensions
Draw & Display List: Generating low-level drawing commands for views
GPU Rasterization: GPU shaders execute vertex and fragment passes to push pixels to the framebuffer
// 60 FPS vs 120 FPS Frame Budget Constants
const FRAME_BUDGET_60FPS_MS = 1000 / 60; // 16.66 ms per frame
const FRAME_BUDGET_120FPS_MS = 1000 / 120; // 8.33 ms per frame (ProMotion)
// If UI thread work takes 25ms:
// 25ms > 16.66ms -> 1 Frame Dropped -> User perceives scroll stutter!Offloading computation to background worker threads or C++ worker pools ensures the main UI thread never exceeds its 16.6ms budget.