Search Unity

Bug ARSession Performance Issue

Discussion in 'AR' started by PSST_Adam, Jan 15, 2021.

  1. PSST_Adam

    PSST_Adam

    Joined:
    Aug 26, 2020
    Posts:
    15
    Hi,

    We are using ARFoundation in our project with Unity as a Library on iOS. We are noticing that when moving between Unity (and an AR scene) and native, on subsequent AR sessions we get a performance drop on iOS down to around 40fps from 60fps (on an iPhone 12 Pro Max).

    From profiling we can see two things:
    1) The energy impact is set to Very High in Xcode. But this seems to be the case no matter which session we are in, Unity seems to hit this threshold with AR enabled.
    2) We can see that the ARSession component takes up around 40% of the CPU time each frame, but we are unable to dive any deeper to find out what is causing this.

    Can anyone give any insights into where to look for a solution here, or what would cause the ARSession to be so performance intensive at certain times?

    Thanks,
    Adam
     
  2. TreyK-47

    TreyK-47

    Unity Technologies

    Joined:
    Oct 22, 2019
    Posts:
    1,822
    Most likely this is due to thermal throttling. See this thread for more.