Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Document PRIME config setting on linux (#17311)
Conrad Irwin30cfff04022f
diff --git a/docs/src/linux.md b/docs/src/linux.mdindex 75e2be58d57..2b9a66d51e6 100644--- a/docs/src/linux.md+++ b/docs/src/linux.md@@ -109,6 +109,8 @@ If you are using Mesa, and want more control over which GPU is selected you canIf you are using `amdvlk` you may find that zed only opens when run with `sudo $(which zed)`. To fix this, remove the `amdvlk` and `lib32-amdvlk` packages and install mesa/vulkan instead. ([#14141](https://github.com/zed-industries/zed/issues/14141).+If you have a discrete GPU and you are using [PRIME](https://wiki.archlinux.org/title/PRIME) you may be able to configure Zed to work by setting `/etc/prime-discrete` to 'on'.+For more information, the [Arch guide to Vulkan](https://wiki.archlinux.org/title/Vulkan) has some good steps that translate well to most distributions.If Vulkan is configured correctly, and Zed is still slow for you, please [file an issue](https://github.com/zed-industries/zed) with as much information as possible.