Fixes to Various Atlas Leaks [b56]


  • *
  • Posts: 17523
Patched up some major leaks with atlas loading/unloading thanks to Rhys game.

They were occurring in these situations:

- Backgrounds
- Actors
- Actors with animations set to diff atlas than main actor
- Actors with animations set, coincidentally to same as main actor (but not the "same as" setting, just happens to be the same)
- Recycled Actors
- Setting actors as visible (non-hidden) attributes from the Actor or Scene Designer. This was the subtlest one to track down!

The end result of each - atlases were retained between scenes, and if you loaded them again, it would literally load the atlas up again! After a while, the game would blow over its memory limit or slow down.

All of these cases are now fixed.