I use SKScene as SCNNode content, when i add 63 node to the scnview, the app was stucked.

here is the code, it is so simple, i can't find any problems.

- (void)addNode {
   for (int index = 0; index < 100; index++) {
       NSLog(@"add node {%d}",index);
       SCNNode *itemNode = [SCNNode new];
       SCNPlane *plane = [SCNPlane planeWithWidth:0.5 height:0.5];
       itemNode.geometry = plane;
       SKScene *skScene = [SKScene sceneWithSize:CGSizeMake(1, 1)];
       /* use SKScene as node's contents */
       itemNode.geometry.firstMaterial.diffuse.contents = skScene;
       itemNode.position = SCNVector3Make(0, 1+0.05*index, -3);
       [self.jpARSCNView.scene.rootNode addChildNode:itemNode];
   }
}

Replies

I'm having the same issue.

Any clues?

I have the same issue. Please let me know if U have fixed it!!! THX