Camera2 API .close() causes major frame drop

348 Views Asked by At

I've got an app in which I have camera1 api for the front camera and camera2 api for the back camera (don't worry, I've got a camera1 back activity as well).

When I go from back camera to front camera, I get a msg in LogCat telling me I skipped 50+ frames, which is enough to cause a serious looking lag in the UI/UX.

Any ideas on how to avoid this lag ? seems like mCameraDevice.close() is a real killer !

0

There are 0 best solutions below