stasel / WebRTC-iOS

A simple native WebRTC demo iOS app using swift
Apache License 2.0
1.12k stars 241 forks source link

high CPU load #114

Open mgmtcam22 opened 2 years ago

mgmtcam22 commented 2 years ago

Hi! Maybe someone knows.. I have a high CPU load during connection between ios ipad app and mac chrome page more than 100% and in the case between ios ipad app and ios safari 60%. What can be done about it?

stasel commented 2 years ago

WebRTC connection demands high resources due to intensive video rendering, encoding/decoding and sending data via the network. The difference between devices can be because of different encoders support (chrome may send something different that safari), the resolution and the fps of the video stream. Many things can change the cpu usage.

You can start investigation by reading the different SDPs sent and taking notes of the different audio and video codecs that are used