We are currently having performance issues and experimenting with “freezeActiveMeshes” as detailed in this page:
It works fine, however, I have issues with quickly showing and hiding a mesh. If I change the visibility via setEnabled or isVisible, it is not updated - I have to unfreeze/freeze active meshes which is too expensive.
I created a PG example:
The ground is supposed to be shown/hidden if the sphere is clicked. Is there any option to show/hide a mesh quickly without calling unfreeze/freezeActiveMeshes on the scene?