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

Painting shadows (in resizing window process) performance issue #771

Open
raven2cz opened this issue Feb 2, 2022 · 2 comments
Open

Painting shadows (in resizing window process) performance issue #771

raven2cz opened this issue Feb 2, 2022 · 2 comments
Labels
driver: nvidia NVIDIA driver specific problems performance Issue related to performance

Comments

@raven2cz
Copy link

raven2cz commented Feb 2, 2022

I had possibility to compare picom performance in same PC between:

  • Mesa : Radeon 5700XT
  • Nvidia Proprietary drivers : GeForce RTX 3060 Ti Pro
    In xfce, awesomewm, i3.

It is almost same in both cases. Except one feature, resizing windows. Resizing windows is very slow with picom against without picom. This is known problem and I believe that there is not easy solution to solve it.

But there is significant performance issue, resizing windows with shadows for nvidia proprietary drivers against mesa. With shadows, the resizing is really terrible.

I haven't good knowledge about configuration picom.conf for nvidia yet. Is it known problem too? Is there some specific configuration for glx, shadows or some other internal parameter which can help with nvidia proprietary drivers? Can you post here some picom.conf optimized for nvidia? Thanks for help.

@raven2cz raven2cz changed the title Painting shadows performance issue Painting shadows (in resizing window process) performance issue Feb 2, 2022
@raven2cz
Copy link
Author

raven2cz commented Feb 2, 2022

I partially solved the nvidia shadows repainting in the resizing process by activating of ForceFullCompositionPipeline in nvidia settings.

@yshui
Copy link
Owner

yshui commented Feb 2, 2022

It is slow because as it is currently implemented shadow needs to be re-rendered in X pixmap and bound to OpenGL. The binding to OpenGL part is absurdly slow in NVIDIA driver.

It's possible to render the shadow in OpenGL directly, but I haven't got around to do it yet.

@yshui yshui added driver: nvidia NVIDIA driver specific problems performance Issue related to performance labels Feb 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
driver: nvidia NVIDIA driver specific problems performance Issue related to performance
Projects
None yet
Development

No branches or pull requests

2 participants