We should get to the bottom of this workaround and revert it eventually.
Reported here: [Link Removed]
In some cases, having a vertically layered material will show significant performance regression caused by Substrate.ush defining UNROLL as LOOP.
// DXC has issue with unrolling certain part of the code. To address temporarly the warning-as-error issues, // we redefine the unroll function and fall back to loop on DXC // To remove this, one must test PC + DX12 + RayTracing and make sure raytracing shaders compile. #define SUBSTRATE_COMPILER (COMPILER_VULKAN) #if SUBSTRATE_COMPILER == 1 #define SUBSTRATE_UNROLL LOOP #define SUBSTRATE_UNROLL_N(X) LOOP #else #define SUBSTRATE_UNROLL UNROLL #define SUBSTRATE_UNROLL_N(X) UNROLL_N(X) #endif
There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-211718 in the post.
0 |
Component | UE - Graphics Features - Substrate |
---|---|
Affects Versions | 5.4, 5.3 |
Target Fix | 5.6 |
Created | Apr 8, 2024 |
---|---|
Updated | Sep 19, 2024 |