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

bug: Dragging windows is very laggy #122

Closed
xAspirus opened this issue May 13, 2022 · 28 comments · Fixed by #123
Closed

bug: Dragging windows is very laggy #122

xAspirus opened this issue May 13, 2022 · 28 comments · Fixed by #123
Labels
bug Something isn't working critical An issue that has a very high priority to be fixed or closed window-effects Window effects and decorations window-mgt Window management components

Comments

@xAspirus
Copy link

No description provided.

@xAspirus xAspirus added the bug Something isn't working label May 13, 2022
@jmmaranan
Copy link
Collaborator

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

@jmmaranan jmmaranan added question Further information is requested window-mgt Window management components labels May 13, 2022
@jmlc11
Copy link

jmlc11 commented May 13, 2022

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.

@jmmaranan
Copy link
Collaborator

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
Copy link
Collaborator

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

@jmmaranan
Copy link
Collaborator

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 jmmaranan added window-effects Window effects and decorations critical An issue that has a very high priority to be fixed or closed and removed question Further information is requested labels May 13, 2022
@xAspirus
Copy link
Author

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

@harshkhandeparkar
Copy link

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

@jmmaranan
Copy link
Collaborator

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

@jmmaranan jmmaranan reopened this Jun 19, 2022
@harshkhandeparkar
Copy link

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

Sure I will send in a minute.

@harshkhandeparkar

This comment was marked as duplicate.

@harshkhandeparkar
Copy link

2022-06-19.23-42-30.mp4

Previous one did not preview for some reason.

@harshkhandeparkar
Copy link

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 :)

@jmmaranan
Copy link
Collaborator

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
Copy link
Collaborator

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

@harshkhandeparkar
Copy link

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.

2022-06-20.08-33-34.mp4

@harshkhandeparkar
Copy link

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
Copy link

2022-06-20.08-58-20.mp4

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

@harshkhandeparkar
Copy link

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
Copy link

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

@harshkhandeparkar
Copy link

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.

@jmmaranan
Copy link
Collaborator

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

@harshkhandeparkar
Copy link

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 :(

@jmmaranan jmmaranan changed the title bug: Dragging windows is very laggy, if many windows are open it stalls bug: Dragging windows is very laggy Jun 20, 2022
@jmmaranan
Copy link
Collaborator

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

@harshkhandeparkar
Copy link

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

yes sure!

@harshkhandeparkar
Copy link

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.

@aspizu
Copy link

aspizu commented Aug 14, 2022

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

@jmmaranan
Copy link
Collaborator

@aspizu - thank you - closing this one

@jmlc11
Copy link

jmlc11 commented Sep 18, 2022

Yes, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working critical An issue that has a very high priority to be fixed or closed window-effects Window effects and decorations window-mgt Window management components
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants