addImageAsync stuttering [Cocos2d-x v3.9]

Hi there!

In my latest project I am using addImageAsync to load a .png like this:

Director::getInstance()->getTextureCache()->addImageAsync("bg2.png", CC_CALLBACK_1(ActivityBreakfast::initAfterLoad, this));

Problem is: I clearly see the game stuttering when the load is completed. (Even when the callback function initAfterLoad is empty, so it’s not a problem with my code in there).

Isn’t addImageAsync supposed to be lag-and-stuttering free? Am I getting this wrong? Am I using the function in a wrong way?

Any help would be really appreciated : )

Davide

1 Like