About multi-scenario solution selection

I’m developing a game that requires switching between multiple scenes. Then there are two options below:

  • Multiple scenes using multiple babylon scenes
  • A babylon scene is used from beginning to end. When switching between different scenes, some nodes or resources are simply disposed.

So, dear everyone, which option is better?

I remember back in the past where I had the same idea, I wanted to avoid create multiple scenes and just add/remove objects for a global scene, but this always led to problems.

It is way easier to scene.dispose() and then createScene() each time you want to switch.

But maybe for performance reasons there is another solution ?

I would usually choose depending on how different the scenes are and how much I can reuse from one scene to the next.

1 Like