When using the Time Profiler on interactions with a UIScrollView
(containing many subviews) I often see CA::Transaction::commit()
in the heaviest stack trace. What is this method and how can I spend less time in it?
My educated guess is that this is how Core Animation layers are sent to the GPU and that this could be sped up by reducing the dimensions of and/or number of CALayer
s that must be rendered (i.e. the amount of data that must be sent to the GPU).
Your guess could be correct. Bare in mind that following things are typically also done in the CATransaction::commit()
CAAction
sIf you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With