internal/graphicsdriver/metal: change the maximum drawable count to 2

Updates #2822
This commit is contained in:
Hajime Hoshi 2023-10-28 02:14:59 +09:00
parent f6ffd86ca8
commit 80301eb29e

View File

@ -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
}