diff --git a/components/render/ios/renderEffect.swift b/components/render/ios/renderEffect.swift index 4395f38..7b34b44 100644 --- a/components/render/ios/renderEffect.swift +++ b/components/render/ios/renderEffect.swift @@ -19,8 +19,9 @@ func renderStartTimer(_ vm: RenderVM) { // Make a time mark for calculating time delta vm.startTime = CACurrentMediaTime() - // Unlike macOS, UIKit never calls draw(_:) on the view, so the timer - // renders each frame itself. + // The frame is presented by eglSwapBuffers into the view's layer, not by + // CoreGraphics, so the timer drives the rendering itself instead of + // invalidating the view for a draw(_:) pass the way macOS does. let timer = Timer(timeInterval: 1.0 / RENDER_FPS, repeats: true) { [weak vm] _ in guard let vm else { return } renderDraw(vm)