Cave Bats Of Ware
a78b560b8b
Improve GPU selection on Windows ( #39264 )
...
Closes #39263
Release Notes:
- N/A
from
https://github.com/zed-industries/zed/issues/39263#issuecomment-3358220988
>
> > If you replace that code with
> >
> > let adapter: IDXGIAdapter1 = unsafe {
> > dxgi_factory.EnumAdapters(adapter_index)
> > }?.cast()?;
> >
> > does it not select the right GPU?
>
> @reflectronic That does seem to select the active gpu for me, meaning
whichever GPU is currently connected. This is a much simpler solution
than the one I have here
(https://github.com/zed-industries/zed/pull/39264 - updated) and while
I'm sure I could imagine someone wanting to choose their GPU to render
Zed on, that may not be something that the application really needs to
support.
>
> I have a branch with just this as the only change that I can push to
that PR if the simpler solution is preferred.
>
> ```rust
> let adapter: IDXGIAdapter1 = unsafe {
> dxgi_factory.EnumAdapters(adapter_index)?.cast()?
> };
> ```
2025-10-10 11:47:57 -04:00
..
2025-10-06 13:39:19 +02:00
2025-10-08 17:36:52 +02:00
2025-10-08 15:52:06 +00:00
2025-10-07 01:01:17 +00:00
2025-10-08 17:36:52 +02:00
2025-10-10 16:35:37 +01:00
2025-09-29 18:56:03 +00:00
2025-10-07 09:48:03 +02:00
2025-09-27 14:50:10 +00:00
2025-09-30 11:41:49 +00:00
2025-10-08 17:36:52 +02:00
2025-10-08 20:30:27 +00:00
2025-10-10 15:44:48 +02:00
2025-10-06 20:35:44 +00:00
2025-09-29 18:56:03 +00:00
2025-10-08 17:36:52 +02:00
2025-10-06 20:35:44 +00:00
2025-10-08 17:36:52 +02:00
2025-10-08 12:04:06 -06:00
2025-09-30 14:30:13 +00:00
2025-10-08 12:02:21 -06:00
2025-10-08 19:48:40 +00:00
2025-10-08 17:36:52 +02:00
2025-10-05 13:44:31 -07:00
2025-10-08 20:20:50 +03:00
2025-10-07 12:11:15 +00:00
2025-10-08 19:48:40 +00:00
2025-09-29 09:03:00 -07:00
2025-10-08 21:57:57 +00:00
2025-10-08 21:57:57 +00:00
2025-09-27 14:50:10 +00:00
2025-10-06 08:08:49 +00:00
2025-10-06 08:08:49 +00:00
2025-09-29 10:11:48 -04:00
2025-10-08 12:02:21 -06:00
2025-10-08 12:02:21 -06:00
2025-10-08 12:04:06 -06:00
2025-10-09 14:34:52 +00:00
2025-09-27 14:50:10 +00:00
2025-09-27 14:50:10 +00:00
2025-09-26 11:41:26 -04:00
2025-09-26 15:17:36 +00:00
2025-10-08 17:36:52 +02:00
2025-10-07 12:11:15 +00:00
2025-10-09 16:17:49 +00:00
2025-10-10 15:14:37 +00:00
2025-10-08 16:42:39 +01:00
2025-10-08 17:36:52 +02:00
2025-10-06 18:24:28 +02:00
2025-09-26 22:28:52 +00:00
2025-10-09 18:33:05 +00:00
2025-10-09 18:33:05 +00:00
2025-10-09 14:34:52 +00:00
2025-10-09 13:11:11 +02:00
2025-10-10 11:47:57 -04:00
2025-10-05 13:44:31 -07:00
2025-10-05 13:44:31 -07:00
2025-09-30 12:27:23 -03:00
2025-10-08 17:36:52 +02:00
2025-10-08 12:10:53 -06:00
2025-10-08 17:36:52 +02:00
2025-10-08 19:48:40 +00:00
2025-10-08 13:03:15 -03:00
2025-10-08 12:04:06 -06:00
2025-09-27 14:50:10 +00:00
2025-10-08 12:02:21 -06:00
2025-10-10 12:59:52 +00:00
2025-10-03 20:11:21 -06:00
2025-10-08 19:48:40 +00:00
2025-10-09 12:00:22 +02:00
2025-10-08 19:48:40 +00:00
2025-10-02 23:04:31 +02:00
2025-10-09 19:11:42 +02:00
2025-10-05 13:44:31 -07:00
2025-10-09 23:00:16 +00:00
2025-10-08 12:02:21 -06:00
2025-10-09 14:34:52 +00:00
2025-10-06 18:38:30 +00:00
2025-10-10 12:59:52 +00:00
2025-10-08 22:47:25 +00:00
2025-10-03 19:20:51 +00:00
2025-10-08 12:04:06 -06:00
2025-10-07 12:23:31 +00:00
2025-10-09 18:33:05 +00:00
2025-10-10 18:19:58 +05:30
2025-10-06 13:39:19 +02:00
2025-10-02 23:04:31 +02:00
2025-10-08 17:36:52 +02:00
2025-10-05 13:44:31 -07:00
2025-10-08 21:57:57 +00:00
2025-10-10 09:09:24 +02:00
2025-10-08 17:36:52 +02:00
2025-10-05 21:42:27 +03:00
2025-10-08 20:48:17 +02:00
2025-10-07 11:58:58 +00:00
2025-10-05 13:44:31 -07:00
2025-10-09 10:59:08 -04:00
2025-10-08 17:36:52 +02:00
2025-10-10 15:44:31 +02:00
2025-09-26 11:41:26 -04:00
2025-09-27 11:01:04 +02:00
2025-10-08 17:36:52 +02:00
2025-10-05 13:44:31 -07:00
2025-09-29 15:48:58 +00:00
2025-09-26 15:17:36 +00:00
2025-10-09 12:00:22 +02:00
2025-09-27 14:50:10 +00:00
2025-10-09 10:59:08 -04:00
2025-10-09 10:59:08 -04:00
2025-10-02 23:04:31 +02:00
2025-10-08 19:19:48 -04:00
2025-10-08 17:36:52 +02:00
2025-10-08 17:36:52 +02:00
2025-10-08 17:36:52 +02:00
2025-09-29 18:08:47 +02:00
2025-10-09 16:54:37 -03:00
2025-10-08 12:27:22 -03:00
2025-10-03 17:35:30 +00:00
2025-09-29 10:09:31 -03:00
2025-10-09 12:00:22 +02:00
2025-10-05 13:44:31 -07:00
2025-10-09 12:18:48 +01:00
2025-10-08 17:36:52 +02:00
2025-10-08 17:36:52 +02:00
2025-10-08 12:04:06 -06:00
2025-10-03 16:00:09 -04:00
2025-10-10 15:14:37 +00:00
2025-10-10 15:14:37 +00:00
2025-10-08 12:02:21 -06:00
2025-10-08 21:57:57 +00:00
2025-10-08 23:14:40 +00:00
2025-10-10 12:44:36 -03:00
2025-09-26 11:41:26 -04:00
2025-10-08 17:36:52 +02:00