Unity-Technologies / arfoundation-samples

Example content for Unity projects based on AR Foundation
Other
2.98k stars 1.11k forks source link

Framerate locked to 30fps on android??? #1048

Closed shoukailiang closed 1 year ago

shoukailiang commented 1 year ago

version:unity2020.3.x lts arfoundation:4.1.10 image In my Xiaomi 13 and Xiaomi 8 ,the framerate locked to 30fps. But in my iphoneX ,the framerate is 60fps. I don't quite understand why Android is locked at 30fps

tdmowrer commented 1 year ago

ARCore only supports 30 fps on most Android devices. A few support higher frame rates; see https://developers.google.com/ar/devices

By default, AR Foundation sets the application frame rate to match the ARCore frame rate (30 fps on most devices). You can disable this on the ARSession component, which would allow your app fps to be higher; however the ARCore frame will no longer be synced with the app frame, which may cause the passthrough to appear less smooth.

shoukailiang commented 1 year ago

Thank you for your reply. It seems that ARKit can reach 60fps. I have another question. Can it exceed 60fps in iPad Pro 2021 (m1, 120hz)?

tdmowrer commented 1 year ago

ARKit has been 60 Hertz since launch. I don't know whether newer devices support higher frame rates.

shoukailiang commented 1 year ago

Thanks.