artemsen / swayimg

Image viewer for Wayland
MIT License
380 stars 31 forks source link

swayimg can't keep up when cycling through decently sized images #121

Closed charbelnicolas closed 8 months ago

charbelnicolas commented 8 months ago

Hello, as I've said recently, I'm trying to migrate from feh to swayimg and I keep finding little glitches here and there.

When trying to cycle through a whole directory of photos which are pretty small in size, about 6 MB each image on average, swayimg stops responding and starts to slow down to a crawl. If you watch the video linked below you can see a comparison against feh. Feh doesn't struggle at all. I think swayimg could do much better in this regard.

https://drive.google.com/file/d/14bLqFwLUThAzJ_pPZdSLnUQ9sUOppq5q/view?usp=sharing

Hope you can find the culprit.

artemsen commented 8 months ago

Looks like swaying doesn't have time to render the image. Do you quickly press a key to move to the next image or just hold it down?

charbelnicolas commented 8 months ago

Looks like swaying doesn't have time to render the image. Do you quickly press a key to move to the next image or just hold it down?

Thanks for the fix, that was fast! This is while holding the key down. I'll try to test this commit and report back.

charbelnicolas commented 8 months ago

I just tried cycling through with the newest commit and it is fixed! Thank you!

artemsen commented 8 months ago

You are welcome! If you find anything else, feel free to create an issue =)