godotengine / godot-docs

Godot Engine official documentation
https://docs.godotengine.org
Other
3.77k stars 3.06k forks source link

Windows compilation: Document how to workaround Antimalware Service slowdown #2973

Open akien-mga opened 4 years ago

akien-mga commented 4 years ago

I've been using MinGW on Windows 10 a bit the past few days, and every time I ran a build I noticed that Windows 10's Antimalware Service Executable can eat between 40 to 80% of my CPU cycles (!) on an i7 8705G (building with -j7).

This is easy to workaround by adding a Folder exception to one's dev/build folder, so it might be worth adding a note about it in our docs, as I think this can cause huge slowdowns for people compiling Godot: https://support.microsoft.com/en-us/help/4028485/windows-10-add-an-exclusion-to-windows-security

I haven't checked if MSVC builds have the same issue - it might be that Antimalware Service Executable already has an exception rule for cl.exe (MSVC) but not for cc1plus.exe (GCC). (CC @Calinou)

We should phrase the tip in a way that doesn't give users the impression that we want to expose their system to malwares though :)

ghost commented 4 years ago

no, windows defender hammers the compiler, i added expections for it and IT STILL FREAKING SCANS EVERYTHING, it's driving me insane

ghost commented 4 years ago

i turned defender off, and is it targetting this file?

ntoskrnl.exe

edit: i have no idea, windows defender is garbage, jesus, you are better off just turning the whole damn thing off