You are not logged in.

#1 2022-05-11 11:51:21

fcon
Member
Registered: 2022-01-31
Posts: 9

Openbox high GPU usage issue

I've just switched to Openbox, and whenever I move a window while GPU usage is high (such as when a game is running), it's extremely slow, and X.Org CPU usage spikes to 100% on one core. I'm not using a compositor, and I never had this issue with KWin (also no compositor). The main reason I want to fix this is that it's stopping Discord (and Discord only, as far as i know) from playing audio while a window is being moved.

journalctl -b: https://pastebin.com/raw/pAKezNY1
Xorg log: https://pastebin.com/raw/0Wi2nYBp

Offline

#2 2022-05-11 12:02:50

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

Re: Openbox high GPU usage issue

KWin has a built-in compositor, are you absolutely certain that compositing was disabled during this situation? I'd generally expect this on a non-composited xorg, though there might be some stuff different WMs can do differently during a moving operation.

Offline

#3 2022-05-11 12:17:29

fcon
Member
Registered: 2022-01-31
Posts: 9

Re: Openbox high GPU usage issue

I'm 100% sure it was disabled. Being able to disable it was what drew me to Plasma in the first place. Never knew this was the norm, although I had noticed it with Xfwm4. There was an option to not show window contents while dragging which negated the lag, is there maybe something like that for Openbox?

Offline

#4 2022-05-11 13:37:00

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

Re: Openbox high GPU usage issue

No and it's generally not required. The exposure events aren't expensive on a local system and the nvidia driver even enables the backing store.
You're not runnin "openbox" but lxqt - try the behavior w/ a plain openbox session.

You're positive that the CPU load is on the server, not the WM?
Are there other processes w/ higher CPU load during the window moving?
Does it matter what's below the window that's being moved?

Online

#5 2022-05-13 10:00:57

fcon
Member
Registered: 2022-01-31
Posts: 9

Re: Openbox high GPU usage issue

The behaviour is the same in plain Openbox. Didn't realize LXQt may have changed things.
Ksysguard shows CPU spikes only on Xorg when dragging windows.
What's below the dragged window doesn't seem to matter, but after further testing, less demanding windows (such as Ksysguard and LXQt settings) seem to move faster than heavier windows (like Steam or OBS). All retain a sort of "solitaire effect", however. This is fixed by using "Force Composition Pipeline" in Nvidia settings, but dragging windows still causes issues with Discord, either with it on or off, and no matter how demanding the window being dragged is.

Offline

#6 2022-05-13 12:08:09

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

Re: Openbox high GPU usage issue

Does the same happen w/ eg. fluxbox or icewm?
Does it happen when dragging the window w/ alt+lmb?

You've a multiscreen setup, the composition pipeline should™ be active anyway.
Speaking of which: does it happen w/ a single screen setup?

You could also try

Option  "UseNvKmsCompositionPipeline" "false"

https://forums.developer.nvidia.com/t/v … /57733/110

Online

Board footer

Powered by FluxBB