r.Material.PreshaderGapInterval

I would like to know for which platform and/or shader compiler version “r.Material.PreshaderGapInterval” cvar is needed (if still needed). Is it a shader compiler issue or an epic preshader compiler’s one?

I suppose it affects preshader cbuffer only, and not material param collections’ one, right?

Thanks.

Hi,

I have assigned this case to subject matter expert at Epic who will be in touch.

Kind Regards

Hi Marco,

That Cvar was added in to be a workaround for the PS5 shader compiler to reduce the number of Scalar GPRs. This setting only affects pre-shader constant buffers, but you could encounter similar issues inside material parameter collections. However, we currently do not have this workaround available for MPCs, so you must implement that yourself, if required. I hope that clears up your questions, but feel free to reach out again if anything is unclear.