Black line appears testing with tilemap on iPad 2 device

I found the black lines appearing on screen, it seems to randomly happens whenever I move the camera (thus player) on screen. Please take a look at the attached image.

Anyway testing on simulator won’t have this problem.

By the way, I’m not sure whether this problem is solved already or not or even can’t be reproduced as of this thread http://www.cocos2d-x.org/boards/6/topics/1422.

Please suggest on how to solve this problem. Thanks !

EDITE: Some position of the map contains tile textures that seem to be broken or glitch as well.


IMG_0313.PNG (268.9 KB)

try setting value of CC_FIX_ARTIFACTS_BY_STRECHING_TEXEL in ccCongig.h to 1

Thanks Neel, it works ! I won’t see any performance drop so far.

I see the comment in that file as well stating that the “correct” way to fix this problem is to use spritesheet-artifact-fixer.py or other similar tools.
I then search and come across this link http://www.cocos2d-iphone.org/forum/topic/28041 which contains its sourcecode (i didn’t found it bundled with cocos2d-x). Anyway I think the latter solution is burden as you need to do the work twice, but did you ever try this solution ? (I hope it’s not about the texture downloaded from the tutorial from Ray’s website).