Solution:
Root Cause: CPU Background Thread Starvation During Shader Compiling
Unreal Engine offloads shader compilation tasks to background worker threads (
r.CreateShadersOnWorkerThreads=1). If your CPU lacks available logical threads, or if background applications (Discord, browser hardware acceleration, background antivirus scans) starve the engine worker threads of CPU cycles, shader compilation stalls indefinitely, freezing frames.
Diagnostic Verification:
Open Task Manager (Ctrl + Shift + Esc) > Performance tab > CPU. Observe thread utilization spikes hitting 100% across all cores when loading into Unreal Engine games.Step-by-Step Fix:
1Terminate High-CPU Background Processes:
Close hardware-accelerated browsers (Chrome/Edge), Discord overlays, and recording software before launching the game.2Adjust Processor Affinity via Task Manager:
Launch game > press Alt + Tab > open Task Manager > Details tab.Right-click the game's executable (<GameName>.exe) > select Set affinity.Ensure all physical and logical CPU cores are checked (do not restrict cores unless troubleshooting E-core/P-core scheduling).3Fix Intel Hybrid CPU Core Scheduling (P-Core / E-Core):
Ensure Windows 11 has the latest cumulative updates installed so the Intel Thread Director correctly assigns Unreal shader threads to Performance (P) cores rather than Efficient (E) cores.Prevention & Long-Term Monitoring:
Maintain clean background process management on multi-core gaming systems.