The latest versions of the Unreal Engine 5 feature systems designed to prevent shader compilation issues, but they reportedly don’t work well without additional work from developers.
During their weekly podcast, the tech experts at Digital Foundry went over a recent blog post shared by Epic on the Unreal Engine official website detailing why shader caching stuttering issues occur, highlighting how the shader compilation process designed in the past reached a breaking point in Direct3D 11 with the increase in shader code, and how it was addressed in modern APIs like Direct3D 12 and Vulkan with the introduction of PSOs, Pipeline State Objects, which opened up a lot of other issues, even in Unreal Engine despite the engine providing solutions for developers to compile PSOs so that game performance isn’t impacted which continue to be worked on and improved. The blog post also addresses the misconception that shader compilation stuttering issues were introduced in DirectX 12, as they are a result of the increased shader code and general complexity, rather than anything the API has introduced over the previous version.
Interestingly enough, these systems Epic introduced to reduce stuttering issues reportedly don’t function as intended without developers’ intervention. According to what technically-minded developers have told Digital Foundry’s Alex Battaglia, these systems don’t work properly from Unreal Engine 5.1 to 5.4 and require specialized work to actually make them function as intended. Still, Digital Foundry found what Epic has outlined in the blog post, such as addressing Global Shaders issues which cause a lot of issues in a lot of games, and working with hardware and software vendors to adapt drivers and graphics APIs very promising, so hopefully, future versions of the engine will provide better experiences on PC than the current versions do.
The latest version of Unreal Engine 5 is version 5.5, which introduces an experimental new feature dubbed the Nanite of lights called MegaLights, Sequencer improvements, and much more. You can learn more about this version of the game engine on its official website.