Document PRIME config setting on linux (#17311)

Release Notes:

- N/A
This commit is contained in:
Conrad Irwin 2024-09-03 10:16:51 -06:00 committed by GitHub
parent 30056254f3
commit 30cfff0402
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -109,6 +109,8 @@ If you are using Mesa, and want more control over which GPU is selected you can
If 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.