I’m in the quest of making a minimap for my game. I’ve realized that there are two main approaches to achieving this. Mainly using a RenderTargetTexture (RTT) or pushing the new camera into the scene’s active cameras and setting the viewport correctly.
Here are two PGs that demonstrate both approaches:
- RTT https://www.babylonjs-playground.com/#1WROZH#163
- Additional active camera https://www.babylonjs-playground.com/#XCPP9Y#387
For my project, I have opted for the RTT approach and, while it works as I had expected it, I’ve noticed a considerable performance issue on lower end devices (my GF’s phone , an UMIDIGI A7 pro). On the other hand, on my phone (Ulefone Armor 6) and on my laptop, the strike on performance isn’t that noticeable (if at all).
So I was wondering if the other approach (an additional active camera) would run smoother on lower-end devices or if, on the other hand, it would be pretty much the same. Basically, is there a performance difference between the two approaches? If so, is it noticeable enough?
Thanks in advance.