1. Use nonatomic properties for primitive types like floats to avoid locking.
2. Use CCArray instead of NSMutableArray for better performance in cocos2d. Iterate arrays using CC_ARRAY_FOREACH.
3. Use index access instead of indexOfObject to improve performance of lookups in for loops.