Adobe AIR on mobile platform
Today I port my Flash Player version 3D engine to Adobe AIR, in order to support Android/iOS platform. Because my engine has been done on the PC/Web, so we can't aware performance penalty easily, now I forward to mobile platform, they have limit resource. We need to more optimize our engine. Because iOS version has been convert AS3 to native code, so I believe and found game loop and render loop are not the critical part. The GPU processing part is the issue.
We have done several things, I list them on the bottom: ( improving the fps from 4 to 26 )
We have done several things, I list them on the bottom: ( improving the fps from 4 to 26 )
- Resize our texture size, smaller is better.
- Reduce redundant shader instruction, especially pixel part. We remove the fog and alpha-test part ( for supporting alpha-test, we use 'kil' - it's very evil )
- Disable lighting and shadow map.
- Currently, event-listener is not the issue.
- Continuing we want to try disable mipmap, it may help us improve current performance.
OpenGL ES Programming Guide for iOS: http://developer.apple.com/library/ios/#documentation/3DDrawing/Conceptual/OpenGLES_ProgrammingGuide/Introduction/Introduction.html
Comments
Post a Comment