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

Significant lag when switching to or maximizing window #65

Closed
sigaloid opened this issue Feb 18, 2021 · 4 comments
Closed

Significant lag when switching to or maximizing window #65

sigaloid opened this issue Feb 18, 2021 · 4 comments
Labels
bug Something isn't working

Comments

@sigaloid
Copy link

Describe the bug
Window is laggy when switching to or maximizing window. It renders immediately but no buttons/updating occurs like changing shades when mousing over different tracks etc. Was 2-5 seconds at first but restarting and entering stacktrace made it about 500-1000 ms? but occasionally it is even ~4 seconds.
Testing it again with stacktrace, it is consistently 5+ seconds to load into the window at full screen. It does seem to change tracks if I change tracks, but only after the delay. It's like the window doesn't realize it was activated, since no mouseover events occur like the tracks/buttons changing color

To Reproduce
Steps to reproduce the behavior:

  1. Have XFCE (may be necessary, not sure)
  2. Run program
  3. alt tab out and back in or make full screen
  4. be sad it is delayed

Expected behavior
A clear and concise description of what you expected to happen.
Not so slow to render the window, unless it's a hardware issue
Screenshots
Not sure screenshots would help. Can attach video if necessary

General information:

  • Distribution: Xubuntu 20.04 (XFCE)
  • Installation method [e. g. built from source, installed from Flathub...]: Flathub
  • Version [e.g. 0.1.0]: 0.1.7
  • Device used [e. g. desktop, phone...]: low spec (could be pertinent? cpu usage is very low) laptopp

Stack trace:
If applicable, run the application from a terminal and paste relevant log output.

flatpak run --env=RUST_BACKTRACE=full dev.alextren.Spot

Additional context
Add any other context about the problem here.
I suppose my low end PC could have something to do with it (hence xubuntu), but CPU usage is very low, and other apps render fine. Willing to do any debugging necessary as I really miss listening to music 😢 and the official client is WAY too fat.

@sigaloid sigaloid added the bug Something isn't working label Feb 18, 2021
@xou816
Copy link
Owner

xou816 commented Feb 18, 2021

Hi! Thank you for the detailed report.

This could be indeed related to limited hardware, but maybe we can still do something about it! I recently changed priorities for various tasks in the code, which could have an impact on this. Could you try using this snapshot build : https://github.com/xou816/spot/suites/2062684952/artifacts/41648291 and tell me if it's any better?

I'm very interested in hearing some feedback on this :) It's hard to see the difference this makes on powerful enough hardware

@sigaloid
Copy link
Author

sigaloid commented Feb 18, 2021

I'm not sure if that made a difference. I recorded a video showing the difference. Can't upload MKVs to github so here: https://0x0.st/-8rg.mkv (alt link https://files.catbox.moe/6frv2o.mkv)

(Note the CPU usage when I'm simply screen recording, which leads me to believe it's a spec issue?)

@xou816
Copy link
Owner

xou816 commented Feb 18, 2021

Might be spec related indeed :/ I can't do much when the window resizes, I am barely in control at this point, gtk does all the heavy lifting. Is it an issue you encounter with other apps? Or with other libhandy based apps?

I'd advise using a CLI based spotify client, there are quite a few that work great!

Thank you for the recording, this was helpful to understand the problem!

@sigaloid
Copy link
Author

The only issues I have with lag in other programs on this laptop come from electron apps.

I'll probably have to use ncspot, yeah. I don't have Gnome as my DE which I suspect may be the issue. Thanks for the help anyway, I will surely use this on my main desktop 😃

My specs are: AMD A6-7310 quad core, 4GB ram, Radeon R4 graphics, Xubuntu 20.04 just in case someone has similar specs and has a similar issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants