Post not yet marked as solved
Post marked as unsolved with 2 replies, 958 views
Hi.
In Picture in Picture, a large number of work queue threads are created and CPU usage increases considerably.
This happens when startPictureInPicture() is executed on a class created with AVSampleBufferController(contentSource:.init(...)). It does not matter how many times AVSampleBufferDisplayLayer() isenque()`, it is reproduced when the Picture in Picture screen appears.
Checking the work queue thread, it looks like it is run by AVTimer of AVKIt, but I can't figure out how to control this.
Does anyone know anything about it?
This seems to occur on iOS 16.1 or later.
See: https://github.com/uakihir0/UIPiPView/issues/17