原文:http://blog.youkuaiyun.com/liangshaoze/article/details/35215913
到3.1.1以后仍然有这个问题。
下图只加了一个ListView。帧数直接掉了十到二十帧。
只需要修改AppActivity.java,将TestCpp里面的代码直接拷贝进去覆盖,即可解决上述问题。
- public Cocos2dxGLSurfaceView onCreateView() {
- Cocos2dxGLSurfaceView glSurfaceView = new Cocos2dxGLSurfaceView(this);
- // TestCpp should create stencil buffer
- glSurfaceView.setEGLConfigChooser(5, 6, 5, 0, 16, 8);
- return glSurfaceView;
- }