Flutter & Dart (50 Qs)•Part 3: Advanced Internals, Scale & Production Patterns (Senior / Lead)
What causes Frame Drops (Jank) and how do you profile Flutter using Flutter DevTools?
senior LevelflutterAdvanced Internals
In Simple Words: To achieve 60fps, every frame must render within 16.6ms (or 8.3ms for 120fps):
- DevTools Timeline View: Visualizes the UI thread and Raster (GPU) thread:
- If UI Thread is slow: Heavy CPU work in
build()or event handlers (move heavy computation to Dart Isolates!). - If Raster Thread is slow: Complex GPU shaders, excessive save layers (
saveLayer()), or rendering unconstrained large images.
- If UI Thread is slow: Heavy CPU work in