开发者

IPad OpenGL Es Application flickering

开发者 https://www.devze.com 2023-01-13 07:44 出处:网络
I have an opengl es application on my ipad w开发者_StackOverflow中文版hich is basically a paint application, uses pretty much the same code as glpaint, the sample from apple.

I have an opengl es application on my ipad w开发者_StackOverflow中文版hich is basically a paint application, uses pretty much the same code as glpaint, the sample from apple.

When I run it in the simulator, everything looks fine, the lines render properly etc. But when I put it onto the actual ipad, every time I touch the screen, the entire screen flickers as its updating, and the lines that i draw with my finger are dashed with holes in them unless I draw extremely slowly.

Any ideas?


You have to set the kEAGLDrawablePropertyRetainedBacking option to YES in CAEAGLLayer's drawableProperties property when initializing the GL view.

Reference: Apple Technical Q&A.

0

精彩评论

暂无评论...
验证码 换一张
取 消