Search Unity

Unity Editor - from version 2019 on is killing my CPU

Discussion in 'Editor & General Support' started by agior312, Apr 20, 2020.

  1. agior312

    agior312

    Joined:
    Aug 29, 2019
    Posts:
    8
    Hi everyone,

    I'm facing a bad issue on my PC.
    Working with a version higher than 2018, a few seconds after I play a scene ( empty scenes too :( ) the CPU temperature rises up to 83°C and the CPU fan seems like a plane just before take off.

    The workaround is to use 2018.x.x LTS that is great as well, but I'd like to benefit from the new features in the future.

    I'm installing all the new version as soon as they're available to find out if it has been "fixed", with no success until now.

    Any idea for a possible cause?

    2 different PCs affected

    - Intel i7 3ghz 8-core + 16 GB RAM (currently using this)
    - AMD Ryzen 5 3.6ghz 4-core + 8 GB RAM
     
  2. Joe-Censored

    Joe-Censored

    Joined:
    Mar 26, 2013
    Posts:
    11,847
    Try using the profiler on the editor, and see what Unity is busy doing.
     
  3. agior312

    agior312

    Joined:
    Aug 29, 2019
    Posts:
    8
    I've tried, obviously the graph shows high values on "other". Not so helpful in my case.
     
  4. MartinTilo

    MartinTilo

    Unity Technologies

    Joined:
    Aug 16, 2017
    Posts:
    2,461
    Switch the Profiler target from Playmode to Editor. I expect most of the "Other" to be Editor rather than Playmode data.
    Sounds like the same issue as the one in this thread, if so please file a bug report. I'm not sure if the other user has already reported it and even if we get duplicates, that's perfectly fine.
     
  5. MartinTilo

    MartinTilo

    Unity Technologies

    Joined:
    Aug 16, 2017
    Posts:
    2,461
    Also, if you go through the items in e.g. Hierarchy view, the chart highlight can tell you how much any item in that hierarchy has contributed towards each category.
     
  6. agior312

    agior312

    Joined:
    Aug 29, 2019
    Posts:
    8
    Hi Martin,
    thanks for your suggestions.
    I'll try to better understand Profiler and test as soon as I can, consider that I'm a self-teaching beginner at Unity and I'm not so expert on what to look for with the Profiler. Also I've just a few seconds for troubleshooting before the CPU starts its nuclear fission

    Done both for playmode and editor. Is there a way I can give you the data binaries?
     
    Last edited: Apr 22, 2020
  7. MartinTilo

    MartinTilo

    Unity Technologies

    Joined:
    Aug 16, 2017
    Posts:
    2,461
    You can zip them and upload them here or attach them to a bug report and post the case number here.
     
  8. MartinTilo

    MartinTilo

    Unity Technologies

    Joined:
    Aug 16, 2017
    Posts:
    2,461
    Also try to go to Edit>Preferences>General>Interaction Mode and set that to something that's a NOT "No Throttling" and see if any of these options help.
     
  9. agior312

    agior312

    Joined:
    Aug 29, 2019
    Posts:
    8
    Hi @MartinTilo
    profiler data uploaded (playmode + editor).
    About the Interaction Mode it already was on Default, changed to Monitor Refresh Rate but nothing seems to change

    Thanks
     

    Attached Files:

  10. MartinTilo

    MartinTilo

    Unity Technologies

    Joined:
    Aug 16, 2017
    Posts:
    2,461
    Right so, your Editor loop is properly throttled. Your Play Mode is running as fast as it can, i.e. about 833 FPS. So naturally, that would put some heat on the hardware. Luckily that is easy to mitigate:
    1. Go to your game view
    2. in the Aspect & resolution drop down (second drop down in the toolbar) tic "VSync (Game View only)"
    alternatively and/or additionally, you might want to
    • go to your Quality Settings and turn on vSync
      or
    • add a script to your scene and in Start or Awake, set Application.targetFrameRate to something more sensible, e.g. 60 or even 100
     
    Joe-Censored and valarnur like this.
  11. CodeRonnie

    CodeRonnie

    Joined:
    Oct 2, 2015
    Posts:
    531
    @MartinTilo I just wanted to point out that the Interaction Mode setting is not documented in the Unity manual for version 2019.3. I ended up here because I was trying to find a description for what exactly this setting does. Can you try to get a description added to the manual?
     
  12. MartinTilo

    MartinTilo

    Unity Technologies

    Joined:
    Aug 16, 2017
    Posts:
    2,461
    Thanks for bringing that up @CodeRonnie, an update to the manual is in the works
     
  13. agior312

    agior312

    Joined:
    Aug 29, 2019
    Posts:
    8
    Hi Martin, thanks for the time you gave to me, but unfortunately all of these advices didn't lead to a solution to my problem, cpu still on 50% when in play mode and temperature > 80°C.
    The weird thing is that this happens on 3 different PCs now. I bought a new one (the intel i7 + 16GB) some months ago as I thought Ryzen 4-core + 8GB could be a bottleneck, but I just think I'll be stuck on 2018 for a while.
     
  14. MartinTilo

    MartinTilo

    Unity Technologies

    Joined:
    Aug 16, 2017
    Posts:
    2,461
    Have you had another look at the Profiler?
     
  15. agior312

    agior312

    Joined:
    Aug 29, 2019
    Posts:
    8
    Hi everyone, just FYI I managed to solve this issue.
    I found out that fan speed and CPU temperature was simply related to Intel Turbo Boost, so I went in power management settings and set CPU max speed to 99%. This solved for me, for Unity and other software too.
    Probably, also with AMD CPU, the same setting would give the same effect.
     
  16. nsmith1024

    nsmith1024

    Joined:
    Mar 18, 2014
    Posts:
    870
    Hello,

    Im having the same problem, the fan is constantly ON full blast while unity is open, i cant understand it. Do the engineers at unity notice that the fan is on all the time while using the editor, is that ok with them? Do they want to burn out our fan and CPU? Did they even test Unity a little bit before releasing it to the public? I mean something like this is hard to miss!!

    In using Unity 2021.2.17f1

    As soon as unity opens the computer starts overheating, even if its just sitting there doing nothing, is that the default operation of Unity, to overheat peoples computer?
     
    Last edited: Apr 20, 2022
  17. Ryiah

    Ryiah

    Joined:
    Oct 11, 2012
    Posts:
    21,205
    Laptop manufacturers would be pretty stupid to install a fan that can't handle spinning, and I don't know what temp you see but the 83C in the original post is well within the limits of a laptop. In fact it's very normal for a laptop to sit at 100C for long periods of time.

    Below is an entry from Intel's FAQ that discusses overheating. Like it mentions a CPU is designed to throttle itself to reduce power consumption and thus heat output but if for some reason that fails the CPU will shut off the entire system. That your laptop isn't shutting off shows that it's working as intended.

    upload_2022-4-20_0-0-13.png

    Here is a quote from Robert Hallock (Director of Technical Marketing) at AMD stating that a processor running in the up to 90C is typical and by design for Zen 3 (Ryzen 5000).

    upload_2022-4-20_0-8-11.png

    All of the above applies to desktops too. Go watch a hardware reviewer that shows temperatures like Linus Tech Tips and you'll see that Intel CPUs will hit 100C and only then will they start throttling themselves to reduce heat output.

    I know it's easy to freak out at this kind of thing. I was worried when I first bought my 5950X and my heavy duty air cooler (Noctua NH-D15) was not reducing the temperature only to discover that it as soon as the temp went down the processor simply gave itself more power to go faster. It literally is overclocking itself.
     
    Last edited: Apr 20, 2022
  18. nsmith1024

    nsmith1024

    Joined:
    Mar 18, 2014
    Posts:
    870
    What about my mental health, constantly listening to the fan, its hard to concentrate. Why is it necessary for unity to do that just by opening the program and not doing anything? Im pretty sure its shortening the life of my computer.

    If you have a car and you constantly rev it to the red line it wont last long!
     
  19. MartinTilo

    MartinTilo

    Unity Technologies

    Joined:
    Aug 16, 2017
    Posts:
    2,461
    I think you might be hitting the issue reported here.
    An easy check is to open the editor, check your CPU usage, then open the Object Picker and checking again (those are the minimum repro steps).

    For a more detailed check you can use the Profiler to confirm that this is the case. If you use the Profiler, turn on Deep Profiler to see the details about Search taking up the time. Keep in mind that the Domain Reload triggered by turning on Deep Profiler will stop the Search loop and that you'll have to retrigger it by opening the Object picker again.

    The good news is that the fix for that has landed on 2022.2.0a12 and will be backported to 2021.3.

    For any one else coming from the future to this thread, when on a version with the fix for this bug, please check the Profiler. This kind of behavior might be an issue with your drivers or PC setup OR a bug, and one of the kind that could have a myriad of potential causes. The System Monitor is not enough to determine the cause.
     
    Last edited: Apr 28, 2022
  20. Chusuk

    Chusuk

    Joined:
    Apr 19, 2021
    Posts:
    43
    Sorry for digging up this thread but given it comes up on a google search for high CPU usage in editor...I thought I'd updated it with the solution to the high CPU I've seen today.

    Using Unity editor 2021.3.18f1 with CPU sitting at roughly 50% with nothing playing.

    Profiler seemed to show lots of CPU cycles being taken by Probuilder. Sure enough, without the Probuilder tab being open or at the front of a tab stack, CPU goes back to a 1-2%

    Edit: Using Probuilder 5.0.6
     
  21. lacas8282

    lacas8282

    Joined:
    Apr 25, 2015
    Posts:
    139
    today I got 100 celsius on my cpu (intel i7 12gen) red lights in the PC, so I immediatelly turned off unity 2022.2.10 from PLay mode