Created attachment 8572 high one core usage Hi, I'm testing lastest git version and I have high CPU usage on every window move with my Nvidia graphic card like in screenshot, below my hw specyfication: graphics: Device-1: NVIDIA GK106GLM [Quadro K2100M] driver: nvidia v: 418.74 Display: x11 server: X.Org 1.20.4 driver: nvidia resolution: 1920x1080~60Hz OpenGL: renderer: Quadro K2100M/PCIe/SSE2 v: 4.6.0 NVIDIA 418.74 CPU: Topology: Quad Core model: Intel Core i7-4800MQ bits: 64 type: MT MCP L2 cache: 6144 KiB Speed: 1314 MHz min/max: 800/3700 MHz Core speeds (MHz): 1: 1197 2: 1199 3: 1197 4: 1198 5: 1197 6: 1198 7: 1197 8: 1198 System: Host: test-pc Kernel: 4.19.42-1-MANJARO x86_64 bits: 64 Desktop: Xfce 4.13.4git-master Distro: Manjaro Linux
Most likely vsync, try disabling vsync. From a terminal, type: $ xfwm4 --replace --vsync=off Note that you'll get a lot of tearing in exchange.
With Intel graphics is no problem, xfwm4 process has below 1% CPU, so this is problem with xfmw4 because eg. compton + Nvidia works also fine below 1% CPU without tearing.
You're not replying my question, please try with "xfwm4 --replace --vsync=off" and report.
Because I can't try it at the moment, I'll try at the evening.
I tried xfwm4 --replace --vblank=off instead of --vsync=off now xfwm4 CPU is lower max 8% but Xorg is higher to 25% with tearing.
Olivier Fourdan referenced this bugreport in commit d5222bcfee97f2924545eed1a524c3f1e8589511 compositor: Force "GL_MaxFramesAllowed" to 1 https://git.xfce.org/xfce/xfwm4/commit?id=d5222bcfee97f2924545eed1a524c3f1e8589511
Olivier Fourdan referenced this bugreport in commit 89f3ab5db72226aac6cec1c6adf4f03ce16b010e compositor: Remove glXWaitGL() call https://git.xfce.org/xfce/xfwm4/commit?id=89f3ab5db72226aac6cec1c6adf4f03ce16b010e
Good news, now CPU is low like without vsync and xorg also is low.
So you've tried the current code and it works?
Yes, I tried on one machine, I have another one with Nvidia and 4K, but 4K is really very bad,
i'm confused, is it solved?
Yes on my full hd laptop is solved, other machine with 4K also is solved but overall problem with 4K movies still exists, probably it not depends to window manager, rather linux drivers itself.
Thank you for testing, closing now.