摘要:
通过setAnimationInterval设置帧频时,发现在android下没有效果的在Cocos2dxRenderer .java文件里面找到了onDrawFrame这个函数。里面有句注释:FPS controlling algorithm is not accurate, and it will slow down FPS on some devices. So comment FPS controlling code.这个函数里的大部分代码都被注释掉了 1 public void onDrawFrame(final GL10 gl) { 2 3 /* 4 * FPS control.. 阅读全文