From d4c60eca47b1a5684ff484722ddbb85909d7ffcb Mon Sep 17 00:00:00 2001 From: Vandomas Date: Wed, 26 Aug 2026 11:43:50 +0300 Subject: [PATCH] Detect Apple Silicon as capable GPU (#8916) ### Work done Apple Silicon Macs running BAR through the unofficial macOS port report GL vendor "Mesa" via zink, so the GPU check lands in the unknown vendor and every M chip gets branded low end. On first launch that writes the potato defaults. This adds a vendor branch that recognizes the renderer string "zink Vulkan 1.3(Apple M3 Max (MESA_KOSMICKRISP))" and leaves the defaults alone. #### Test steps - [ ] On non Mac platforms nothing changes, the new branch is unreachable for NVidia/Intel/AMD/unknown vendors. - [ ] On an Apple Silicon Mac with the port: remove springsettings.cfg, launch, check graphics settings. Expected: standard defaults instead of water 0 and shadows 0. --- luaui/Widgets/gui_options.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/luaui/Widgets/gui_options.lua b/luaui/Widgets/gui_options.lua index f7e347ec8cc..ef13bfc6723 100644 --- a/luaui/Widgets/gui_options.lua +++ b/luaui/Widgets/gui_options.lua @@ -75,6 +75,8 @@ elseif Platform.glHaveAMD then isPotatoGpu = true gpuMem = 0 -- AMD integrated can report incorrect gpuMemorySize, so set to 0 to avoid false positives for low VRAM end +elseif string.find(glRendererLower, "apple m") then + -- Apple Silicon via zink reports vendor Mesa: "zink Vulkan 1.3(Apple M3 Max (MESA_KOSMICKRISP))" else -- Unknown/Mesa vendor without specific detection — assume low-end isPotatoGpu = true