weclaw1 / image-roll

Image Roll - simple and fast GTK image viewer with basic image manipulation tools. Written in Rust.
MIT License
185 stars 10 forks source link

Header bar menu really slow to open #35

Closed dflock closed 2 years ago

dflock commented 2 years ago

When I click on the "hamburger" menu in the header bar, it reacts very slowly. There's a noticeable delay before the menu button highlights itself, then another noticeable delay before the menu appears, before hovering highlights items, etc... Same when it hides itself.

It's like there's a ~250ms delay before every interaction? Not sure if this is intentional or not, but the delay seems to get longer when you have an image open. Here's a recording:

https://user-images.githubusercontent.com/47756/147955421-d29c940c-6a21-4f2a-9585-3b4a9821cd38.mp4

weclaw1 commented 2 years ago

Could you check if the latest version (1.5.0) still has a delay? I remember that there was a slight delay in the previous versions but I cannot reproduce it in the latest. I made a pretty big refactor in 1.5.0 so that might have fixed this.

dflock commented 2 years ago

Still the same for me with 1.5.0

weclaw1 commented 2 years ago

I will be upgrading the project to GTK4 in a couple of months. I will either rewrite it in relm4 (https://github.com/AaronErhardt/relm4) or recreate only the UI in Cambalache. So this should be fixed after that upgrade.

Pentaphon commented 2 years ago

Everything is really slow to use when opening up a high res image. Moving the windows, opening a menu, cropping, etc. It's like this image viewer has a built-in delay to it.

weclaw1 commented 2 years ago

Today I have started work on migrating to GTK4, so hopefully this will be fixed soon. Sorry for inactivity lately, I was preoccupied with other things.

weclaw1 commented 2 years ago

Should be fixed in the new version. Please update to 2.0.0 and create a new issue if the problem still exists.