You are not logged in.

#1 2020-05-14 19:36:55

InvisibleRasta
Member
Registered: 2017-04-12
Posts: 122

Bspwm lagging when resizing terminal

hello guys, i just started configuring bspwm and i am encountering some issues.

when resizing terminal windows it lags crazy and cpu/gpu usage spikes quite high. everything gets super slow but only when resizing windows

ill post my configs:

http://sprunge.us/QIssy4

http://sprunge.us/BfYV01

i tried commenting everything out bspwmrc and left only
xsetroot -cursor_name left_ptr
sxhkd &

still lags like crazy when resizing...


i am using nvidia drivers, I have no problems in awesome or openbox.

Offline

#2 2020-05-15 05:40:34

nettle
Member
Registered: 2020-05-15
Posts: 1

Re: Bspwm lagging when resizing terminal

Because I see `sxhkd` in your config, I wonder if this issue is relevant: https://github.com/baskerville/bspwm/issues/202

Offline

#3 2020-05-20 21:10:34

btw
Member
Registered: 2020-05-20
Posts: 5

Re: Bspwm lagging when resizing terminal

Sorry for possible necroposting, but I'm also using bspwm+sxhkd with compton, and no matter which blur/transparency settings in compton are enabled, it always has the same result, lagging windows that take something like half a second to actually go where they're supposed to. I checked this old thread and it sounds like the exact same problem, I'm on proprietary drivers as well as Rasta (had no issues until today with anything graphical) but I'm willing to change it to nouveau if that might help.

Most interesting is this thread where someone found a solution by holding down the menu key of all things, as well as the super key when moving windows. I don't have a menu key on my keyboard, and all of these issues seem to be from 2013-2015, so I wonder if it was more of a problem back then. I'm running an AMD cpu and nvidia gpu, but in the first thread I linked they used an AMD cpu and gpu, which is interesting, idk.

Offline

#4 2020-05-20 21:50:20

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,341

Re: Bspwm lagging when resizing terminal

Post a xorg log

Online

#5 2020-05-20 23:41:17

btw
Member
Registered: 2020-05-20
Posts: 5

Re: Bspwm lagging when resizing terminal

V1del, you mean rasta, not me right?

Offline

#6 2020-05-21 19:14:36

InvisibleRasta
Member
Registered: 2017-04-12
Posts: 122

Re: Bspwm lagging when resizing terminal

Offline

#7 2021-02-02 19:51:20

InvisibleRasta
Member
Registered: 2017-04-12
Posts: 122

Re: Bspwm lagging when resizing terminal

its been over 6 months but i am still trying to figure out what is going on...
seems like i have problems with resizing opengl applications like alacritty,.. they make my desktop lagging like crazy when resizing.
I also tried with glxgears and same thing happens
ill post a video

https://invra.xyz/wp-content/uploads/20 … .14.52.mp4

glxinfo
http://sprunge.us/cvUOCu

Last edited by InvisibleRasta (2021-02-02 20:08:52)

Offline

#8 2021-02-03 08:02:36

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,527

Re: Bspwm lagging when resizing terminal

The nvidia driver is notoriously slow at resizing GL contexts and your WM naive at resize event handling (it probably resizes for every new event position instead of eg. deferring this to a low frequency event handler - eg. on a resize event setting a timer to resize windows in 50ms and then just update the target positions until the timer hits)

Offline

#9 2021-02-09 23:44:48

InvisibleRasta
Member
Registered: 2017-04-12
Posts: 122

Re: Bspwm lagging when resizing terminal

i am not sure.. the thing is that in awesomewm i have no problems resizing alacritty but with bspwm it goes super laggy

Offline

#10 2021-02-10 08:24:55

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,527

Re: Bspwm lagging when resizing terminal

If you resize the window *fast* in awesomewm, does it "jump" between the geometries or is capable of keeping up with you?
You cold file a bug against bspwm, since i'm fairly sure that direct geometry updates are the cause of this particular behavioral pattern.
(nb. that they might tell you "screw it" because the slow GL context resizes are a particular issue w/ the nvidia driver.)

Offline

Board footer

Powered by FluxBB