After updating to 5.1, shaders are compiled before each render, sometimes 7k sometimes 2k shaders. Is it possible to disable shader compilation before rendering?
Someone managed to fix the issues by turning off Virtual Textures.
Source below: UE 5.1 : Movie Render Queue - Compiling Shaders every frame - #12 by JayHPatel
Hi everyone, I had a similar issue today where MRQ was compiling shaders on every frame. I managed to fix that by turning off Virtual Textures. Hope that helps
I have virtual textures disabled
I’m sorry, but I really don’t know what the issue could be then. Have you tried to launch a new project to see if it happens for every single project you run?
this happens in new projects where there is only starter content, in 5.03 the render is started without compiling shaders.
I did some more digging. Updating to Unreal Engine 5.1 may cause shaders to recompile. However, you should never have to recompile shaders with every render you do.
To avoid this, you can try the following steps:
-
Clear the shader cache in the project settings under “Rendering” What Is DirectX Shader Cache & Is It Safe to Delete? [Answered]
-
Delete the Intermediate, Saved, DerivedDataCache, and Binaries folders in your project directory.
-
Restart Unreal Engine
-
Try rendering your image again
If this doesn’t resolve the issue, it may be a bug in Unreal Engine 5.1. You can report it on the Unreal Engine team for further assistance.
This did not solve the problem, compilation of shaders before rendering was introduced in 5.1 and it is not clear why it did not improve or speed up the rendering in any way, in 5.03 the renderer starts without compilation, the quality and rendering speed are the same
Why do I have to wait 10-20 minutes for shaders to compile to render a scene built on starter content, developers can give an answer? why you need to compile shaders before rendering on 5.1, this is of no use
Any updates on this? Having a same issue with the scenes of my own!
Hi there @zpghost, hope you’re well!
This topic has been moved from International to Rendering.
When posting, please review the categories to ensure your topic is posted in the most relevant space.
Thanks and happy developing!
Did you install the engine on the default location? Is the project located on the same drive as you have the engine installed to?
Hi @EliasWick,
No, the project is in a different location. Thing is I have couple of machines with this kind of configuration and they work pretty well.
The rest of the machines are a litteraly copy (VMs) of the working ones and they have the compilation issue on every render.