'High memory usage in iOS Augmented Reality Apps

I was working on my app which uses AR functionality through Apple's ARKit and RealityKit, when I realised that loading any usdz file to a scene increases memory usage up to 400+ mb. The first idea was memory leak so I profiled my app, but found nothing. Then I thought about trying apples preset app for AR from Xcode (maybe I was doing something wrong), but the stock app with no code added from me shows the same result Apple's default AR app performance

So my question is: how to significantly reduce memory usage in AR apps in iOS and what causes it to be so high?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source