fix: resolve UI freezes during video playback on Steam Deck
- Default MPV native log level to "warn" instead of "v" (Linux/Windows), add setLogLevel method channel to raise it when debug logging is enabled - Coalesce MPV render requests via atomic compare_exchange on needs_redraw_ - Clear redraw flag before render so new redraws queue during current frame
This commit is contained in:
@@ -101,6 +101,9 @@ class MpvPlayer {
|
||||
/// Request a redraw.
|
||||
void RequestRedraw();
|
||||
|
||||
/// Sets the MPV log message level (e.g., "warn", "v", "debug").
|
||||
void SetLogLevel(const std::string& level);
|
||||
|
||||
private:
|
||||
/// MPV event wakeup callback (called from mpv thread).
|
||||
static void OnMpvWakeup(void* ctx);
|
||||
|
||||
Reference in New Issue
Block a user