1.4 KiB
Compilation overview
Burst compiles your code in different ways depending on its context.
- In Play mode, Burst compiles your code just-in-time (JIT).
- When you build and run your application to a player, Burst compiles ahead-of-time (AOT).
Just-in-time compilation
While your application is in Play mode in the Editor, Burst compiles your code asynchronously at the point that Unity uses it. This means that your code runs under the default Mono compiler until Burst completes its work in the background.
To force Unity to compile your code synchronously while in the Editor, see Synchronous compilation
Ahead-of-time compilation
When you build your project, Burst compiles all the supported code ahead-of-time (AOT) into a native library which Unity ships with your application. To control how Burst compiles AOT, use the Player Settings window. Depending on the platform you want to build for, AOT compilation might require access to linker tools. For more information, see Building your project.