Lens Loading & Performance?
Hi!
I notice while a Lens loads the camera hangs for 1-2 seconds which is a less than desirable experience. It's the same in Snapchat though so I'm wondering if we can chart a solution for our CameraKit usecases.
Would be great to know what actually causes this hang - ARKit services kicking on? Purely inefficient synchronous Lens loading? Let's figure it out!
Answers
-
@aidan Ops scratch my last comment^.
Our eng team confirmed the Camera hang for 1-2sec is not normal. They are requesting the following from you to investigate and resolve:
1. Please provide us more details about your set up.
2. Please provide us a video of the hang.
3. Please confirm if the hang is reproducible on the Camera Kit sample app.I'll open up a direct message thread if you prefer to share the above two items privately.
Thanks!
0 -
- Please provide us more details about your set up.
I think it has to do with the Lenses themselves. Back facing, world tracking + world meshing. Heavy on the AR feature set is my assumption of why it hangs. Otherwise, exporting Lens Studio 4.40.1, using the most recent CameraKit, loading from the Snap cloud.
- Please provide us a video of the hang.
I've recorded two screen captures for you to review!
Snapchat - Here's a good capture of the quite aggressive loading bug inside Snapchat. Remembering back I believe it started when World Mesh was added to my Adventure Engine:
CameraKit - I even go as far as preload the camera + CameraKit in background and keep it observed (which makes it feel much faster) however as soon as I apply the Lens it hangs for a second:
- Please confirm if the hang is reproducible on the Camera Kit sample app.
The hang is reproducible in the sample app
1