I get impatient having to wait 5-7 seconds between each code change, to be able to start playmode, or get an update if the playmode is already running. So I took a look at Assembly definition files, but I’m not sure if I’m doing something wrong.
At first I tried the example project, and it changed from 7 to 3 seconds after adding the asmdef (I only tested the interdependentScripts scripts and assembly definition feature).
Before I tried this on my own project, the compile time was 5.5 seconds. When I added assembly definition files, let it compile (20s the first time), and then change one of the files, I get about 7 seconds compile time. So it’s slower with the Assembly definition files.
With a super simple project with only one script + the CompileTime script, the compile time is 3.5 seconds. Is that the best I can get on my computer, or is there anything else that can speed it up?
I have a Macbook Pro 15" Late 2016 (2,7 GHz Intel Core i7). What are the shortest possible compile times on a better computer? Is there any point in upgrading to a better computer, or is this what to expect from Unity?
Here’s my folder structure. I have a few scripts, and some 3rd party Unity Sample UI which can be deleted later. Is there anything I could change to make compilation faster?
Note that I tested first putting an asmfile (forgot the asm-prefix I used elsewhere) in the 3rd-Party folder, but I wasn’t sure if it was grabbing subfolders or not…