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

Suddenly Extreme Lag and issue with shadows Shadows #1379

Closed
pfr-dev opened this issue Oct 31, 2024 · 6 comments
Closed

Suddenly Extreme Lag and issue with shadows Shadows #1379

pfr-dev opened this issue Oct 31, 2024 · 6 comments

Comments

@pfr-dev
Copy link

pfr-dev commented Oct 31, 2024

Platform

Void Linux [GlibC]

GPU, drivers, and screen setup

MACHINE: Lenovo Yoga S730-13IWL
GPU: Intel WhiskeyLake-U GT2 [UHD Graphics 620]

dave@void ~ $ glxinfo -B
name of display: :0
display: :0  screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
    Vendor: Intel (0x8086)
    Device: Mesa Intel(R) UHD Graphics 620 (WHL GT2) (0x3ea0)
    Version: 24.2.4
    Accelerated: yes
    Video memory: 7767MB
    Unified memory: yes
    Preferred profile: core (0x1)
    Max core profile version: 4.6
    Max compat profile version: 4.6
    Max GLES1 profile version: 1.1
    Max GLES[23] profile version: 3.2
OpenGL vendor string: Intel
OpenGL renderer string: Mesa Intel(R) UHD Graphics 620 (WHL GT2)
OpenGL core profile version string: 4.6 (Core Profile) Mesa 24.2.4
OpenGL core profile shading language version string: 4.60
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile

OpenGL version string: 4.6 (Compatibility Profile) Mesa 24.2.4
OpenGL shading language version string: 4.60
OpenGL context flags: (none)
OpenGL profile mask: compatibility profile

OpenGL ES profile version string: OpenGL ES 3.2 Mesa 24.2.4
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20

Environment

Standalone Openbox window manager

picom version

v12.3

Diagnostics
dave@void ~ $ picom --diagnostics                                                                                                                                                                                                       
[ 01/11/24 10:25:20.086 c2_parse_target WARN ] Type specifier is deprecated. Type "c" specified on target "_GTK_FRAME_EXTENTS" will be ignored, you can remove it.

**Version:** v12.3

### Extensions:

* Shape: Yes
* RandR: Yes
* Present: Present

### Misc:

* Use Overlay: No

* Config file specified: None
* Config file used: /home/dave/.config/picom/picom.conf

### Drivers (inaccurate):

Intel

### Backend: glx

* Driver vendors:
 * GLX: Mesa Project and SGI
 * GL: Intel
* GL renderer: Mesa Intel(R) UHD Graphics 620 (WHL GT2)
* Accelerated: 1
[ 01/11/24 10:25:20.337 egl_init WARN ] The egl backend is still experimental, use with care.

### Backend: egl

* Driver vendors:
 * EGL: Mesa Project
 * EGL driver: iris
 * GL: Intel
* GL renderer: Mesa Intel(R) UHD Graphics 620 (WHL GT2)

Configuration:

Configuration file
# ~/.config/picom/picom.conf
shadow = true;
shadow-radius = 40;
shadow-opacity = 0.30;
shadow-offset-x = -7;
shadow-offset-y = -7;

shadow-exclude = [
  "name = 'Notification'",
  "class_g = 'conky'",
  "_GTK_FRAME_EXTENTS@:c",
  "class_g = 'dmenu'",
  "class_g = 'pinentry-program'",
  "class_g = 'Xteddy'",
];

fading = true;
fade-in-step = 0.083;
fade-out-step = 0.085;
fade-delta = 7;

inactive-opacity-override = true;
inactive-opacity = 1;
active-opacity = 1;
frame-opacity = 1.0;

focus-exclude = [
  "class_g = 'Nightly'",
  "class_g = 'Nsxiv'",
  "class_g = 'feh'",
  "class_g = 'mpv'",
];

opacity-rule = [
  "100:class_g = 'Nightly'",
  "100:class_g = 'Nsxiv'",
  "100:class_g = 'feh'",
  "100:name *? = 'mpv'",
];

# backend = 'glx'
backend = "xrender";
mark-wmwin-focused = true;
mark-ovredir-focused = true;
detect-client-opacity = true;
dbe = false;
use-ewmh-active-win = true;
unredir-if-possible = false;
detect-transient = true;
detect-client-leader = true;

wintypes:
{
  tooltip = { fade = true; shadow = true; opacity = 1.0; focus = true; full-shadow = false; };
  panel = { shadow = false; }
  dnd = { shadow = false; }
  popup_menu = { fade = true; shadow = true; opacity = 1.0; }
  dropdown_menu = { opacity = 1.0; }
  dock = { shadow = false; opacity = 1.0; }
  Notification = { fade = true; }
};

Steps of reproduction

  1. Install Void Linux GlibC varient
  2. configure Xorg and install openbox WM
  3. start picom with X using the above config file

Expected behavior

This section is redundant. I expect it to work as intended

Current Behavior

dave@void ~ $ picom
[ 01/11/24 10:11:04.249 c2_parse_target WARN ] Type specifier is deprecated. Type "c" specified on target "_GTK_FRAME_EXTENTS" will be ignored, you can remove it.

Obviously, I removed that line in my config file pertaining to this. However, shadows are still not right and there is extreme lag when switching desktop workspaces while picom is active.

Here is a screenshot to show the shadows:

This is what the shadows looked like before this issue suddenly arose (likely due to the latest update) using the same configuration file:

As for the lag, who know what's changes in the latest update that might be causing it, but it's never lagged this bad on this machine before.

Stack trace

OpenGL trace

Other details

@absolutelynothelix
Copy link
Collaborator

do you have the xf86-video-intel package installed?

@pfr-dev
Copy link
Author

pfr-dev commented Nov 1, 2024

do you have the xf86-video-intel package installed?

Yes it is.

I've been using this same configuration for quite some time, and I updated my system yesterday and everything was fine, but when I booted up today I noticed the change. Hence why I believe it has something to do with the latest picom update.

Has anything changed in terms of supported backends? I have glx commented out and am using xrender however in the diagnostics output it doesn't say anything about xrender

@pfr-dev
Copy link
Author

pfr-dev commented Nov 1, 2024

Looks like possibly related to #1352 and #1358 ?

But this should be fixed in v12.3 yes?

@pfr-dev
Copy link
Author

pfr-dev commented Nov 1, 2024

OK looks like its still an xrender bug because using glx fixes it. So just to be clear, the lag and shadows bug in xrender is still there, on intel at lest.

@gh0stzk
Copy link

gh0stzk commented Nov 1, 2024

I was just reading the issue and what I understood in the links you cited is that Intel's xf86 drivers are very bad and yes the problem seems to be only with the Intel driver and the xrender backend, and reading this post I decided to try the lag thing:

With the default values ​​for the shadows, there is no lag but there are visual artifacts like i mentioned in #1358 , but if I increase the shadow-radius to, for example, 20 and leave the configuration like this:

shadow-radius = 20;
shadow-opacity = 0.60;
shadow-offset-x = -20;
shadow-offset-y = -20;

The lag is immense but the visual artifacts disappear.

@absolutelynothelix
Copy link
Collaborator

closing as duplicate of #1349.

@absolutelynothelix absolutelynothelix closed this as not planned Won't fix, can't repro, duplicate, stale Nov 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants