I did this in the init for the main view, which contains the UIGLView:
Code:
[self startHeartbeat:@selector(update) inRunLoopMode:nil];
And further down in the implementation:
Code:
- (void)update {
[glview setNeedsDisplay];
} This does work and it seems to lock to a frame rate of about 60FPS.
BUT, the flicker is still there. Now it's more even, that is all buttons, status bar and so on blinks at the same time. It also still flickers when the home button is pushed (probably has to catch the button press and call [self stopHeartbeat] to stop the redraw).
To conclude:
- startHeartbeat works
- it does not get rid of the flicker
- it seems to sync up all drawing a bit
Cheers,
Max
Bookmarks