Support iOS for ogs-blue #7

Merged
kornerr merged 55 commits from iosblue into master 2026-10-30 14:17:25 +00:00
Showing only changes of commit ac649266ac - Show all commits
+3 -2
View File
@@ -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)