Enhance/optimize performance for low specs android devices #1002
Unanswered
MTayyabSarfraz
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi @pedroSG94 earlier I was able to stream a high-quality stream over FB as per your direction by setting optimal resolutions, thanks for that valuable and prompt feedback.
Currently i'm using 4 different devices for testing.
Octa-core , GPU : Adreno 618
for ReamlMe 7 and POCO you would have noticed that both devices have almost the same specs(Nokia 3.4 with much lesser specs is very smooth just like RealME), yet while streaming with custom overlays(RTMPs - applying android view filter) Realme 7 performs well...while Poco x3 devices hang/lags...i mean the UI and the camera feed UI stucks while moving the camera around/or there is some animation being played on my webview which I am passing as a view to
AndroidViewRenderer
.The same goes for the other 2 devices, On a performance scale if I order these devices from Good to worse here is the order.
RealMe > Nokia 3.4 > Samsung Galaxy Tab > Poco x3
I would like to know what are the factors that affect the performance based on the above observation.
AND would love to know how I can manage to avoid/minimize this lag,as I believe there is always a way to do so as there are many apps out there with same functionality supporting much lesser specs devices.
!
i am using
cameraBase2
APIthe stream resolution I'm sending while preparing video is :
return prepareVideo(1920, 1080, 60, 1500 * 1024, rotation);
and for camera preview size I'm setting it as following:
Thanks in advance! :)
here are some logs desc that might be useful..coming from a lagging device...it shows too much work is being done on the main thread..
Beta Was this translation helpful? Give feedback.
All reactions