Optimize MPV polling with single batch query every 200ms
All checks were successful
Build and Release / build-and-release (push) Successful in 1m18s

Replace separate property queries with unified batch fetching:
- Consolidate position, duration, and metadata into one IPC call
- Reduce polling from 100ms to 200ms (5 FPS)
- Remove complex timeout handling in favor of simple blocking reads
- Remove unused is_idle, is_paused, and get_property methods

This eliminates status bar flashing and reduces CPU usage.
This commit is contained in:
2025-12-12 11:54:42 +01:00
parent ccc762419f
commit 0ec328881a
6 changed files with 268 additions and 252 deletions

View File

@@ -1,6 +1,6 @@
[package]
name = "cm-player"
version = "0.1.26"
version = "0.1.27"
edition = "2021"
[dependencies]