SKShapeNode has unbounded memory growth
问题 If I run this code in a SKScene sublass init method for (int i = 0; i < 100; i++) { SKShapeNode *shape = [SKShapeNode node]; shape.antialiased = NO; CGMutablePathRef path = CGPathCreateMutable(); CGPathAddEllipseInRect(path, NULL, CGRectMake(arc4random()%320, arc4random()%320, 10, 10)); shape.path = path; [shape setStrokeColor:[UIColor blackColor]]; CGPathRelease(path); [self addChild:shape]; [shape removeFromParent]; } and everytime I run this code in my SKView controlling controller SKView