Open sky-is-winning opened 4 months ago
Could the unloadPrevious
method possibly be moved and adapted to a more general scene class like BaseScene
, so that not just room scenes are able to remove their textures (the Login and Start menus, for example)
still not merged 😢
By keeping track of every asset the client has loaded, we're then able to unload every unneeded asset when the player leaves the current room. This massively decreases VRAM usage, but increases loading time when users re-enter a room they have already visited.
Fixes #18