forge icon indicating copy to clipboard operation
forge copied to clipboard

bug: Dragging windows is very laggy

Open xAspirus opened this issue 2 years ago • 25 comments

xAspirus avatar May 13 '22 13:05 xAspirus

Hello, do you have a screen capture of this issue? Please use the bug tracking template or provide more info.

jmmaranan avatar May 13 '22 14:05 jmmaranan

Same happening to me, cant post video files here to show a screen cast of the issue. but it only goes away if i turn off forge extension.

jmlc11 avatar May 13 '22 14:05 jmlc11

Same happening to me, cant post video files here to show a screen cast of the issue. but it only goes away if i turn off forge extension.

Do you have the OS version and which gome version are you on? This will help me triage what the issue is.

jmmaranan avatar May 13 '22 15:05 jmmaranan

I see the issue @jmlc11 @xAspirus - I am sending the fix shortly

jmmaranan avatar May 13 '22 15:05 jmmaranan

Hello @jmlc11 @xAspirus, would you be able to build from source? And see if this resolves it? https://github.com/jmmaranan/forge/tree/fix-update-decoration-lag.

jmmaranan avatar May 13 '22 15:05 jmmaranan

v46 has less lag but it still stalls sometimes. the stalling happens when the stacking hint is drawn.

xAspirus avatar May 15 '22 09:05 xAspirus

v49 still has this issue. It's better than before but still laggy.

harshkhandeparkar avatar Jun 19 '22 09:06 harshkhandeparkar

@harshkhandeparkar - do you have a screen capture of this behavior? I am re-opening this.

jmmaranan avatar Jun 19 '22 13:06 jmmaranan

@harshkhandeparkar - do you have a screen capture of this behavior? I am re-opening this.

Sure I will send in a minute.

harshkhandeparkar avatar Jun 19 '22 18:06 harshkhandeparkar

https://user-images.githubusercontent.com/34770591/174494779-3985d735-ae8c-4d18-b206-0c5c5c3e2eaf.mp4

Used OBS to capture this.

harshkhandeparkar avatar Jun 19 '22 18:06 harshkhandeparkar

https://user-images.githubusercontent.com/34770591/174494862-89b9cba9-7366-453f-888b-c226eab3b7c4.mp4

Previous one did not preview for some reason.

harshkhandeparkar avatar Jun 19 '22 18:06 harshkhandeparkar

Also: GNOME 42.2, Arch Linux, X11 I also have Blur my Shell, Gnome 4x UI Improvements and Just Perfection in case you need this information. (although the issue persists even after turning these extensions off) Forgot to mention earlier :)

harshkhandeparkar avatar Jun 19 '22 19:06 harshkhandeparkar

Also: GNOME 42.2, Arch Linux, X11 I also have Blur my Shell, Gnome 4x UI Improvements and Just Perfection in case you need this information. (although the issue persists even after turning these extensions off) Forgot to mention earlier :)

Do you use integrated graphics or dedicated like Nvidia? I see the lag only when there's like 10+ windows - I am on Nvidia Fedora 36

jmmaranan avatar Jun 19 '22 19:06 jmmaranan

Hi @harshkhandeparkar - I added some more optimizations on the sorting/looping. Would you be able to try the main branch?

jmmaranan avatar Jun 19 '22 21:06 jmmaranan

Also: GNOME 42.2, Arch Linux, X11 I also have Blur my Shell, Gnome 4x UI Improvements and Just Perfection in case you need this information. (although the issue persists even after turning these extensions off) Forgot to mention earlier :)

Do you use integrated graphics or dedicated like Nvidia? I see the lag only when there's like 10+ windows - I am on Nvidia Fedora 36

I do have dedicated Nvidia graphics and the screen runs at 144fps smoothly except while dragging. This is another screen recording, this time with the panel. It seems that the screen just stops rendering (notice the clock time on the panel) except for the cursor.

https://user-images.githubusercontent.com/34770591/174518177-f63478d7-ae96-42ba-a147-327dd75405d2.mp4

harshkhandeparkar avatar Jun 20 '22 03:06 harshkhandeparkar

Hi @harshkhandeparkar - I added some more optimizations on the sorting/looping. Would you be able to try the main branch?

I'll try in a few hours and let you know.

harshkhandeparkar avatar Jun 20 '22 03:06 harshkhandeparkar

https://user-images.githubusercontent.com/34770591/174520196-c8290550-490b-45cc-b6a1-0986c74bce3b.mp4

It doesn't lag if tiling mode is turned off.

harshkhandeparkar avatar Jun 20 '22 03:06 harshkhandeparkar

Found some more information. I use a laptop with an external mouse connected. If I drag the window using the mouse, it lags. But if I use the trackpad, it doesn't. Very strange behaviour.

harshkhandeparkar avatar Jun 20 '22 10:06 harshkhandeparkar

I also tried the master branch and it seems to have improved a lot but still laggy.

harshkhandeparkar avatar Jun 20 '22 10:06 harshkhandeparkar

Found some more information. I use a laptop with an external mouse connected. If I drag the window using the mouse, it lags. But if I use the trackpad, it doesn't. Very strange behaviour.

I want to add to this. I also use an external keyboard and I tried typing on both keyboards once and it actually created a similar kind of issue. The screen just stops rendering while typing with both keyboards simultaneously. Don't know if this is an issue with wayland as well. I will investigate further and let you know.

harshkhandeparkar avatar Jun 20 '22 10:06 harshkhandeparkar

Thanks! Can you try to install or enable xorg? Also are you on internal graphics?

jmmaranan avatar Jun 20 '22 10:06 jmmaranan

Thanks! Can you try to install or enable xorg? Also are you on internal graphics?

I am using xorg and dedicated graphics currently. I tried to use wayland but for some reason the option doesn't even appear in gdm :(

harshkhandeparkar avatar Jun 20 '22 11:06 harshkhandeparkar

Hi @harshkhandeparkar - I made more optimizations to the main branch. Can you try if it improved a bit on your end?

jmmaranan avatar Jun 29 '22 23:06 jmmaranan

Hi @harshkhandeparkar - I made more optimizations to the main branch. Can you try if it improved a bit on your end?

yes sure!

harshkhandeparkar avatar Jun 30 '22 07:06 harshkhandeparkar

Found some more information. I use a laptop with an external mouse connected. If I drag the window using the mouse, it lags. But if I use the trackpad, it doesn't. Very strange behaviour.

It is still quite unusable with mouse but dragging with trackpad is very smooth.

harshkhandeparkar avatar Jun 30 '22 07:06 harshkhandeparkar

I (@xAspirus) am on Version 52, and now I experience no lag. It has improved since. Thank you

aspizu avatar Aug 14 '22 16:08 aspizu

@aspizu - thank you - closing this one

jmmaranan avatar Aug 14 '22 19:08 jmmaranan

Yes, thank you!

jmlc11 avatar Sep 18 '22 00:09 jmlc11