single bg color
This commit is contained in:
1 parent
e0f54dde75
commit
56d4b2dd88
4 files changed
+6
-42
No files matched your search
@@ -1,5 +1,4 @@
|
||||
import Foundation
|
||||
import QuartzCore
|
||||
import UIKit
|
||||
|
||||
// Bring up EGL/ANGLE on the view's layer. Returns false when the surface could
|
||||
@@ -17,8 +16,6 @@ func renderInit(_ vm: RenderVM) -> Bool {
|
||||
// Same shape as the macOS timer: a repeating timer on the main run loop, but
|
||||
// here it calls the renderer directly instead of flagging the view for redraw.
|
||||
func renderStartTimer(_ vm: RenderVM) {
|
||||
vm.startTime = CACurrentMediaTime()
|
||||
|
||||
let timer = Timer(timeInterval: 1.0 / RENDER_FPS, repeats: true) { [weak vm] _ in
|
||||
guard let vm else { return }
|
||||
renderDraw(vm)
|
||||
|
||||
Reference in new issue
Block a user