I am creating a rather large material at the moment, and am running into some issues now that I have increased the number of parameters. Does anyone know whether there is a hard limit on the parameter count? Searching the doc’s & forums I can not seem to find any info on this.

Also along these lines, I have already discovered a limitation of 2 MaterialParameterCollection’s per material, but is there a limit on the number of values in a MPC?

I am currently attempting to use one of the following:

35 Scalar parameters

37 Vector parameters (all 4 channels are used for 32 of these, 2 or 3 channels used for remaining 5)

or if there is a limit on vectors:

165 Scalar parameters

5 Vector parameters (2 or 3 values used)

Previously, the material worked fine with:

67 Scalar parameters

5 Vector parameters (2 or 3 values used)

Beyond the parameters, there are 4 calls to a large function that itself calls another function 8 more times.

I know the quantity is a little bit insane, but the majority are hid by switches and only used in certain circumstances. I am not worried about performance here, everything runs incredibly fast considering everything, and also the parameters are really only being used to fine tune values before they become constants, but it seems as though I have hit some limit here as my material is behaving extremely odd. I have spent all day double checking everything, I simply copied and pasted the original (working) displacement calculations 3 times, adjusted the param names, and plugged it all in.

Thanks!