mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-14 15:56:13 +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"), .{});
|
||||
swapchain.setProperty("device", device.value);
|
||||
swapchain.setProperty("opaque", true);
|
||||
|
||||
// disable v-sync
|
||||
swapchain.setProperty("displaySyncEnabled", false);
|
||||
|
||||
break :swapchain swapchain;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user