viro icon indicating copy to clipboard operation
viro copied to clipboard

On IOS the app freezes when we open the camera for about 5-6 seconds before working again.

Open anxheloo opened this issue 2 months ago • 2 comments

On IOS when we open the camera the app freezes for about 5-6 seconds. In my case it happens when i render multiple ViroARImageMarkers in order to display a different ViroVideo for each target. THan it it ready to scan the Images and trigger videos based on targets. It looks like a high memory and CPU working that makes the app freeze. I am using React Native Bare, 0.81.4 and latest release of Viro. High memory persists even if i unmount. On unmount it lowers but still is high. Any suggestion ? Btw: Android works fine. @olimorrow

When i debug it using xcode, the moment we open the camere the cpu works more than 100% and memory jumps with at least 600mb.

I think this is what causes that freeze.

I am creating multiple ImageTargets the moment i open the camera so each target triggers a different remote url video.

I need some suggestion from the team. Able to provide source code. Thanks in advance!

anxheloo avatar Nov 06 '25 09:11 anxheloo

I recommend to test with the latest Viro version and of course a sample would be useful.

doranteseduardo avatar Nov 26 '25 22:11 doranteseduardo

@doranteseduardo Oliver was also aware that a high memory jump happens in IOS. The changelog doesn't address that. it also takes a lot of time in IOS to open and map multiple ImageMarkers with multiple ViroVideos, each video corresponds to a target.

anxheloo avatar Dec 09 '25 11:12 anxheloo