3 ms·
CoreAnimation runs animations on a background thread using state snapshots. The event loop is processing events during the animation. It is up to the programme
by xenadu02 9y ago
CoreAnimation runs animations on a background thread using state snapshots.
The event loop is processing events during the animation. It is up to the programmer to decide if events are ignored or processed during animations because what that means depends on what you want to happen: is the animation interactive and reversible? Does tapping reset the animation or does it start animating to the new state from its existing state?
CoreAnimation does the work based on the policies you select (eg: interpolating between a half-complete animation and the new desired end state).
- LeoNatan25 9y agoCorrection—CA animations process and render in a render server process. This is why even when the main thread is blocked, animations can continue.