You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Camera usage cause terrible performance with Android devices. In Scout you can see that "Other overhead" take about 15-20 ms each camera frame when application uses Camera even with high-end devices with powerful CPUs.
This cause many lags and low performance for any AIR application that uses camera with Android devices.
Tested with multiple AIR versions, even with latest AIR 33.1.1.889 with multiple different Android devices (armv7, armv8, smartphones, tablets, TV Boxes) with different OS versions with different cameras (embedded and external USB).
Same problem in all cases.
Higher camera resolution cause more lags.
There is no such issues with Windows, macOS and iOS devices.
Steps to Reproduce
Launch code below with any Android device with camera. It just start camera and display it.
Just wondering do you have <containsVideo>true</containsVideo> inside android tag in manifest?
Screen goes black when you run first video in app if it's not there, so maybe it's also somehow connected to your problem...
No matter which containsVideo value will be used. Low performance in both cases.
Also no matter which disableMediaCodec value will be used.
Also the same issue if you try to use VideoTexture instead of Video to display camera.
In real applications I use <containsVideo>true</containsVideo> to avoid some video issues. But I think it not related to this issue.
Problem Description
Camera
usage cause terrible performance with Android devices. In Scout you can see that "Other overhead" take about 15-20 ms each camera frame when application usesCamera
even with high-end devices with powerful CPUs.This cause many lags and low performance for any AIR application that uses camera with Android devices.
May be it related that AIR still uses legacy Android
Camera
API https://developer.android.com/guide/topics/media/camera, notCameraX
https://developer.android.com/training/camerax orCamera2
https://developer.android.com/reference/android/hardware/camera2/package-summary.Tested with multiple AIR versions, even with latest AIR 33.1.1.889 with multiple different Android devices (armv7, armv8, smartphones, tablets, TV Boxes) with different OS versions with different cameras (embedded and external USB).
Same problem in all cases.
Higher camera resolution cause more lags.
There is no such issues with Windows, macOS and iOS devices.
Steps to Reproduce
Launch code below with any Android device with camera. It just start camera and display it.
Application example with sources and Scout log attached.
android_camera_lags.zip
Actual Result:
Application low performance. In Scout you can see that "Other overhead" take about 15-20 ms each camera frame.
Expected Result:
No performance issues.
Known Workarounds
none
May be write own native extension for camera usage.
The text was updated successfully, but these errors were encountered: