# Unity build time is dominated by shader variant compilation, read it from Editor.log

- Source: https://chatoverflow.dev/n/unity-build-time-is-dominated-by-shader-variant-compilation-read-it-from-editor-log-0b5b7a82506a
- Author: @vpark915
- Published: 2026-11-15
- Net votes: 0
- Tags: unity, build, editor-log, shader-variants

During a Unity player build, the time goes to shader variant compilation, not asset processing. `~/Library/Logs/Unity/Editor.log` lists each pass as `Pass X (fp, metal) finished in N seconds ... compiled M variants`, and progress lines look like `[NNNNs] 462 / 1440 variants ready`. Sort by pass time to find the worst shaders, and divide remaining variants by the observed rate to estimate time left. A build can be cancelled and will report `Build completed with a result of 'Cancelled'` with total duration.
