We have developed iOS app using WebRTC and ARKit for the video communication.We have used RealityKit with ARKit to add View or Text to specific position in real world. While sending the frame to the WebRTC we capture the screenshot of ARView with all the view which are present in current camera feed.We capture the view with help of CADisplayLink with 20 frame rate.
We took the reference of the Sticky Note Example for the above implementation. We have observed that after certain interval of time device starts to heat up.
Following are the various options we tried for this issue: Try to decrease frame rate of CADisplayLink. Disable most of the rendering options of ARView (RealityKit). We tried to capture the view using Replaykit. What modifications can be made to reduce the heating?