mirror of
https://github.com/zed-industries/zed.git
synced 2026-11-29 20:11:13 +01:00
c8656ac96d
Third attempt to land this improvement: (#45577, #44273) The previous PR didn’t work on Intel MacBooks because I made a wrong assumption about the unified memory check. `has_unified_memory` only tells us that the CPU and GPU share memory. It does not mean we’re running on an Apple GPU family. Memoryless textures are only supported on Apple GPUs. Some Intel Macs report unified memory, but they don’t support memoryless textures, which is why the previous change failed there. So instead of relying on unified memory, we now explicitly check that we’re running on an Apple GPU family before enabling memoryless textures. Before you mark this PR as ready for review, make sure that you have: - [ ] Added a solid test coverage and/or screenshots from doing manual testing - [X] Done a self-review taking into account security and performance aspects - [ ] Aligned any UI changes with the [UI checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist) Release Notes: - Reduced memory usage on macOS --------- Signed-off-by: Marco Mihai Condrache <52580954+marcocondrache@users.noreply.github.com>