Maintaining good scroll performance when using AVPlayer
问题 I'm working on an application where there is a collection view, and cells of the collection view can contain video. Right now I'm displaying the video using AVPlayer and AVPlayerLayer . Unfortunately, the scrolling performance is terrible. It seems like AVPlayer , AVPlayerItem , and AVPlayerLayer do a lot of their work on the main thread. They are constantly taking out locks, waiting on semaphores, etc. which is blocking the main thread and causing severe frame drops. Is there any way to tell