Device begins to heat up after certain interval of time.

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?

There are many contributing factors that could be significant to device thermals in the scenario you have described. The best course of action is try and identify what components of your app are most significant in causing the issue. To do this, I recommend that you disable different pieces of your app to see how it affects performance. It could also be helpful to look at a Game Performance trace of your app in Instruments, to see if you can identify what functionality is utilizing a significant amount of resources.

If you determine that the largest contributing factor is the ARView itself, then you may want to consider manually configuring its ARSession, and selecting a videoFormat for your configuration that has a lower framerate/resolution. This can have a significant impact on performance and thermals.

You can also alter the resolution that RealityKit renders the ARView at by adjusting its contentScaleFactor, this can also improve performance and thermals at the cost of visual quality.

We capture the view with help of CADisplayLink with 20 frame rate.

What mechanism are you using to "capture the view" here? I suspect that this would be somewhat heavyweight.

Device begins to heat up after certain interval of time.
 
 
Q