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()
is
enque()`, 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.