Custom GUI labels performance test

Not perfect with much space for improvement but it renders with 60 fps on my machine for 200 objects.

https://playground.babylonjs.com/#WC6GET#6

Couple of takes from this exercise:

  • GUI lacks performance, so choosing between GUI vs dynamic textures for mesh material, later is way better choice.
  • Setting up billboard mode with pivot for planes is far from intuitive for corner rotation pivots. Easier alternative is using “proxy” pivot plane, unfortunately that has performance drawback.

Final effect is quite pleasing but somewhat disappointing when it comes to performance. I was expecting to be able to make it work with at least 1000 labels.

I am open to any suggestions on how to make it work.

Further optimisation I can think of at the moment would be reusing graphical texture instead of creating it on the fly and only generating text. It would surely reduce initiation time and reduce memory usage.