Auto landscape materials - are they all the same?

No matter how it’s calculated - isn’t that branch of code executed while the GPU waits for the samples to return? Or is that just a CPU thing?

Edit:

I’ve just done some tests in 5.4 and I’m seeing the same kind of performance I’m seeing in 5.3 projects, maybe I’m missing something but here’s what I’m seeing on a 4070 (which scales mem speed and cache speed) - it takes that much code to see a noticeable increase in rendertime (just random expensive instructions) - but if I plug the Red of the mask in, it’s immediately an increase, larger than that code branch.