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

Bad UI performance, 100% CPU usage, hw accel? #223

Open
bast1aan opened this issue Dec 29, 2022 · 5 comments
Open

Bad UI performance, 100% CPU usage, hw accel? #223

bast1aan opened this issue Dec 29, 2022 · 5 comments
Labels

Comments

@bast1aan
Copy link

Hi, since a recent update it seems my Spotify instance has quite a bad UI performance, and occasionally using 100% CPU. It seems to happen when some widget is showing with moving properties, like a marquee text banner or play icon. Could it be that hardware acceleration within the electron app is default off? I cannot find any setting in the app to enable/disable this.
Running on Kubuntu 20.04 on a Intel(R) Core(TM) i5-5300U CPU / GPU.

$ flatpak list
Spotify                         com.spotify.Client                   1.1.84.716.gc5f8b819 stable      system
Freedesktop Platform            org.freedesktop.Platform             21.08.17.1           21.08       system
Freedesktop Platform            org.freedesktop.Platform             22.08.4              22.08       system
Mesa                            org.freedesktop.Platform.GL.default  21.3.9               21.08       system
Mesa                            org.freedesktop.Platform.GL.default  22.2.4               22.08       system
Mesa (Extra)                    org.freedesktop.Platform.GL.default  22.2.4               22.08-extra system
Intel                           org.freedesktop.Platform.VAAPI.Intel                      21.08       system
Intel                           org.freedesktop.Platform.VAAPI.Intel                      22.08       system
ffmpeg-full                     org.freedesktop.Platform.ffmpeg-full                      21.08       system
ffmpeg-full                     org.freedesktop.Platform.ffmpeg-full                      22.08       system
openh264                        org.freedesktop.Platform.openh264    2.1.0                2.0         system
openh264                        org.freedesktop.Platform.openh264    2.1.0                2.2.0       system
@TingPing
Copy link
Member

I don't know if Spotify correctly passes the arguments to Electron but you can try running with the same arguments the Discord package uses to enable GPU usage: https://github.com/flathub/com.discordapp.Discord/blob/master/discord.sh#L9

Like flatpak run com.spotify.Client --enable-gpu-compositing. Briefly testing it here Spotify gives absolutely no feedback about valid or invalid flags.

@bast1aan
Copy link
Author

Unfortunately, --enable-gpu-compositing has no effect.

@bast1aan
Copy link
Author

I think it is just an issue in Spotify itself, so nothing on flatpak-level can be done about it.
Would be nice if n > 1 can confirm that though.

@TingPing
Copy link
Member

It uses like 60% of one CPU core when animations are happening here. Similar actions on their web player in Firefox use 20-40%. Fair to say its not enabling all hwaccel.

@pyclicker
Copy link

i just discoverd that clearing cache helps a lot so i suggest you to try it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants