fix: Frame Processor FPS (#1288)

* fix: Build using XCode 14

* fix: Throttle FP by start time rather than end time
This commit is contained in:
Thomas Coldwell
2022-10-20 11:49:22 +01:00
committed by GitHub
parent 4781ad9835
commit 52a1d50d91
4 changed files with 20 additions and 8 deletions

View File

@@ -94,7 +94,7 @@ public final class CameraView: UIView {
internal var isRecording = false
internal var recordingSession: RecordingSession?
@objc public var frameProcessorCallback: FrameProcessorCallback?
internal var lastFrameProcessorCall = DispatchTime.now()
internal var lastFrameProcessorCall = DispatchTime.now().uptimeNanoseconds
// CameraView+TakePhoto
internal var photoCaptureDelegates: [PhotoCaptureDelegate] = []
// CameraView+Zoom