Black line appears testing with tilemap on iPad 2 device

Black line appears testing with tilemap on iPad 2 device
0.0 0


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

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 or other similar tools.
I then search and come across this link 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).