ant-media / Ant-Media-Server

Ant Media Server is a live streaming engine software that provides adaptive, ultra low latency streaming by using WebRTC technology with ~0.5 seconds latency. Ant Media Server is auto-scalable and it can run on-premise or on-cloud.
https://antmedia.io
Other
4.3k stars 636 forks source link

Performance issue in P2P Connection #3551

Open mynkintrotuce opened 3 years ago

mynkintrotuce commented 3 years ago

I am working with Ant Media iOS SDK and found that when making a P2P connection it is having some issue with performance when secondary frame come into action. When there is only primary frame is being rendered it is using 12-15% of CPU but when secondary frame(Someone joined the same same stream id) come into frame CPU usage is going to 95-100%. Please provide some solution for this issue.

iOS

Steps to reproduce

  1. Set up Ant Media and make a P2P connection
  2. Join the same Stream id with some other device
  3. Look into the CPU usage

Expected behaviour

Should use lower percentage of CPU and should not be increasing with the period of time

Actual behaviour

Higher CPU usage when using joining from secondary device

Primary Only Secondary Frame is available
mekya commented 3 years ago

Thank you for the issue. I'm moving it to the backlog to schedule. I hope we can schedule it on next week.