Search Unity

Antimalware Service Executable causing Editor slowdown

Discussion in 'Editor & General Support' started by vestigial, Nov 18, 2017.

  1. vestigial

    vestigial

    Joined:
    May 9, 2015
    Posts:
    37
    Does anyone else have problems where the Realtime Protection feature of Windows Defender causes a big performance drop in the Unity editor? I'm using 2017.1, and seemingly randomly the antivirus scan will spin up and eat 25% of my CPU, leaving Unity sluggish. This applies to both in play mode and just messing around in the editor.

    In the profiler, the pause occurs during Gfx.WaitForPresent. My only recourse is to disable realtime protection. I tried excluding the Unity folder, project folder, Unity process, from the antivirus scan, but it didn't help.

    Has anyone else experienced this?
     
  2. AGSMarcinDraszczuk

    AGSMarcinDraszczuk

    Joined:
    Mar 31, 2015
    Posts:
    21
    Noticed this today, will let you know if I find out what's causing it.
     
  3. Baste

    Baste

    Joined:
    Jan 24, 2013
    Posts:
    4,205
    You can set Windows defender to ignore certain folders. Making it ignore Unity's project folders could help.
     
    Julien_ likes this.
  4. sebsmax

    sebsmax

    Joined:
    Sep 8, 2015
    Posts:
    70
    I got the same issue Today!
    Unity Editor was unusable even with an empty project (1fps), and Windows Defender (Antimalware service executable) was using 20% of my CPU when Unity window was focused.
    I got it solved by removing the real time protection of Windows defender
     
    Last edited: Nov 25, 2017
  5. AGSMarcinDraszczuk

    AGSMarcinDraszczuk

    Joined:
    Mar 31, 2015
    Posts:
    21
    Found out that it was Razer Chroma Unity Plugin causing most of the extra CPU usage. However adding Windows Defender exclusion helped too (had to ignore "Unity.exe" process, just ignoring installation folder and project folder didn't work for me though).
     
    Last edited: Nov 27, 2017
  6. Valkrysa_Herja

    Valkrysa_Herja

    Joined:
    Aug 1, 2014
    Posts:
    28
    Just wanted to note here that I also was having issues with Windows Defender getting really active when Unity was the focused window and particularly in Play Mode. I excluded the project folder and the exe's and it seems to have helped though that's not the ideal solution.
     
    Julien_ likes this.
  7. metroidsnes

    metroidsnes

    Joined:
    Jan 5, 2014
    Posts:
    63
    I had the same problem. For me it was enough to add Windows Defender exception for Unity process and other processes as well.
     
    AnomalusUndrdog and Julien_ like this.
  8. robbel

    robbel

    Joined:
    Nov 11, 2016
    Posts:
    5
    ... this problem just occured out of nowhere for me. wtf
     
  9. rempelj

    rempelj

    Joined:
    Aug 3, 2013
    Posts:
    47
  10. AnomalusUndrdog

    AnomalusUndrdog

    Joined:
    Jul 3, 2009
    Posts:
    1,491
    I'd like to chime in and say, since this happened to me too, excluding Unity.exe from Windows Defender is enough. Excluding your entire Unity project folder is probably not needed.

    And I think completely disabling Windows Defender's realtime protection or the whole Windows Defender service is an unnecessarily risky solution.
     
  11. 8bitgoose

    8bitgoose

    Joined:
    Dec 28, 2014
    Posts:
    190
    OH MY GOD, this has been driving me INSANE for months. Windows truly has no idea what they are doing with regards to malware.
     
  12. -chris

    -chris

    Joined:
    Mar 1, 2012
    Posts:
    59
    Exclusions aside, when a huge performance drop is happening, disabling and re-enabling "Real-time protection" seems to help bring things back to normal levels.
     
  13. 8bitgoose

    8bitgoose

    Joined:
    Dec 28, 2014
    Posts:
    190
    @-chris Disabling the real time protection is the same as adding an exception to every program in your computer. I suggest you add a process exception for "Unity.exe". Since I did that, I've had no performance issues.
     
  14. Robdon

    Robdon

    Joined:
    Jan 10, 2014
    Posts:
    99
    Just happened to me, could hardly do anything in the editor, was a crawl.

    Even restarting Unity didn't help.

    Had to put my whole Unity folder as an exception in Windows Defender.

    This can't be the solution though, as this is incredibly un-secure :(
     
  15. Baste

    Baste

    Joined:
    Jan 24, 2013
    Posts:
    4,205
    Are you somebody really bad at English that decided to make an account to post random facts, or are you a bot that's grabbing text from a google search that matches the thread title to post virus links?
     
  16. 8bitgoose

    8bitgoose

    Joined:
    Dec 28, 2014
    Posts:
    190
    @Baste You shamed the poster into deleting their message!
     
  17. Baste

    Baste

    Joined:
    Jan 24, 2013
    Posts:
    4,205
    Probably got yanked by a mod :p
     
  18. 8bitgoose

    8bitgoose

    Joined:
    Dec 28, 2014
    Posts:
    190
    Probably. I came here to see the post and only saw yours. I thought, Robdon's english sounds fine. (This problem still sucks real bad though).