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

Noticeable lag when opening/closing windows #11

Closed
yshui opened this issue Oct 2, 2018 · 6 comments
Closed

Noticeable lag when opening/closing windows #11

yshui opened this issue Oct 2, 2018 · 6 comments
Labels
backend: glx Issue related to the GLX backend driver: nvidia NVIDIA driver specific problems performance Issue related to performance

Comments

@yshui
Copy link
Owner

yshui commented Oct 2, 2018

Compton configuration:

--config /dev/null --backend glx

Steps of reproduction

  1. Start compton
  2. Go to Firefox
  3. Start to play some video on webpage
  4. Right click to open popup menu
  5. Click to close popup menu

Expected behavior

Video play smoothly

Current Behavior

There is a noticeable frame loss when the popup menu opens/closes

@yshui yshui added backend: glx Issue related to the GLX backend performance Issue related to performance labels Oct 2, 2018
@aufkrawall
Copy link

aufkrawall commented Oct 30, 2018

Is this with Nvidia driver? It has a broken Xorg performance "by design" which makes its stutter every time some new window element appears. That even happens completely without any compositor, and doesn't happen with AMD or Intel Mesa drivers (apart from a recent Qt regression).

@yshui
Copy link
Owner Author

yshui commented Oct 30, 2018

@aufkrawall I am using Nvidia, but I didn't notice this stutter without compton running.

@aufkrawall
Copy link

aufkrawall commented Oct 30, 2018

It gets very obvious when having this site opened in browser
https://www.vsynctester.com/
and then open some dialogues etc. With Nvidia, I even get stuttering when I hover the mouse cursor over elements of my shell which show text pop ups etc.

@ghost
Copy link

ghost commented Nov 1, 2018

I think this is kind of urgent issue, I have lag on glx driver:

compton config:
--config /dev/null --backend glx

os: archlinux latest, compton latest.

steps:

  1. open chrome
  2. right click on empty space to open chrome pop-up --> feel no lag
  3. open a url, right click on hyperlink --> feed lag/delay.

expected behavior:
right click on hyperlink on browser should not have any delay/lag.

@yshui
Copy link
Owner Author

yshui commented Mar 9, 2019

I think I understand this bug now. This is because BindTexImageEXT is so slow on NVIDIA driver. When a new window comes up, compton need to call that to create a texture for it, and since it's so slow on NVIDIA, it creates a lag.

Not sure what compton can do.

This problem once hit firefox too (8 years ago! NVIDIA just doesn't care): 1 2. But since firefox doesn't have to call BindTexImageEXT that often, this is less of a problem for them.

@yshui yshui added the driver: nvidia NVIDIA driver specific problems label Mar 9, 2019
@yshui yshui changed the title Noticeable 1 frame lag when opening/closing windows Noticeable lag when opening/closing windows Mar 9, 2019
@yshui
Copy link
Owner Author

yshui commented Feb 7, 2024

there are reports that this isn't happening anymore. maybe it's because of changes in picom, or maybe nvidia actually fixed it?!!?!?

anyway, i wanted to keep this open as a "nvidia bad" issue, but i guess that doesn't really mean much, so closing.

@yshui yshui closed this as completed Feb 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend: glx Issue related to the GLX backend driver: nvidia NVIDIA driver specific problems performance Issue related to performance
Projects
None yet
Development

No branches or pull requests

2 participants