Shuffle icon indicating copy to clipboard operation
Shuffle copied to clipboard

Investigate layer rasterization performance improvements

Open mac-gallagher opened this issue 5 years ago • 3 comments

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.

mac-gallagher avatar Sep 02 '19 01:09 mac-gallagher

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

mac-gallagher avatar May 19 '20 09:05 mac-gallagher

Some great resources:

  • https://www.toptal.com/ios/ios-animation-and-tuning-for-efficiency
  • https://yalantis.com/blog/mastering-uikit-performance/

mac-gallagher avatar May 19 '20 09:05 mac-gallagher

Reopening since rasterization should be enabled by default on the footer and content to avoid jagged edges during dragging

mac-gallagher avatar Apr 12 '21 06:04 mac-gallagher