Order the steps
Order the stages from touch to pixel.
- The touchscreen detects the touch and the system routes the event to the app
- Core Animation commits the transaction at the end of the run loop turn
- The render server renders the layer tree on the GPU
- The display shows the frame at the next refresh
- Your handler updates state, marking layout and display
- The window hit-tests and gesture recognizers run
Hint 1 of 1
Hardware first, display last.
Choose an answer, then open Show answer below to check it.
Show answer
Answer: A F E B C D
- The touchscreen detects the touch and the system routes the event to the app Hardware and system services deliver events to the foreground app.
- The window hit-tests and gesture recognizers run This decides which view and handler receive the touch.
- Your handler updates state, marking layout and display Your code runs on the main thread here.
- Core Animation commits the transaction at the end of the run loop turn Layer changes are batched into one commit.
- The render server renders the layer tree on the GPU Rendering happens in a separate process.
- The display shows the frame at the next refresh Pixels change on the display's refresh.