-
-
Notifications
You must be signed in to change notification settings - Fork 594
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
compton lags on intel card #142
Comments
Wait, you are using the xrender backend. The vsync change should have no effect on the lag. I'm not sure what you mean. I tried your config on an Intel card, and cannot reproduce the lag. Also, it's recommended that you use the glx backend |
I think the lag is unrelated. When I just run without |
@tya99 I think the command line option issue is resolved. I change the title of this issue to make it about the lag. |
Do you think this could be related to #139 ? If there's anything you want me to try, to get to the bottom of this I'm ready to help. |
@tya99 Well first I want to understand what do you mean by "everything seems really laggy" |
Scrolling in Firefox, context menus opening etc selection. Same for Thunar as well. Generally everything appears sluggish. glxgears also gives off real poor frames:
Where as with compton 5.1
And no compositor:
|
Can you try using the glx backend? Also, try |
With
When I set
I'm not sure if glxgears is the best way to test this? I don't really know a lot about this area (graphics not my thing) so it was a way I thought I could benchmark. There certainly seems to be a correlation between the "smoothness" of the gears, frame-rate and what works nicely elsewhere though. |
Hmm, not quite sure what changed to cause this. If you got time, maybe you could do a git bisect. |
Can do that, is there a particular commit you want me to check between? |
@tya99 Between 5.1 and 6 I guess? Since you said 5.1 is fine. Thanks |
Yeah I just read the man for bisect. I thought it would be harder e109bee looks good, there's a bunch that are only produce a black screen for me. Trying to narrow it down to the one that makes performance go to shit. |
98d8e84 is the first one that actually runs. The frames have dropped significantly there.
It's not the worst but it's certainly not smooth like it was when it was 300 frames. |
BTW, I forgot to ask. Are you running these tests with or without vsync enabled? If you don't set Also, please make sure you do the tests with nothing else running. |
That first test ie v6 release with
Ooops I might have forgotten. Using v6 with
and with
e109bee looks good
98d8e84 not so good
Then it seems things drop dramatically at
|
I had Firefox and termite, but that's all, oh and i3, i3status etc. |
Tried it again with Firefox closed, and yeah still same issue, confirmed at all points mentioned in comment #142 (comment) same kinds of values. |
So I'm starting to think there might be two different issues. Ie everything is fine at e109bee then through to 98d8e84 I can't actually get compton to work, all I get is a black screen with mouse pointer. At this point performance has dropped considerably. Finally at dd240d0 it drops further again, which is the same as the final v6 release. |
Can you test v5.1 with |
Yeah, the frame rate is awful. $ compton --vsync opengl-swc --backend glx
|
@tya99 So, that is the problem then. Try just disable vsync. |
If I do that on 5.1 it works okay:
Do you just not specify ./build/src/compton
|
@tya99 If you didn't set vsync to true in your config file, then this is pretty interesting. Can you do a bisect with vsync disabled all the way? If you have the time, of course. |
Sure, you can see my config (in my first post) has not got vsync set. I will now re-run the tests without vsync for comparison. So compton v6 ie 3bf86b3
Now looking at commit e109bee things seem to be great as they were in the above tests, nice and smooth.
Now at commit: 98d8e84
Those frames are not so good, and it looks jerky.
I was able to get commit 709065d running, but not any earlier in that portion in the middle because when running compton I'd just get a black screen.
At commit: dd240d0 Things are much worse as they were above, just writing in vim is painful. Wow.
So I decided to try one commit after e109bee (the good one) Black screen, so there goes that idea, so it seems to be black screening in the same place, and performance seems to be decreasing in the same places. |
Interesting.... I tried compton 6.2 with Should I be doing these bisects on |
I should also note that v6.1rc2 was better than before 3bf86b3 as I was getting
but still not as good as what 6.2 final is, ie ff85c11 By the way, should I be getting normal frames like 300 with |
I should also mention that even with v5.2 and
I seem to remember that being better on my NVIDIA card (another machine). However on that release
So with 6.2 I settled on |
This is caused by fast repainting of windows. If you play an mpv video it will lag miserably. See tryone144/compton#5 Kwin does not have this problem so could look there how to solve it. It seems Kwin just excludes OpenGL windows from compositing (at least partially). With Kwin (with full blur, transparency effects multiple videos and a game running all visible and moving/resizing windows) I get full FPS/Frames without any single lag or tearing. Also Kwin uses some "tricks" appearently. When moving a Dolphin window by dragging its toolbar while mpv video is running, it will also lag miserably (even worse than compton). When using the mod+mouse hotkey or just dragging the window from its titlebar it stays at 60fps regardless how busy the screen actually is. |
To put the update I posted in the other fork: I don't know why I get full FPS now (even with multiple openGl applications running and moving) but I get 60fps at glxgears. Nvidia proprietary and Gentoo here. |
Unfortunately I'm seeing the same issues. I have shadows and Dual-kawase aktivated. The frame rate drops happen only with the I would simply opt for the I've tried various versions from this thread as well and I'm currently on the At first I thought it had something to do with my drivers, as I'm using the display-port driver, but switching it out for the intel drivers made no difference in performance. I've included the config files as well just in case I oversaw some glaring defect: /usr/share/X11/xorg.conf.d/20-intel.conf
/usr/share/X11/xorg.conf.d/20-evdidevice.conf
GLX Info
Picom Diagnostics
Picom Config
|
I should specify that this only happens when I'm moving a floating window. Otherwise the framerate (per |
Platform
Archlinux
GPU, drivers, and screen setup
xf86-video-intel-1:2.99.917+863+g6afed33b
, two monitors configured side-by-side with xrandrmesa-19.0.0-1-x86_64
ie
Environment
i3
Compton version
Compton configuration:
Steps of reproduction
I used to run
However it seems now the
--vsync opengl
option as of Compton 6 causes an error.It wasn't apparent to me what the replacement should have be. If you spot anything else you think is wrong there please do tell.
I have also noticed everything seems really laggy in compton 6 as opposed to 5.1, assuming I start it with
The text was updated successfully, but these errors were encountered: