Hi
I have a memory issue in my SpriteKit game. Memory increases when any of the sprites is moving on the screen (memory increase stops if i stop all motions)
I noticed this running the game on my iPhone 6s with iOS 10. I tested it on an iPhone 5s running iOS 9.3.5, and it was fine, there was no memory increasing during movements.
An easy way to reproduce:
1. Create new project in Xcode 8, new Game, Language: Swift, Game technology: SpriteKit, Devices: iPhone
2. Add the following line at the end of didMove(to view..:
label?.run(SKAction.rotate(byAngle: 50, duration: 100))
3. Run the project on iPhone 6s device, running iOS 10 (I'm not sure which one is causing the bug, iOS10 or the phone..)
Memory allocation increases (at about 0.1MB/10s speed) until the rotation ends.
Using "Leaks" instument I noticed that "CAMetalDrawable" and "__NSArrayM" categories are increasing.
I'm confused because I invested a lot of time in my SpriteKit game, and now I'm not able to debug this leak, I'm afraid it's caused by the framework.
Thanks for the help!