Improve MPV performance

This commit is contained in:
Arkadiusz Fal
2022-06-16 02:03:15 +02:00
parent 524fe7c087
commit 1cfe4b089f
4 changed files with 33 additions and 30 deletions

View File

@@ -324,8 +324,8 @@ final class MPVClient: ObservableObject {
return
}
DispatchQueue.main.async {
glView.setNeedsDisplay()
glView.queue.async {
glView.display()
}
}