UE4 compiling shader 0%(卡死)

发布时间 2023-10-13 19:52:16作者: 爱莉希雅

问题

在笔者使用的UE4.27版本中,系统对于light和reflection capture的shader compile总是停在0%,且看起来像是整个系统已经卡死的样子

解决

去Google看了下,发现需要更改引擎的配置文件,方式如下:

  1. 找到位于你的UE引擎安装目录下的"UE_4.27\Engine\Config\ConsoleVariables.ini"文件,并用任意文本编辑器打开它
  2. 找到语句";r.XGEShaderCompile = 0"和";r.Shaders.AllowCompilingThroughWorkers=0",删除这两句话开头的";"
  3. 重启UE

reference

https://forums.unrealengine.com/t/compiling-shaders-doesnt-work-stuck-with-no-progress/133045/16