Quantcast
Channel: Cocos Forums - Latest topics
Viewing all articles
Browse latest Browse all 17076

CSLoader works slow the first time

$
0
0

@Lem wrote:

Hi!

My game loads a node at a certain point and I use this code:

image = (ImageNode*)CSLoader::createNode(outlineName);
image->setPosition(0, 0);
image->retain();
this->addChild(image);

The first time it loads it freezes for like 1sec, every next time (even if we load a different node with totally different sprites) there is no freeze and it works as it should.

Why is it so? Do I need to initialise the CSLoader somewhere to avoid this first 1sec delay?

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 17076

Trending Articles