Decreasing FPS while adding obstacles
问题 I am new to cocos2d-x and I am developing a game in x-code using cocos2d-x.In my game i have a menu scene and game scene. In my game scene after adding the obstacles FPS is decreasing to 10 So my game performance is very low. Following is the code which i used to add obstacles in my game. and i have eight obstacles in my game. I created all the obstacles in one function and call that function by scheduler from init().Please help me solve this problem. time = time + 1; int i=arc4random()%9;