Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

Discussion Significant performance regression. 2020.3 > 2021.3/2022.2

Discussion in 'Editor & General Support' started by aducceschi, Oct 18, 2022.

  1. aducceschi

    aducceschi

    Joined:
    Feb 9, 2022
    Posts:
    29
    Hi! I have updated my project from 2020.3 to 2022.2.0b11. I work on a Quest 2. Before I had a solid 90 FPS and after updating I have a framerate of around 65-70FPS. I have compared profilers results from both versions, and for whatever reason the "EarlyUpdate.XRUpdate" call has increased its cost of 3ms to around 6-8ms consistently. Does anybody by chance know why this is the case? (I have deep profile turned on but it doesn't tell me what this call does). I compile the project always with IL2CPP on Master mode. And I use DOTS, which I updated from 0.51 to 1.0. I use Vulkan and use nearly all Vulkan optimizations provided in the project settings.

    Before updating:

    Average.png

    After updating:
    Screenshot_2022-10-18_at_17.11.05.png Also it has a really weird pattern now, which disappears if I toggle the cost from the graph.
     
  2. ash_at_unity3d

    ash_at_unity3d

    Unity Technologies

    Joined:
    Jan 9, 2020
    Posts:
    41
    A couple of questions:
    1. Are you using URP?
    2. Just clarifying, you're using the Oculus provider, and not OpenXR? And if so, what versions are you using?
     
    aducceschi likes this.
  3. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    2,522
    aducceschi likes this.
  4. aducceschi

    aducceschi

    Joined:
    Feb 9, 2022
    Posts:
    29
  5. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    2,522
    aducceschi likes this.