caeagllayer

Why does UIScrollView pause my CADisplayLink?

有些话、适合烂在心里 提交于 2019-11-30 17:40:43
I have a view backed by a CAEAGLLayer, which is inside a UIScrollView. When I begin scrolling, the CADisplayLink that calls the -draw method of openGL view stops getting called. I verified that my runloop start / stop methods don't get called when scrolling. The -draw method simply doesn't get called as soon as scrolling begins, and resumes getting called as soon as scrolling ends. Does UIKit stop a CADisplayLink from firing as soon as scrolling starts? The display link is added to the run loop like this: [dl addToRunLoop:[NSRunLoop currentRunLoop] forMode:NSDefaultRunLoopMode]; Maybe there is

Why does UIScrollView pause my CADisplayLink?

浪尽此生 提交于 2019-11-30 02:00:37
问题 I have a view backed by a CAEAGLLayer, which is inside a UIScrollView. When I begin scrolling, the CADisplayLink that calls the -draw method of openGL view stops getting called. I verified that my runloop start / stop methods don't get called when scrolling. The -draw method simply doesn't get called as soon as scrolling begins, and resumes getting called as soon as scrolling ends. Does UIKit stop a CADisplayLink from firing as soon as scrolling starts? The display link is added to the run