title: SpriteKit Memory increase every time new scene presented
body: <p>I am trying to solve an issue where SpriteKit is causing memory leakage every time I re-open a scene after dismissing it and it's view controller. This is the upwards trend every time it's opened:
  <a href="https://i.stack.imgur.com/jgeAf.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jgeAf.png" alt="spritekit memory leak"></a></p>
  
  <p>When I check instruments, the issue appears to be with the SKTileMapNode "SKCTileMapNode::_ensureChunkForTileIndex(unsigned int)" but I am using this code upon willMove(from view: SKView):</p>
  
  <pre><code> for child in children {
          if child.isKind(of: SKTileMapNode.self) {
              (child as! SKTileMapNode).fill(with: nil)
              print("Wiped tiles for tilemaps")
              child.removeAllActions()
              child.removeFromParent()
          } else if child.isKind(of: SKSpriteNode.self) {
              (child as! SKSpriteNode).texture = nil
              child.removeAllActions()
              child.removeFromParent()
              print("Wiped SKSpriteKitNodes")
          } else {
              print("Other child removed")
              child.removeAllActions()
              child.removeFromParent()
          }
  
      }
  </code></pre>
  
  <p>And as you can see from the image above, the result is still upwards of memory usage. Still with the SKTileMapNode in instruments?</p>