Skip to content

CPU is consumed when paused and minimized in the dock #3537

@low-batt

Description

@low-batt

System and IINA version:

  • macOS 12.0.1
  • IINA 1.2.0 Build 129

Expected behavior:

IINA follows the best practices in the Energy Efficiency Guide for Mac Apps. In the case at hand:

Ensure your app is absolutely idle when not in use

Actual behavior:

IINA continues to consume a small amount of CPU when a video window is paused and minimized to the dock. This capture was done on a M1 MacBook Pro with one local video file paused and the window minimized to the dock::

low-batt@gag ~$ while true; do ps -c -o 'comm,%cpu,cputime' -u low-batt | grep IINA | grep -v grep; sleep 5; done
IINA               0.5   0:01.10
IINA               0.6   0:01.14
IINA               0.6   0:01.18

CPU use increases with the number of IINA windows opened and paused. In this case there were 3 windows paused and minimized in the dock:

low-batt@gag ~$ while true; do ps -c -o 'comm,%cpu,cputime' -u low-batt | grep IINA | grep -v grep; sleep 5; done
IINA               1.2   0:04.13
IINA               1.1   0:04.22
IINA               1.1   0:04.30

Steps to reproduce:

Open several local video files in IINA, pause them, minimize the windows to the dock, use Activity Monitor or ps to confirm IINA is still consuming CPU time.

  • MPV does not have this problem.

MPV also has this problem, but MPV is not causing the IINA issue.
I already have tracked down what is consuming CPU.
I will shortly post a pull request with proposed changes to address this issue.

How often does this happen?

Every time.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions