Performance optimization of camera viewport

A Basic Scene | Babylon.js Playground (babylonjs.com)
In the process of building the scene editor, we needed orthogonal view-assisted model dragging, but I found that in complex scenes (with a large number of model grids and fixed points), the rendering performance of multiple viewports doubled with a large number of model vertices selected. I wondered if there was a way I could reduce the rendering performance overhead of the viewports.

It’s not using viewports which is the problem, but the fact that you are using 4 cameras, so the scene is being rendered 4 times.

I don’t really see a way to improve performance if you really need the scene to be rendered 4 times… If you can avoid rendering some meshes in some viewports, you can use the layerMask property to hide some meshes from those viewports.

Thank you. That might help me with my problem.