From 80301eb29ece026d90479dadd62aa442e2325b1c Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Sat, 28 Oct 2023 02:14:59 +0900 Subject: [PATCH] internal/graphicsdriver/metal: change the maximum drawable count to 2 Updates #2822 --- internal/graphicsdriver/metal/view_darwin.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/graphicsdriver/metal/view_darwin.go b/internal/graphicsdriver/metal/view_darwin.go index 6273c4a72..58cd17b84 100644 --- a/internal/graphicsdriver/metal/view_darwin.go +++ b/internal/graphicsdriver/metal/view_darwin.go @@ -82,7 +82,7 @@ func (v *view) initialize(device mtl.Device) error { // presentsWithTransaction doesn't work with vsync off (#1196). // nextDrawable took more than one second if the window has other controls like NSTextView (#1029). v.ml.SetPresentsWithTransaction(false) - v.ml.SetMaximumDrawableCount(3) + v.ml.SetMaximumDrawableCount(2) return nil }