How can I properly clean up (terminate) babylon js engine (scene)?

I tried deleting engine obj like delete engine, but it seems to keep using CPU and memory.

I might make some mistake here, so would you show me how you clean up Babylon scene in your web app or something?

Simply calling engine.dispose() before setting engine to null works well!

3 Likes