mirror of
https://github.com/yattee/yattee.git
synced 2024-12-22 13:33:42 +00:00
Disable MPV drawing in simulator
This commit is contained in:
parent
c0f395b2df
commit
9c98cf9558
@ -340,6 +340,11 @@ final class MPVClient: ObservableObject {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private func glUpdate(_ ctx: UnsafeMutableRawPointer?) {
|
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)
|
let glView = unsafeBitCast(ctx, to: MPVOGLView.self)
|
||||||
|
|
||||||
guard glView.needsDrawing else {
|
guard glView.needsDrawing else {
|
||||||
|
Loading…
Reference in New Issue
Block a user