开发者

iPhone - dragging on UITableView halts rendering of OpenGL in background

开发者 https://www.devze.com 2023-01-21 00:50 出处:网络
I have an OpenGL-based iPad project. In one view I have objects being rendered and floating on the screen.

I have an OpenGL-based iPad project. In one view I have objects being rendered and floating on the screen.

When I add a transparent UIView on top of this view with a transparent table view with custom cells, I can see the table view and the objects still being rendered.

Now - when I go to drag on the table view to scroll through elements, the rendering halts. As soon as I release from dragging, rendering continues. Touching a开发者_StackOverflow中文版nd not dragging on the table view does not cause the rendering to halt, only when dragging.

Has anyone ever encountered this? This happens on both the simulator and device.

My thinking: rendering for OpenGL occurs at a framerate determined by the hardware. When dragging on a UITableView, does the system allocate all of its resources to scrolling the table.

An answer with at least some code is desired!

Many thanks!


Dragging an UIScrollView enters a modal loop that only processes certain run loop modes. Use CFRunLoopAddTimer to specify which run loop mode your timer runs under.

0

精彩评论

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