Improve MPV performance

This commit is contained in:
Arkadiusz Fal
2022-06-16 02:03:15 +02:00
parent ed71231df3
commit 0c6ddc3dae
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()
}
}