It usually takes 10-15 seconds to compile for small changes in any of the scripts in my project. The project contains over hundred scripts, which are in C#.
1 Answer
\$\begingroup\$
\$\endgroup\$
2
Faster CPU speeds will result in faster compile times, yes.
Looking at Windows Task Manager when compiling, mono.exe maxes out only one of my CPU cores, so multiple cores probably won't help.
-
\$\begingroup\$ I see spikes on 5 out of 6 cores during compilation. But none of them goes max. And overall using 50-60% during compilation. Is it anyhow Unity's limitation? Or AMD cpu? On a dual core it took 50-60 seconds and used ~100% CPU. \$\endgroup\$Sourav Paul Roman– Sourav Paul Roman2016-06-01 21:54:41 +00:00Commented Jun 1, 2016 at 21:54
-
\$\begingroup\$ There's a limit to how much work it can split up and throw unto the CPU, it's not necessarily something you can't configure, but it's most likely just Unity's compiler/jit code. \$\endgroup\$user5665– user56652016-06-02 16:11:00 +00:00Commented Jun 2, 2016 at 16:11