Game error
I am developing a game where I need to move a ball and trigger an image at the same time. To move the image with the image enabled, create a separate thread and call the move method with [self performSelectorOnMainThread: ..] to display the updated position in the view. But my game slows down after creating this theme. please help me to improve the performance of the game.
a source to share
You probably don't want to create your own thread here; which is probably slower than doing this work on the main thread, unless your computation is incredibly complex.
Instead of creating your own streams, explore CoreAnimation . It's designed to smoothly move things around, manage its flows transparently, and provide a "fire-and-forget" interface. For most 2D games, the first approach to follow is CALayers for each element moved using CoreAnimation.
a source to share