-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Slow on Linux (Intel Integrated Graphics) #14088
Comments
I'm also experiencing noticeable lag. elementary OS 7.1 Horus (based on Ubuntu 22.04.3 LTS) |
Not sure if it's related to Intel. When running Zed even on external nvidia gpu it starts lagging on cpu-intensive task (Zed log confirms that it runs on external Nvidia GPU). Arch Linux zed_lags.mp4 |
This comment was marked as spam.
This comment was marked as spam.
Can confirm that not related to Intel. |
It seems to be a Pop OS issue |
I have same snippet in my logs: though my laptop does not have nvidia. lspci: |
Same issue on my Ubuntu 24, moving up and down the lines even with keyboard feels very laggy. I am using Nvidia 1050ti GPU. |
Not sure why this got renamed to be a Pop!_OS issue. I'm running elementary OS and I also experience it, as do other people running other systems |
I am having the same problem. Hardware Model: HP Laptop 15-da0xxx |
For me, the editor does not start at all when in iGPU mode: but it runs well in dGPU mode(RTX 3050 6GB) |
manjaro/ intel hd also slow |
same issue on Kali / AMD |
I experienced the same issue on NixOS. I have a dedicated graphics card. Hardware Information:
Software Information:
|
Zed starts almost instantly (<1s) for me. Hardware Information: Software Information: Edit: |
Zed starts at a good speed compared to others on my device, approx <3s Specs: Edit: |
i dont think this is about startup speed, its about rendering and latency. In my case scrolling file make zed process to consume %100 percent of the cpu(an entire core) and typing is not smooth |
I have tried manually accelerating zed but still getting lag. My machine specs.OS: Pop!_OS 22.04 LST x86_6 |
I think i found the solution at least for me. As i mentioned before in my zed logs i found below lines: 2024-07-13T10:17:05+03:00 [WARN] Rejecting Intel for not presenting when Nvidia is present (on Linux) My laptop,system76 lemur pro, does not have any nvidia and i searched source code and found that zed is using blade library. https://github.com/kvark/blade/blob/473b71b20d492f753e1f6a938c0e60ac755762b0/blade-graphics/src/vulkan/init.rs#L128 line is printing above warning. That warning is behind an if condition https://github.com/kvark/blade/blob/473b71b20d492f753e1f6a938c0e60ac755762b0/blade-graphics/src/vulkan/init.rs#L116 and in some part it is checking for file called "/etc/prime-discrete" with a content "on" https://github.com/kvark/blade/blob/473b71b20d492f753e1f6a938c0e60ac755762b0/blade-graphics/src/vulkan/init.rs#L50 I edit the file /etc/prime-discrete and change the on string to off(actually any content other than on can work). Now in my zed logs i can see below line and cpu usage is about 2-3% :) which is nice 2024-07-15T22:30:36+03:00 [INFO] Adapter "Intel(R) Graphics (RPL-U)" In the mean time you should be careful if you have nvidia prime because /etc/prime-discrete file should be related to that tech . |
This actually works. |
Quite a wide range of iGPU here. I see one that is 7 years old, and one that is 12 years old. That may have an impact on performance due to drivers if they even have vulkan drivers. But you can see above that some are having LLVM pipe forced (CPU rendering) which will be even slower on old hardware. Lastly if TLDR: if both iGPU and dGPU drivers fail then vulkan tries to use the last resort which is llvmpipe for cpu rendering and this is very slow. |
This worked for me too. |
please help me on AMD gpu s |
This worked for me as well using pop_os! on one of system76's meerkat 8's!! I had 100% cpu usage and temps were skyrocketing. I didn't have the same problem on the amd framework13 with pop os. |
The issue was resolved upon updating the vulkan drivers for my system and reinstalling the intel-specific vulkan drivers
Now, the lag is almost unnoticeable, although performance is not as good as using the dGPU |
Hey! If you are using latest kernel + latest intel/amd driver and it still slow, you should create a ticket here https://gitlab.freedesktop.org/mesa/mesa/-/issues it's project which responsible for your drivers. |
this worked for me! |
Experienced the same issue on Intel Hardware, Ubuntu 24.10 and Flatpak. A simple |
Check for existing issues
Describe the bug / provide steps to reproduce it
Running zed on my linux machine is relatively slow compared to other editors.
Scrolling lags and even highlighted items while moving the cursor are lagging.
I suspect zed is not utilizing the integrated graphics.
I have vulkan on my system and vkcube runs perfectly.
Environment
OS: Pop!_OS 22.04 LTS x86_64
CPU: Intel i7-8650U (8) @ 4.200GHz
GPU: Intel UHD Graphics 620
If applicable, add mockups / screenshots to help explain present your vision of the feature
No response
If applicable, attach your Zed.log file to this issue.
Zed.log
The text was updated successfully, but these errors were encountered: