Unity-Technologies/com.unity.webrtc

[BUG]: High temperature and battery consumption on Android AR glasses

LoopIssuer opened this issue · 2 comments

Package version

3.0.0-pre.7

Environment

* OS: Android
* Unity version:
2022.3.27

Steps To Reproduce

Use WebRTC unity plugin to stream video within Unity application with Snapdragon Spaces SDK on Android device.

Current Behavior

Hello Unity WebRTC Team,

We have noticed that our Unity application, which utilizes the SnapdragonSpaces SDK along with your com.unity.webrtc library, is causing rapid battery drain and device overheating. Our device is the Argo by Digilens, based on Android.

We’ve attached a screenshot from our profiler showing how the application’s CPU cores are constantly active. The silver cores run at 787MHz (more efficient), while the gold cores operate at 1.2GHz (high performance but less efficient). As a result, the internal temperature of the SoC reaches up to 74°C.

Our questions are:

Is there any way to reduce the temperature during WebRTC usage (and battery consumption)?
Is it expected behavior for the WebRTC library to cause such significant core load, as shown in the screenshot?
We appreciate your guidance on mitigating these performance issues.

Expected Behavior

Reduce device temperature when using webRTC plugin - during video call device is up to 52 C degrees.

Anything else?

image

image

@karasusan
Please help with above issue.

@karasusan
Please help with above issue.