Zed/GPUI massively increase Hyprland's CPU usage #12476
-
|
Zed causes Hyprland CPU usage to increase from ~0.1% to ~9.5% (measured over 10 seconds): $ perf stat -e task-clock -p $(pidof Hyprland) sleep 10
Performance counter stats for process id '10632':
952,042,695 task-clock # 0.095 CPUs utilized
10.002466604 seconds time elapsedThe Similar behavior on both RTX 3060 and Alder Lake iGPU (with If the Zed window is moved to a different workspace, CPU usage gets back to a normal level. So, this may have to do with rendering.
A discussion in the GNOME does not show an abnormal increase in CPU usage with Zed or any GPUI application running. With shadows and corner rounding disabled, Hyprland's CPU usage with Zed open is ~7%. Blur was not used. The window is floating. Steps to run that example application$ cargo init asdf
$ cd asdf
$ cargo add gpui
$ wget -O src/main.rs https://raw.githubusercontent.com/zed-industries/zed/refs/heads/main/crates/gpui/examples/hello_world.rs
$ cargo run --release [--jobs <N>] |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
|
This may be useful: gpui/src/platform/linux/wayland/window.rs |
Beta Was this translation helpful? Give feedback.
-
|
judging by the wayland_debug output it's just the fault of that shitass wayland impl (same problem cosmic's apps have) and not a hyprland issue, but I have no clue how to even build that thing so I can't say for sure. |
Beta Was this translation helpful? Give feedback.
yep just tested, lack of damage tracking and display sync spam. This is a toolkit issue.