I created the game through SpriteKit, and for this I use SKScenewith SKSpriteNodesand SkNodes. When the user dies, I have a parent view controller SKScenethat runs a segueto play through the View Controller. I delete the part SKSpriteNodes, but none SkNodesof the game scene. When the user presses the play button again, he goes to the view controller with SKScene, and the game starts. I was wondering if I need to remove SKSceneits nodes from memory after the user dies and before I get segueto the game through the View Controller. Is all SkNodesandSKSpriteNodesthat I created are still stored in memory? I ask this question because of how I noticed that after each game / memory mapping for my application displayed in Xcode and Instruments application, it is higher than before the match / game.
* If this is related to the problem, I have an Admob banner and an award-winning video ad loaded and displayed to the user in the game through the View Controller.
source
share