Open jvoisin opened 2 days ago
I doubt that somebody in the Zed team will install Asahi Linux some time soon, so some profiling would be really helpful here.
https://github.com/zed-industries/zed/issues/13203 has a number of techniques described below.
Just to be clear, https://github.com/zed-industries/zed/issues/13203 is about Zed being “half the time just as slow as VS Code, and sometimes 1 frame slower”. In other words, it's pretty fast. If you feel that Zed is truly lagging, then it's possibly a different issue.
Are you sure that you're able to run Vulkan apps? I see:
2024-07-02T12:21:43+02:00 [INFO] Adapter "llvmpipe (LLVM 18.1.6, 128 bits)"
Doesn't that mean that you're using a software renderer?
What happens when you run vkcube or vkgears?
@mrnugget I don't know who else to ping, but this is this issue again: https://github.com/zed-industries/zed/issues/13154. Even though Zed is not wrong in this case, and it's probably a good idea to fall back to a software renderer, I'm now 100% convinced that Zed should show a warning to the user when that happens. Otherwise people start assuming that zed is lagging, while they're simply using the software renderer.
How to detect software rendering:
Asahi doesn’t have a public Vulkan driver so you are almost certainly running llvmpipe. Try using the OpenGL backend: https://github.com/zed-industries/zed/issues/13305. There’s a chance it will not work because it’s very new and not many people use it.
I'm indeed running llmvpipe:
$ vulkaninfo | grep -i llvmpipe
GPU id = 0 (llvmpipe (LLVM 18.1.6, 128 bits))
GPU id : 0 (llvmpipe (LLVM 18.1.6, 128 bits)):
GPU id : 0 (llvmpipe (LLVM 18.1.6, 128 bits)):
deviceName = llvmpipe (LLVM 18.1.6, 128 bits)
driverID = DRIVER_ID_MESA_LLVMPIPE
driverName = llvmpipe
$
Having a warning about this would be nice indeed.
On the bright side, @alyssarosenzweig has a working vulkan implementation that should land into Asahi Linux at some point.
Zed works well on Asahi Linux when compiling with RUSTFLAGS="--cfg gles"
. Installing the Vulkan driver somehow also should work.
Check for existing issues
Describe the bug / provide steps to reproduce it
curl https://zed.dev/install.sh | bash
I asked a couple of non-tech people "Does the movement seem more sluggish in this window (Zed) or this window (neovim in a terminal)?" and all of them said that the neovim window had instantaneous cursor movement, while the Zed one was a bit lagging.
Environment
Zed: v0.142.3 (Zed Preview) OS: Linux Wayland fedora-asahi-remix 40 Memory: 23.2 GiB Architecture: aarch64
If applicable, add mockups / screenshots to help explain present your vision of the feature
No response
If applicable, attach your
~/Library/Logs/Zed/Zed.log
file to this issue.