hyprwm / Hyprland

Hyprland is an independent, highly customizable, dynamic tiling Wayland compositor that doesn't sacrifice on its looks.
https://hyprland.org
BSD 3-Clause "New" or "Revised" License
19.53k stars 818 forks source link

Lag while a Hyprland notification is shown #6171

Open staticssleever668 opened 3 months ago

staticssleever668 commented 3 months ago

Hyprland Version

System/Version info ```sh Hyprland, built from branch at commit cba1ade848feac44b2eda677503900639581c3f4 (props: bump version to 0.40.0). Date: Sat May 4 15:42:32 2024 Tag: v0.40.0, commits: 4606 flags: (if any) System Information: System name: Linux Node name: mypc Release: 6.9.1-arch1-1 Version: #1 SMP PREEMPT_DYNAMIC Fri, 17 May 2024 16:56:38 +0000 GPU information: 03:00.0 VGA compatible controller [0300]: NVIDIA Corporation GM204 [GeForce GTX 970] [10de:13c2] (rev a1) (prog-if 00 [VGA controller]) os-release: NAME="Arch Linux" PRETTY_NAME="Arch Linux" ID=arch BUILD_ID=rolling ANSI_COLOR="38;2;23;147;209" HOME_URL="https://archlinux.org/" DOCUMENTATION_URL="https://wiki.archlinux.org/" SUPPORT_URL="https://bbs.archlinux.org/" BUG_REPORT_URL="https://gitlab.archlinux.org/groups/archlinux/-/issues" PRIVACY_POLICY_URL="https://terms.archlinux.org/docs/privacy-policy/" LOGO=archlinux-logo plugins: ```

Bug or Regression?

Bug

Description

When a notification spawned with 'hyprctl notify' is shown, system lags - in-game FPS can drop considerably and system animations and cursor movements become choppy. With 'nvtop' GPU usage spike can be seen.

How to reproduce

Add bind = WIN, G, exec, hyprctl notify 0 1000 0 "obamna" to the config. Move your cursor in a circular motion, press Win+G and observe the cursor being shown less often.

Crash reports, logs, images, videos

No response

vaxerski commented 3 months ago

they are quite inefficient, and should generally not be used for anything outside of what hyprland uses them for (important system messages)