mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-15 00:06:09 +03:00
metal: disable v-sync
This commit is contained in:
@ -136,6 +136,10 @@ pub fn init(alloc: Allocator, font_group: *font.GroupCache) !Metal {
|
|||||||
const swapchain = CAMetalLayer.msgSend(objc.Object, objc.sel("layer"), .{});
|
const swapchain = CAMetalLayer.msgSend(objc.Object, objc.sel("layer"), .{});
|
||||||
swapchain.setProperty("device", device.value);
|
swapchain.setProperty("device", device.value);
|
||||||
swapchain.setProperty("opaque", true);
|
swapchain.setProperty("opaque", true);
|
||||||
|
|
||||||
|
// disable v-sync
|
||||||
|
swapchain.setProperty("displaySyncEnabled", false);
|
||||||
|
|
||||||
break :swapchain swapchain;
|
break :swapchain swapchain;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user