Singularity/Library/PackageCache/com.unity.burst@1.8.4/Documentation~/compilation-overview.md
2024-05-06 11:45:45 -07:00

1.4 KiB

Compilation overview

Burst compiles your code in different ways depending on its context.

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.

Further resources