C++ How to limit visual studios multi-processor compilation

后端 未结 7 553
不思量自难忘°
不思量自难忘° 2021-02-02 10:24

Every time I compile using visual studio the rest of my computer crawls because visual studio is hogging all the processors. Is there a way to limit the number of processors tha

相关标签:
7条回答
  • 2021-02-02 11:25

    I found a workaround that actually works for me. Manually restrict affinity for VS process. Open Task Manager, go to Details tab, right click on devenv.exe, select "Set affinity". In the dialog untick several cores. That's it. All spawned cl.exe processes will inherit affinity, and thus won't run on unticked cores.

    Also, go and cast your vote for a feature request for Visual Studio: https://developercommunity.visualstudio.com/content/idea/436208/limit-cpu-usage-of-visual-studio.html

    0 讨论(0)
提交回复
热议问题