VRAM doesn't get released properly

Hi @dexter_deluxe,

I think what is happening is normal given the existing scene loader.

loadSceneHierarchy(): Load a scene file, create and initialize the Entity hierarchy and add the hierarchy to the application root Entity.

So basically this isn’t a scene switcher, but mainly loads a scene (entities and assets dumped in VRAM) and appends it to the existing scene as a child entity. This method won’t unload anything.

You will have to manually take care of unloading all scene assets, much like you destroy the oldHierarchy.

Here is a helpful thread on the subject:

1 Like