I’m porting an app to cocos2d-x and I’m using the CCMask class to create a circular view hole. It works fine on iOS but on Android it’s really slow.
The code originated here: http://www.cocos2d-iphone.org/forum/topic/15890/page/2#post-109368
I’ve attached the 2d-x version to this message. mask() is called every update tick using CCScheduler.
Anyone know why this is so slow? It drops the framerate down to about 4-5 fps on my HTC Sensation.
CCMask.h.zip (0.6 KB)