HoloLite Posted December 21, 2017 Share Posted December 21, 2017 Hello, I have newbie questions: If I have multiple scenes in my app, I wonder if we should keep 1 global singleton BABYLON.Engine object which alternates between scene objects or having one engine object for each scene. I did try the latter (1 engine per 1 scene) which seems to work, but I don't know if this is the proper/efficient use of the engine object. Also, what's the most appropriate way/api to use to switch between scenes ? Do I need to manually dispose the scene object if it's no longer used ? Is BJS smart enough to garbage-collect those unused objects ? Thanks. Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.