Snappy UI - Offloading non UI task to background threads

This gives a huge increase in perceived performance. The UI is now much more responsive since some tasks are run in the background and don't block the UI anymore.
This commit is contained in:
Toni Förster
2024-05-17 16:16:48 +02:00
parent 1fe8a32fb8
commit e35f8b7892
4 changed files with 110 additions and 58 deletions

View File

@@ -10,7 +10,7 @@ import SwiftUI
final class MPVBackend: PlayerBackend {
static var timeUpdateInterval = 0.5
static var networkStateUpdateInterval = 1.0
static var networkStateUpdateInterval = 0.1
private var logger = Logger(label: "mpv-backend")