jpochyla / psst

Fast and multi-platform Spotify client with native GUI
MIT License
8.55k stars 218 forks source link

Request frame before paint #454

Closed jacksongoode closed 4 months ago

jacksongoode commented 9 months ago

This resolves issue #367 by requesting an animation frame before we paint. However, it's at the expense of CPU cycles. It seems that CPU usage, at least on my machine, went from 5% to around 9% when quickly moving the cursor around on the page.

jacksongoode commented 9 months ago

I suspect this is the wrong way to do this but maybe it will motivate someone.

The interesting thing is that this graphical bug only happens after a user's liked tracks are loaded.