In my application, when I move to a location in the Map of the environment, I load the location and it’s assets and call app.lightmapper.bake to the loaded assets.
When I move to a new location in the Map, I destroy the associated textures of the current location of the environment, before I load the new locations asset, textures and call the lightmapper.bake on the new location’s assets.
now as I alternate between these two locations, the lightmap VRAM keeps increasing. Is there a destroy function to undo the bake of location assets, once I leave that location, similar to the destroy function I perform on asset material textures.
I run into the issue of the game crashing eventually, after the 4th alteration between the 2 locations because the VRAM increases each alteration until the device can’t handle it anymore