Occlusion Query Sample | Babylon.js Playground (babylonjs.com)
I’ve made changes to the demo so that occlusion is only recalculated when the camera view matrix changes.
However, this should result in a reduced frame rate when the camera moves, and can be avoided by adding stabilization to recalculate when the camera movement stops, which will also result in the mesh that should be seen during the movement not being seen.
Or is there a more perfect way to do it I don’t know?
Scene rendering performance optimization plugin based on instance object - Demos and projects - Babylon.js (babylonjs.com)
Finally, here’s a one: an instancedMesh rendering optimization plugin for complex models with a lot of duplicate objects. Hope it helps.