Long running calculation on background thread
- by SundayMonday
In my Cocos2D game for iOS I have a relatively long running calculation that happens at a fairly regular interval (every 1-2 seconds). I'd like to run the calculation on a background thread so the main thread can keep the animation smooth.
The calculation is done on a grid. Average grid size is about 100x100 where each cell stores an integer.…