Skip to content
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

100% CPU consumption when playing image on all displays #82

Open
arational opened this issue Sep 20, 2024 · 2 comments
Open

100% CPU consumption when playing image on all displays #82

arational opened this issue Sep 20, 2024 · 2 comments

Comments

@arational
Copy link

When playing any image file using all displays like this:

mpvpaper -o "no-audio --image-display-duration=inf" '*' /path/to/image

It consumes 100% of the chosen CPU core.

I can reliably reproduce this on the current nixos 24.05 build using mpvpaper 1.3.

@GhostNaN
Copy link
Owner

Very sorry for the late reply, a lot going on in my life right now.

I can't help you if you are using a older version of mpvpaper.
Version 1.3 is OVER 2 YEARS old now, so a lot of changes has happened since then.
So I would suggest you somehow get the latest version of 1.7 and see if the behavior persists.

@marrrrko
Copy link

I'm experiencing the same issue using mpvpaper 1.7. I'm running Sway 1.10 on Arch linux. Kernel is 6.12.4-zen1-1-zen.

$ mpvpaper -o "--loop-file=inf" DP-1 ~/Downloads/video.mp4
Cannot load libcuda.so.1
● Video  --vid=1  (h264 3840x2160 29.97 fps) [default]
VO: [libmpv] 3840x2160 yuv420p
V:  00:00:03 / 00:00:06 (54%)
$ top
top - 22:09:04 up  3:13,  2 users,  load average: 1.61, 0.96, 0.65
Tasks: 408 total,   2 running, 406 sleeping,   0 stopped,   0 zombie
%Cpu(s):  9.5 us,  0.3 sy,  0.0 ni, 90.1 id,  0.0 wa,  0.1 hi,  0.0 si,  0.0 st
MiB Mem :  31382.7 total,  12528.9 free,  13115.0 used,   6685.6 buff/cache
MiB Swap:      0.0 total,      0.0 free,      0.0 used.  18267.7 avail Mem

    PID USER      PR  NI    VIRT    RES    SHR S  %CPU  %MEM     TIME+ COMMAND
  41871 me      20   0 3610728 660976 181088 R 104.0   2.1   1:50.36 mpvpaper
   7179 me      12  -8   33.3g 891636 497280 S   3.3   2.8   2:42.34 chrome
   7228 me      12  -8   33.2g 445892 254712 S   2.0   1.4   1:04.44 chrome
...

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

No branches or pull requests

3 participants