Performance with EAGLView on top of other views
I have to overlay an (mostly) transparent OpenGL view on top of some other views in my iOS app, but testing on my iPod touch (first gen, albeit, iPhone OS 3.1) gives really bad performance. I have read the http://developer.apple.com/library/ios/#documentation/3DDrawing/Conceptual/OpenGLES_ProgrammingGuide/Introduction/Introduction.html#//apple_ref/doc/uid/TP40008793-CH1-SW1(OpenGL ES Programming Guide) over att Apple which discourages overlaying OpenGL views on top of others. But I need the threaded drawing power which OpenGL views have.
So my question is just pointers on minimising the impact of blending the EAGLView on top of other views. Testing has shown that the blending alone accounts for 30% of the running time. Any ideas?
What I'm looking for is perhaps just configurations for the OpenGL view, like bu开发者_开发问答ffer size or byte size or what it could be.
The app is: http://itunes.apple.com/us/app/kick-ass-destroy-the-web/id436623109?mt=8
This slide would help you to improve OpenGL rendering performance with UIKit.
- The Best of Both Worlds: Using UIKit with OpenGL
- Slide
- Audio
精彩评论