Skip to content

Fix audio stutter, dropped frames entering full-screen, #5352 #5355

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 30, 2025

Conversation

low-batt
Copy link
Contributor

This commit will:

  • Remove the suspend and resume methods from ViewLayer
  • Remove the blocked property from ViewLayer
  • Remove the reference to the blocked property in MPVController.mpvUpdateCallback
  • Remove the calls to suspend in the windowWillEnterFullScreen and windowWillExitFullScreen methods in MainWindowController
  • Remove the calls to resume in the windowDidEnterFullScreen and windowDidExitFullScreen methods in MainWindowController

Possibly suspending video processing was useful in the past with low performance hardware, but it is consistently triggering audio device underrun and sometimes triggering full audio/video desynchronization. The mpv player does not suspend video processing like this and does not exhibit problems entering and leaving full screen mode. Removing this code significantly improved the behavior of entering and leaving full screen mode.


Description:

This commit will:
- Remove the suspend and resume methods from ViewLayer
- Remove the blocked property from ViewLayer
- Remove the reference to the blocked property in
  MPVController.mpvUpdateCallback
- Remove the calls to suspend in the windowWillEnterFullScreen and
  windowWillExitFullScreen methods in MainWindowController
- Remove the calls to resume in windowDidEnterFullScreen and
  windowDidExitFullScreen in MainWindowController

Possibly suspending video processing was useful in the past with low
performance hardware, but it is consistently triggering audio device
underrun and sometimes triggering full audio/video desynchronization.
The mpv player does not suspend video processing like this and does not
exhibit problems entering and leaving full screen mode. Removing this
code significantly improved the behavior of entering and leaving full
screen mode.
@low-batt low-batt requested review from lhc70000 and uiryuu January 25, 2025 23:50
@low-batt low-batt linked an issue Jan 25, 2025 that may be closed by this pull request
3 tasks
@lhc70000 lhc70000 merged commit 0107e9d into develop Jan 30, 2025
2 checks passed
@lhc70000 lhc70000 deleted the full-screen-stutter branch January 30, 2025 05:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Audio Stutter and Dropped Frames When Entering Full-Screen Mode
2 participants