Search Unity

Massive performance hit when updating from 2.1.0p5 to 2.1.0 (or higher)

Discussion in 'AR' started by TobiasW, Jun 1, 2020.

  1. TobiasW

    TobiasW

    Joined:
    Jun 18, 2011
    Posts:
    91
    Hello,

    I'm currently trying to optimize performance for an app I started last year that was still running on ARCore XR Plugin 2.0.2. When trying to update the ARCore XR Plugin, performance got an extremely big hit, and it seems that the culprit is ARSession.Update(). It rose from ~3ms in 2.1.0p5 up to ~50ms in the 2.1.0 release.

    2.1.0p5:
    2.1.0p5.png
    2.1.0:
    2.1.0.png
    I also tried 3.1.3 to see if this was fixed later, but same behaviour:
    3.1.3.png
     
  2. TobiasW

    TobiasW

    Joined:
    Jun 18, 2011
    Posts:
    91
    Alright, a little bit of testing with 3.1.3 later - seems that it was the "Match Frame Rate" option of ARSession. What exactly does that do, and why does it try to push my frame rate to 15?