google-ar / arcore-unity-sdk

ARCore SDK for Unity
https://developers.google.com/ar
Other
1.4k stars 400 forks source link

ArCoreUnity_destroySession locks UI thread for 5 seconds #64

Closed renaudbedard closed 6 years ago

renaudbedard commented 6 years ago

Calling Session.Destroy(); seems to lock the game for 5 second until the I/native: session_c_api.cc:308 Deleted ArSession. message finally appears, and the game becomes responsive again.

Does that mean one should not destroy the AR session if you're going out of and back into AR? Is there a way to pause and resume tracking?

chaosemer commented 6 years ago

There is no way currently to just disconnect from ARCore. I understand that five second stalls are a big deal, we will have a solution for the 1.0 release.

renaudbedard commented 6 years ago

Understood, thanks!

Crashthatch commented 6 years ago

Does anyone happen to have a workaround for this in the mean time?

chaosemer commented 6 years ago

We have not been able to reproduce this in ARCore 1.0.