Azure / azure-spatial-anchors-samples

Azure Spatial Anchors sample code
Other
293 stars 138 forks source link

Lagging on iOS 16.1 #380

Closed DinethD-VM closed 1 year ago

DinethD-VM commented 1 year ago

Trying to test the provided samples and running into heavy lag on iOS 16.1 soon as it starts capturing the environment.

Is this a known issue and if there is any solution to this?

Tested on

Note: Exact same project but running on a Google Pixel XL Gen 1 running Android 10, which works flawlessly.

snakex2000 commented 1 year ago

Thanks for filing this report. Adding the comment from the forum too stating this is working prior without lag with iOS 15.6 on the same iPad.

mrwellmann commented 1 year ago

There is an in progress issue with iOS 16 and ARKit XR Plugin see https://github.com/Unity-Technologies/arfoundation-samples/issues/988 and https://issuetracker.unity3d.com/issues/ios-fps-in-the-player-is-very-low-when-using-xrcamerasubsystem-dot-trygetlatestframe.

Our solution for now is 4.2.3 without multi-threaded rendering as this does not issues.

DinethD-VM commented 1 year ago

Many thanks. That worked.

Varnauld commented 1 year ago

Thank you for the awareness @mrwellmann!

(@XiangyuL-Microsoft tracking for this item is n#42109628)

cheles commented 1 year ago

@Varnauld @XiangyuL-Microsoft https://github.com/Unity-Technologies/arfoundation-samples/issues/988 has been marked as Resolved with fixes in AR Foundation/ARKit packages 4.13, 4.2.7, 5.0.3 as covered in https://issuetracker.unity3d.com/issues/ar-camera-feed-jitters-and-shakes-with-mutithreaded-rendering-when-running-on-ios-16 <5.0 versions are designed to be used in 2020.3 LTS so I've tested our sample with 4.2.7. I can't see any camera jitter or holograms drift w/o multi-thread rendering.