cocos2d-x速度效率问题

前端之家收集整理的这篇文章主要介绍了cocos2d-x速度效率问题前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

一、cocos2d有段注释:* Passing two numbers (x,y) is much efficient than passing CCPoint object.

* This method is binded to lua and javascript.

* Passing a number is 10 times faster than passing a object from lua to c++

意思是指:传送number型的值比传送CCPoint对象更有效率;特别是在lua和c++之间的传值;

猜你在找的Cocos2d-x相关文章