# gpui: Prefer removable over integrated Metal devices \(\#14744\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/3a83fecea9f383460464107b1d44069e02091bc6)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 3a83fecea9f383460464107b1d44069e02091bc6

Requested commit: 3a83fecea9f383460464107b1d44069e02091bc6

Commit: 3a83fecea9f383460464107b1d44069e02091bc6

Tree: cb38305ec7fc706c5d872b84beb4d6556021af0c

Author: Thorsten Ball

Committer: GitHub

## Message

```
gpui: Prefer removable over integrated Metal devices (#14744)

For context, see:

-
https://github.com/zed-industries/zed/issues/5124#issuecomment-2227743811
-
https://github.com/zed-industries/zed/pull/14738#issuecomment-2236613976

Short version: on Intel MacBooks it's better to prefer integrated
(`is_low_poer()`) GPUs, except when a user has an eGPU plugged-in, in
which case they very likely want to prefer that.

Before this change, we'd always prefer the integrated GPU, even if an
eGPU was available.

Now, with this change, if a user has

- eGPU
- integrated GPU
- discrete GPU

We'd first prefer eGPU, then integrated, then discrete.



Release Notes:

- Changed preference for GPUs on macOS so that eGPUs are now preferred
over integrated ones (and both of which are preferred over discrete
GPUs) on Intel Macs.
```

## Parents

- [bac4a0428d9f3484382201abc148f7b1fd4a6b87](https://git.cafe/gitcafe/zed/commit/bac4a0428d9f3484382201abc148f7b1fd4a6b87?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/3a83fecea9f383460464107b1d44069e02091bc6?format=markdown)
