

With the help of proper logging it will be possible to analyze the time each step takes during your builds and take the necessary actions. The good thing is we don’t really need micro second precision, since we are more likely interested in tasks that use up several seconds or even minutes! Phase 2: The big question mark This means not every line might instantly be written to the output and some lines which originally would have slightly different times could end up with the same timestamp in the enhanced log, because the buffer got flushed with those lines at the same time. With every solution that enhances a log file with timestamps, please keep in mind that there will most likely be write buffers involved. With this tool you will be able to add a timestamp or the total runtime to every line of your build log.Įcho "This is\na test\nwith multiple\nlines." | ts -s '(%H:%M:%.S)]' | ts '[%Y-%m-%d %H:%M:%S' If you are using another environment to build your application there are similar solutions as well, like for example the ts command line tool from the moreutils collection. We are using Jenkins to enhance our build log files with timestamps. In the case of build time optimization, this means we need to know how much time was spend on every part of the build. The first thing you need to do, before you can really optimize anything is to gather the necessary data. We need a Plan! Phase 1: Monitor your Builds
#Best build settings unity for mac os pro
God Kings is using Unity 2018.4 LTS together with custom C# build scripts and a Jenkins environment on an Apple Mac Pro node with 2,7 GHz 12-Core Intel Xeon E5 and 64GB memory to build the application during development and for releases. With any stated times in this article, please keep in mind that those times will vary depending on the current system load and used hardware. Especially if the responsible developers have to switch context and work on something else before they can finally test and demonstrate their work on a device. For fast iterations this is obviously not ideal.

#Best build settings unity for mac os android
In many cases there are even more than one tests with real mobile devices involved. While testing your game in the Unity editor is quite fast, it doesn’t always cover all the edge cases and a complete build for God Kings took up to 1:20 hours for a final Android release and around 45 minutes for a development build. You will need to have as much information on your build process as possible to manage this.Īt God Kings our normal development workflow for new features usually consists of working on a feature branch, initial testing in the Unity editor and at least one final test on a real device before the new feature gets merged into our stable master branch. To enable your team to the fullest potential, keeping your build times in check is mandatory. In this article I want to take you on the journey of how we managed to reduce our mobile client build times from over one hour to about 20 minutes for God Kings.įast iteration and turnaround times with testing on real devices are always a concern in mobile game development at InnoGames.
