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.
  2. Dismiss Notice

Question Why does version 2022.3.4f1 performs up to 4 times better than others?

Discussion in 'Editor & General Support' started by aurban1981, Sep 9, 2023.

  1. aurban1981

    aurban1981

    Joined:
    Feb 13, 2020
    Posts:
    5
    Dear Community,

    I'm just getting started with Unity. A couple of days ago I found a weird issue. I have a MacBook Air with M1 and a MacMini with M2 Pro. The behaviour is the same on both systems.

    I had version 2022.3.4f1 installed and was getting good fps when I was testing my game. I updated to version 2022.3.9f1 and performance dropped to less than a third. I tried other versions like 2022.3.8f1 or even older version from 2021 they all performed much worse than 2022.3.4f1
    I also tried it with all the sample games from Unity, e.g. Carts, Lego, Jump&Run, ... always with the same result, version 2022.3.4f1 was way more performant than all the others.

    I tried the same on my Windows Laptop and could not find any difference there, so I assume it's a Mac thing.
    I really would like to understand what's going on and what I have to do to get back the higher fps.
    I also attached two screenshots where you can see the difference.

    I would really appreciate any hints and help I can get.

    Screenshot 2023-09-09 at 10.22.33.png Screenshot 2023-09-09 at 10.21.27.png
     
  2. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    4,362
    1. Run the profiler to see what causes lower performance
    2. Are you sure this is not some kind of vsync
    3. Did you delete the library folder after upgrading
     
    CodeSmile and Kurt-Dekker like this.
  3. CodeSmile

    CodeSmile

    Joined:
    Apr 10, 2014
    Posts:
    3,899
    Also, be sure to test 2022.3.4 again after having observed the performance drop. Chances are, it may be a system-wide or project issue that began around the time you upgraded and 2022.3.4 may be affected the same way.
     
  4. aurban1981

    aurban1981

    Joined:
    Feb 13, 2020
    Posts:
    5
    Hi all,

    thanks for the hints. I already tried it with complete fresh installations of both versions on both Macs, also with complete fresh projects always with the same result. I also looked into the Profiler but I couldn't figure something out there but that might be because I'm not sure what to look for, since I'm new to Unity.

    @DevDunk: I tried it with vsync off and on but it was behaving the same way
    @CodeSmile: when I take project xyz and switch back and forth between the two versions I also get the results as described.

    I uploaded two Profiling samples to my OneDrive maybe someone here can help me to figure something out.

    perform4f1.data.zip
    perform9f1.data.zip
     
  5. Unifikation

    Unifikation

    Joined:
    Jan 4, 2023
    Posts:
    1,026
    This could have something to do with the efforts to fix the glitches, flashes and stutters in earlier versions of 2022.3 on m1/2 chips being released in 2022.3.5 (I think it was here, from memory).

    I'm using 2022.3.1 because it's not got as many problems as subsequent versions, but for smooth frame rates does require that I open another instance of a new Unity in the background, and make sure to have the Scene view in that unused Unity version focused and preferably taking up a reasonable amount of the screen.

    This causes this instance of Unity to use some resources in such a way that the actually used version of Unity has a clearer (seemingly) run at the GPU, causing the stutters, glitches and flashes to all begone when in Play mode.
     
  6. aurban1981

    aurban1981

    Joined:
    Feb 13, 2020
    Posts:
    5
    @Unifikation yes I thought that as well after reading some posts about those issues. Currently I only get the much better frame rate within version version 2022.3.4f1 all others versions behave worse...

    Maybe a "bug in that version which plays out nice regarding the fps?!

    Next thing I will try is to integrate a simple fps counter in my project and build it and see how that behaves... otherwise I'm running out of ideas so far :)
     
    Unifikation likes this.
  7. aurban1981

    aurban1981

    Joined:
    Feb 13, 2020
    Posts:
    5
    Also it seems version 2022.3.4f1 does a better job in utilising CPU and GPU Screenshot 2023-09-09 at 18.17.47.png Screenshot 2023-09-09 at 18.18.49.png
     
    IndieFist and Unifikation like this.
  8. IndieFist

    IndieFist

    Joined:
    Jul 18, 2013
    Posts:
    515
    But there is also the same when you make a build? this is for android? pc? if you make a build for android have you see a change on ANR %?
     
  9. aurban1981

    aurban1981

    Joined:
    Feb 13, 2020
    Posts:
    5
    @IndieFist I currently tested it only locally on my Mac but later today I want to do some more tests on other platforms, hope I can figure something out here