Checklist:
[x] I have checked that there are no issues with similar or the same content
YOU SHOULD CHECK CLOSED ISSUES AS WELL
OS:
Ubuntu 18.04, GNOME3, Wayland
GPMDP Version:
4.6.1
Issue Descriptions:
UI elements that does playback (Play/Pause button, Previous button, Next button, pressing Play in the songs list view) lags pretty much,
and Play/Pause-ing via the space key hangs the application and the OS too.
The music it self stops without lag, but the GUI seems not responding quickly. Even the cursor stops from moving for about a second.
No other elements is laggy (Tried thumbs-up, menu buttons, and show-the-mini-player button).
I cannot reproduce this in Chromium (accessing GPM) nor vanilla Electron (window.location = "https://play.google.com/music/listen#/now").
Steps to Reproduce:
馃憢 Thanks for opening your first issue here! If you're reporting a 馃悶 bug, please make sure you include steps to reproduce it. We get a lot of duplicate issues on this repo, so please double check now that your issue has not already been solved or doesn't have an open issue already.
To help make it easier for us to investigate your issue, please follow the contributing guidelines and ensure the issue template was filled out.
Same on Ubuntu 18.04 with gnome-session on X.Org with proprietary nvidia drivers.

On each spike I changed the current song. And it does not lag when it plays the next title of the queue.
I can reproduce this with 4.6.0 and 4.6.1, 4.5.0 works just fine.
Try replacing the Electron binaries? There were some issues with 4.6.1 on KDE where it would outright segfault on startup, so maybe that version of Electron is bugged on Gnome, too. If all else fails, update to git master and build your own 64 bit deb package with the scripts? The FAQ isn't too clear on that, you really only need the dev packages for the relevant libraries, and none of the gcc or multilib versions specified, as they've gone through several major versions since then.
I tackled the issue down to being the system tray's fault or better the way GPMDP sets the tray icon.
I forked the repo and fixed the issue by not setting the icon every time the menu changes. (I actually don't know the reason why this has been done.)
And I updated Electron to 3.X, too.
You can see the changes here and download the fixed version here.
This will be fixed in an upcoming Electron upgrade
Most helpful comment
Same on Ubuntu 18.04 with
gnome-sessionon X.Org with proprietary nvidia drivers.On each spike I changed the current song. And it does not lag when it plays the next title of the queue.
I can reproduce this with 4.6.0 and 4.6.1, 4.5.0 works just fine.