Shuffle
Shuffle copied to clipboard
Investigate layer rasterization performance improvements
Curious to know whether setting
layer.shouldRasterize = true
layer.rasterizationScale = UIScreen.main.scale
on the swipe cards provides any performance improvements. Since the overlay views animate their alpha value, the answer is not cut-and-dry to me. Maybe set it only on certain subviews?Should profile with Core Animation instrument.
Decided to table this issue. The dropped FPS is only visible on simulators. On multiple real iOS devices, the Core Animation profiler reached 60 FPS under constant swiping. Can reopen this if necessary
Some great resources:
- https://www.toptal.com/ios/ios-animation-and-tuning-for-efficiency
- https://yalantis.com/blog/mastering-uikit-performance/
Reopening since rasterization should be enabled by default on the footer and content to avoid jagged edges during dragging