Im running the game, without music. As i progress, the RAM usage is going up. Which means that something is not getting cleared from memory. I read somewhere that as soon as a Layout is no longer active, all of the non-global assets on the layout get destroyed.
That is not the case. Something is persisting on the inactive, previous layouts.
When a layout is no longer active, do Tiled backgrounds on the previous layout get destroyed, or do they persist?
Something is persisting in memory. If you have on a layout, every 1 Second, subtract 1 from Global Variable X, does it continue to do that even when the layout is no longer active? Will it keep subracting 1 from X even when the layout is no longer active? With each passing level, the memory usage keeps going up. Could it be that the command Every 1 second subtract 1 from global variable X still be running? Even when the layout that the command is on is no longer active?