{"action":"created","issue":{"url":"https://api.github.com/repos/cocos2d/cocos2d-swift/issues/831","labels_url":"https://api.github.com/repos/cocos2d/cocos2d-swift/issues/831/labels{/name}","comments_url":"https://api.github.com/repos/cocos2d/cocos2d-swift/issues/831/comments","events_url":"https://api.github.com/repos/cocos2d/cocos2d-swift/issues/831/events","html_url":"https://github.com/cocos2d/cocos2d-swift/issues/831","id":35660010,"number":831,"title":"(v3.1) Automatic batching doesn't work on Android","user":{"login":"hakonber","id":873092,"avatar_url":"https://avatars.githubusercontent.com/u/873092?v=3","gravatar_id":"","url":"https://api.github.com/users/hakonber","html_url":"https://github.com/hakonber","followers_url":"https://api.github.com/users/hakonber/followers","following_url":"https://api.github.com/users/hakonber/following{/other_user}","gists_url":"https://api.github.com/users/hakonber/gists{/gist_id}","starred_url":"https://api.github.com/users/hakonber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hakonber/subscriptions","organizations_url":"https://api.github.com/users/hakonber/orgs","repos_url":"https://api.github.com/users/hakonber/repos","events_url":"https://api.github.com/users/hakonber/events{/privacy}","received_events_url":"https://api.github.com/users/hakonber/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/cocos2d/cocos2d-swift/labels/Bug","name":"Bug","color":"e11d21"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2014-06-13T10:20:47Z","updated_at":"2015-01-14T03:30:25Z","closed_at":"2015-01-14T03:30:25Z","body":"This is using Cocos2D v3.1 final release, Apportable 1.1.10 and a Nexus 5. See screenshots below.\r\n\r\nI've created a simple test project that puts 100 copies of the same sprite on screen. Results below:\r\n\r\niPhone (2 draw calls):\r\n![ios simulator screen shot 13 jun 2014 12 12 33](https://cloud.githubusercontent.com/assets/873092/3268900/92b9f35e-f2e3-11e3-8711-2f83dd869d6a.png)\r\n\r\nAndroid (112 draw calls):\r\n![image](https://cloud.githubusercontent.com/assets/873092/3268916/e64f4c3a-f2e3-11e3-96d4-a087ea67badc.png)\r\n\r\nTo reproduce yourself, create a new Cocos2D project using the Xcode template, and replace the contents of IntroScene.m with the following:\r\n```objc\r\n#import \"IntroScene.h\"\r\n\r\n@implementation IntroScene\r\n\r\n+ (IntroScene *)scene\r\n{\r\n\treturn [[self alloc] init];\r\n}\r\n\r\n- (id)init\r\n{\r\n    self = [super init];\r\n    if (!self) return(nil);\r\n    \r\n    for (int x = 0; x < 10; x++) {\r\n        for (int y = 0; y < 10; y++) {\r\n            CCSprite *sprite = [CCSprite spriteWithImageNamed:@\"Icon-72.png\"];\r\n            sprite.position  = ccp(40 + 30 * x, 40 + 30 * y);\r\n            [self addChild:sprite];\r\n        }\r\n    }\r\n    \r\n\treturn self;\r\n}\r\n\r\n@end\r\n```"},"comment":{"url":"https://api.github.com/repos/cocos2d/cocos2d-swift/issues/comments/69864074","html_url":"https://github.com/cocos2d/cocos2d-swift/issues/831#issuecomment-69864074","issue_url":"https://api.github.com/repos/cocos2d/cocos2d-swift/issues/831","id":69864074,"user":{"login":"slembcke","id":153633,"avatar_url":"https://avatars.githubusercontent.com/u/153633?v=3","gravatar_id":"","url":"https://api.github.com/users/slembcke","html_url":"https://github.com/slembcke","followers_url":"https://api.github.com/users/slembcke/followers","following_url":"https://api.github.com/users/slembcke/following{/other_user}","gists_url":"https://api.github.com/users/slembcke/gists{/gist_id}","starred_url":"https://api.github.com/users/slembcke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slembcke/subscriptions","organizations_url":"https://api.github.com/users/slembcke/orgs","repos_url":"https://api.github.com/users/slembcke/repos","events_url":"https://api.github.com/users/slembcke/events{/privacy}","received_events_url":"https://api.github.com/users/slembcke/received_events","type":"User","site_admin":false},"created_at":"2015-01-14T03:30:24Z","updated_at":"2015-01-14T03:30:24Z","body":"This was fixed in 3.2."}}