picom icon indicating copy to clipboard operation
picom copied to clipboard

Lags when resizing windows

Open Danila-hub opened this issue 2 years ago • 5 comments

Platform

Arch Linux-x86_64

GPU, drivers, and screen setup

RTX2080TI
Proprietary drivers: 510.60.02, Three monitors configured side-by-side with xrandr

name of display: :1
display: :1  screen: 0
direct rendering: Yes
Memory info (GL_NVX_gpu_memory_info):
 Dedicated video memory: 11264 MB
 Total available memory: 11264 MB
 Currently available dedicated video memory: 10560 MB
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: NVIDIA GeForce RTX 2080 Ti/PCIe/SSE2
OpenGL core profile version string: 4.6.0 NVIDIA 510.60.02
OpenGL core profile shading language version string: 4.60 NVIDIA
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile

OpenGL version string: 4.6.0 NVIDIA 510.60.02
OpenGL shading language version string: 4.60 NVIDIA
OpenGL context flags: (none)
OpenGL profile mask: (none)

OpenGL ES profile version string: OpenGL ES 3.2 NVIDIA 510.60.02
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20

Environment

bspwm + picom (I also try fork picom-ibhagwan-git (The same problem)):
https://archlinux.org/packages/community/x86_64/picom/ https://aur.archlinux.org/packages/picom-ibhagwan-git

picom version

picom --version
vgit-7e568

picom --diagnostics

➜ picom --diagnostics
[ 04/18/2022 21:04:52.038 parse_config_libconfig WARN ] The refresh-rate option has been deprecated. Please remove it from your configuration file. If you encounter any problems without this feature, please feel free to open a bug report
[ 04/18/2022 21:04:52.038 get_cfg WARN ] Dual-kawase blur is not implemented by the legacy backends, you must use the `experimental-backends` option.
[ 04/18/2022 21:04:52.056 glx_has_extension INFO ] Found GLX extension GLX_SGI_video_sync.
[ 04/18/2022 21:04:52.057 glx_has_extension INFO ] Found GLX extension GLX_SGI_swap_control.
[ 04/18/2022 21:04:52.057 glx_has_extension INFO ] Missing GLX extension GLX_OML_sync_control.
[ 04/18/2022 21:04:52.057 glx_has_extension INFO ] Missing GLX extension GLX_MESA_swap_control.
[ 04/18/2022 21:04:52.057 glx_has_extension INFO ] Found GLX extension GLX_EXT_swap_control.
[ 04/18/2022 21:04:52.057 glx_has_extension INFO ] Found GLX extension GLX_EXT_texture_from_pixmap.
[ 04/18/2022 21:04:52.057 glx_has_extension INFO ] Found GLX extension GLX_ARB_create_context.
[ 04/18/2022 21:04:52.057 glx_has_extension INFO ] Found GLX extension GLX_EXT_buffer_age.
[ 04/18/2022 21:04:52.057 glx_has_extension INFO ] Missing GLX extension GLX_MESA_query_renderer.
[ 04/18/2022 21:04:52.185 init_render WARN ] Old backends only support blur method "kernel". Your blur setting will not be applied
**Version:** vgit-7e568

### Extensions:

* Shape: Yes
* XRandR: Yes
* Present: Present

### Misc:

* Use Overlay: No
  (Another compositor is already running)
* Config file used: /home/taigadev/.config/picom/picom.conf

### Drivers (inaccurate):

NVIDIA

### Backend: glx

[ 04/18/2022 21:04:52.246 gl_has_extension INFO ] Missing GL extension GL_GREMEDY_string_marker.
[ 04/18/2022 21:04:52.246 gl_init INFO ] GL vendor is NVIDIA, don't use glFinish
* Driver vendors:
 * GLX: NVIDIA Corporation
 * GL: NVIDIA Corporation
* GL renderer: NVIDIA GeForce RTX 2080 Ti/PCIe/SSE2


Configuration:

My picom and bspwm configs:

https://github.com/Danila-hub/dotfiles/blob/main/picom/picom.conf https://github.com/Danila-hub/dotfiles/tree/main/bspwm_sxhkd

Steps of reproduction

Lags when resizing windows:

  1. super + s on focus window
  2. Resize window with super+right click

This issue may not be observed on windows without transparency, as nvidia settings

Video (sorry i forgot to turn off my lo-fi):

https://user-images.githubusercontent.com/55277394/163853195-b772331b-a4ad-472b-b594-77bd2fbd2d61.mp4

Danila-hub avatar Apr 18 '22 18:04 Danila-hub

Bro, i have the same problem on my 2080TI.. That's annoying!

aralon2843 avatar Apr 18 '22 18:04 aralon2843

Same problem here with resizing electron based / GPU accelerated apps such as brave, teams, discord.

brancobruyneel avatar Apr 28 '22 08:04 brancobruyneel

I experience this with or without picom. Though it does feel worse with picom.

GTK apps (like nvidia-settings in OP) seem to suffer little to none of this visual artifact (it still does a bit, some of the time).

I think this in an issue inherent to X11. But I wonder if it's possible for this to be fixed on picom's side? picom have managed to fixed screen tearing (with vsync), so maybe it can also do something about this?

musjj avatar Mar 24 '23 14:03 musjj

I have this issue with AMDGPU 6750 XT. Lots of lag on resizing and high CPU usage.

thedaemon avatar Nov 19 '23 19:11 thedaemon

unfortunately nothing picom can do here. especially in the nvidia case. acquiring new window textures is extra slow on nvidia because their driver sucks.

oh, if you don't mind, try --backend=egl, though i don't think it's going to do much.

yshui avatar Dec 22 '23 11:12 yshui