Search Unity

Restrict Unity Editor Processor Affinity via settings?

Discussion in 'Editor & General Support' started by sonicviz, May 5, 2019.

  1. sonicviz

    sonicviz

    Joined:
    May 19, 2009
    Posts:
    1,051
    I'm using Unity 2019.1.1f1 on a project for Oculus Go.

    5 times on opening a project or trying to build it has locked up my machine processing textures/shaders/lighting because it sucks up all 16 threads at 99% until the machine locks up and my only option is a hard reboot. Not a great development UX!.

    It's a Ryzen 1700 Overclocked to 3.8ghz, but it still locks up even if I reset it to Asus advanced settings (ie: not overclocked). 16 threads at 99% just pushes the temps above 80C which is unstable for Ryzen so it dies. On the stock cooling fan it's fine for general development/gaming and I have no issues otherwise.

    The only way I can control this is to start Unity editor and set the processor affinity to 6 threads so it only uses ~40% of the CPU at just ~70C and therefore doesn't lock my machine up and causing me to hard reboot.
    As explained here: https://www.tekrevue.com/tip/restrict-apps-cpu-cores-processor-affinity/

    Are there any Unity config settings where you can restrict Unity from doing this, as you have to reset the affinity every time the process starts which is a pita.

    Also, it's very rude for the editor to max the machine out this way by default. You're certainly not getting the job done faster if you have to reboot your machine multiple times.

    See also: https://forum.unity.com/threads/lightmap-baking-with-ryzen-7-1700.642988/#post-4308874

    ty!
     
    Last edited: May 5, 2019