fix: Fix FpsGraph not updating

This commit is contained in:
Marc Rousavy 2023-10-14 12:41:53 +02:00
parent 62ca95725d
commit 315fcb68a8
No known key found for this signature in database
GPG Key ID: 83BEF0F19E8F5321

View File

@ -284,8 +284,10 @@ public final class CameraView: UIView, CameraSessionDelegate {
#if DEBUG #if DEBUG
if let fpsGraph { if let fpsGraph {
DispatchQueue.main.async {
fpsGraph.onTick(CACurrentMediaTime()) fpsGraph.onTick(CACurrentMediaTime())
} }
}
#endif #endif
} }