With modern low-level graphics APIs (DirectX 12 and Vulkan), shaders are no longer compiled just-in-time on the driver thread. If an engine attempts to render an uncompiled Pipeline State Object (PSO), the main thread freezes or throws an access violation crash.
How to Fix Shader Freezes:
Implement a shader pre-warming loading phase at initial startup. Cycle through your material library off-screen during the title screen so all PSO combinations cache to disk before gameplay begins.