I wanted to play around with the iOS camera API today, and I see weird behavior where the first capture takes much longer than subsequent

Is this inescapable? Is there a way to fix this?

Tried:

- Release mode
- setPreparedPhotoSettingsArray
- Different device and iOS version
- Dispatch queues
- Priming with a "fake capture" and just not using it (gross, triggers shutter sound)

Code: https://gist.github.com/christianselig/70bc09dfb5ffd54aa1d37a8150813d73

@christianselig I’ve seen the same thing with starting video capture, but it doesn’t seem to happen with release builds
@finnvoorhees Dang, I wish I saw the same, seems to still be happening to me with release mode. To be clear, are you just setting the build config to Release under schemes?
@christianselig can’t remember if it was the build config or just not attaching the debugger that fixed it, but one of them did
@christianselig have you tried capturing without having the debugger attached? with video capture the first capture hangs a bit for some reason, but only when running directly from Xcode
@pimc Yeah it definitely speeds things up but is not a groundbreaking change unfortunately
@christianselig What's up with the white prohibition sign on the app icon? I also sometimes see it in the same place when running the app from Xcode.