Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Feedback High Energy Consumption.

Discussion in 'Unity Hub' started by georgeq, Aug 3, 2023.

  1. georgeq

    georgeq

    Joined:
    Mar 5, 2014
    Posts:
    662
    I'm running Unity on a Macbook Air M2 and the Unity HUB is always listed as a High Energy Consumption App. But is not only that, the hardware also gets hotter, so why is that?... Most of the time the Unit Hub is just sitting there in the background, waiting, so it should have a minimal energy consumption.

    I don't know the Mac OS internals, but I remember the old days when I used to write C code for Windows, there was a Sleep function that you would usually call when your app was sitting in background, I remember if you called it like this: Sleep(0) that kind of hugged the CPU and you could actually hear the computer's fan going to a higher speed, very shortly after your app went to background mode. To prevent that you had to use Sleep(1), that small change was the difference between overheating the CPU and keeping it cool.

    Could anyone please, take a look at the code and make sure a situation like this is not happening?... or just do something to keep the CPU cool when not being used.
     
  2. luispedrofonseca

    luispedrofonseca

    Joined:
    Aug 29, 2012
    Posts:
    934
    Because the Hub is by far the worst piece of software on my (and yours probably) computer. I can't understand how something that should be so simple is as crappy as this.

    Give this a go and you'll never look back: https://github.com/Ravbug/UnityHubNative
     
    Lars-Steenhoff likes this.
  3. georgeq

    georgeq

    Joined:
    Mar 5, 2014
    Posts:
    662
    Thank you... I'll surely take a look as soon as I have time.