2014년 7월 10일 목요일

Cocos2d-x Few Test Result

1. CCArray is replaced with Vector<T>.
Vector is clearly faster than CCArray. No need to cast type and preserve the data. Easy to manipulate with overriding functions.

2. std::string + operator
int index = 23;
std::string name = "testSprite" + Value(index).asString() + ".png";
Sprite* spt = Sprite::create(name.c_str());
This works fine on iOS. But it crashes 1 out of 20 times on Android.

3. setUserData
You don't want to cast something to (Void*). It takes too long to cast. The performance will be very lowered. And few more problems will occur like Vector not recognizes it.

4. MotionStreak
It still takes some CPU resources. Don't use it too much.



5. Check my game.
Mr Boss
https://play.google.com/store/apps/details?id=com.magmon.MrBoss




댓글 없음:

댓글 쓰기