mirror of
https://github.com/yattee/yattee.git
synced 2025-01-10 11:30:32 +05:30
Disable MPV drawing in simulator
This commit is contained in:
parent
1d5c3a28e4
commit
803ee776dc
@ -340,6 +340,11 @@ final class MPVClient: ObservableObject {
|
||||
}
|
||||
|
||||
private func glUpdate(_ ctx: UnsafeMutableRawPointer?) {
|
||||
#if targetEnvironment(simulator)
|
||||
// performance of drawing in simulator is poor and buggy, disable it
|
||||
return
|
||||
#endif
|
||||
|
||||
let glView = unsafeBitCast(ctx, to: MPVOGLView.self)
|
||||
|
||||
guard glView.needsDrawing else {
|
||||
|
Loading…
Reference in New Issue
Block a user