I have seen this issue on both my own iOS app and the Camera Kit sample iOS app. Replicating the issue is rather simple: just launch the camera, select an AR lens, and start recording. The app would freeze for at least 3 seconds.
Upon closer inspection it seems that internally SCSDKCameraKit is hogging the main queue:
Thread Performance Checker: Thread running at User-interactive quality-of-service class waiting on a lower QoS thread running at Default quality-of-service class. Investigate ways to avoid priority inversions
PID: 5636, TID: 2723222
Backtrace
=================================================================
3 SCSDKCameraKit 0x0000000107b1c158 $sSo31SCCameraKitAdjustmentsProcessorP011SCSDKCameraB0E5apply10adjustment10ControllerQyd__qd___tKAC10AdjustmentRd__lF + 1302000
4 SCSDKCameraKit 0x0000000107b1be3c $sSo31SCCameraKitAdjustmentsProcessorP011SCSDKCameraB0E5apply10adjustment10ControllerQyd__qd___tKAC10AdjustmentRd__lF + 1301204
Does anyone know a way around this? It's really bad UX and first impression for any user of the video recording feature in my app