Why does build lighting hang for 30 seconds before starting?

Open Swarm / learn how to use swarm
and you will probably see what is happening.

Also, you could be silently compiling shaders. On 4.22 this has been happening a lot. It just kinda hangs.