SCNView snapshot takes 0.5 second in xcode10_beta5

I need use SCNView snapshot API to do AR screenshot, before xcode 10, each time call snapshot, it response quickly. But since xcode 10 and ios 12, this API call take more than 0.5 second, it make our app very slow, can anyone help on this. Why the snapshot take 0.5 second since xcode 10? And whether apple developer will fix this issue. I this issue not handled, it will seriously affect our exist app. I'm waiting for your reply, many thanks!

Replies

Please file a bug report about issues you need resolved using our bug reporting tool at https://developer.apple.com/bug-reporting/

Hi.

Have you ever had this problem when using snapshot?

https://stackoverflow.com/questions/51397382/arkit-arscnview-snapshot-memory-leak

I had the exact same issue.
My app was running nicely on iOS 11.4 but since I updated my phone to iOS 12, sceneView.snapshot was freezing UI for 0.5-0.6s.
I fixed it by removing my sceneView.scene.lightingEnvironment.contents image.

I didn't make further research, I hope it will help anyone.