Skip to main content
InterviewHubPRO
Section Overview
Q43

Question 43 of 50

Part 3: Instruments Profiling, App Architecture & Production Hardening (25 - 35)

86%
iOS Platform & SwiftUI (50 Qs)•Part 3: Instruments Profiling, App Architecture & Production Hardening (25 - 35)

Core Animation Render Pipeline: Commit transaction, Render Server, and Offscreen Rendering.

senior LevelPerformancePipesCI/CD & DevOps

In Simple Words: How pixels reach the iPhone display hardware:

  1. Commit Transaction: App prepares view layers and sends serialized hierarchy to the out-of-process Render Server (backboardd).
  2. GPU Drawing: The GPU computes shaders and draws layers into the frame buffer.
  3. Offscreen Rendering Hazard: Occurs when the GPU cannot draw content directly into the frame buffer in a single pass (e.g. unrounded shadows, masks, cornerRadius combined with masksToBounds).
    • Forces the GPU to allocate an offscreen buffer and switch render targets twice per frame, cutting frame rates in half! Fix by setting layer.shadowPath explicitly.