PBRCustomMaterial performance problem

Creating a large number of PBRCustomMaterial has performance problems.

  1. It takes more time to create.
  2. FPS was significantly reduced.

https://playground.babylonjs.com/#YRQ9S5#1
https://playground.babylonjs.com/#YRQ9S5#2

Running on my laptop, the FPS difference is about 10.

I rewrote the Build() method and it’s better now.

https://playground.babylonjs.com/#YRQ9S5#3