From fd63820139400c3380ea4fd8b851f5dd20c5f665 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Tue, 2 Jan 2024 22:50:28 +0900 Subject: [PATCH] internal/graphicsdriver/metal: bug fix: always use 3 drawables Updates #2822 Closes #2880 --- internal/graphicsdriver/metal/view_darwin.go | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/internal/graphicsdriver/metal/view_darwin.go b/internal/graphicsdriver/metal/view_darwin.go index 910f97168..d72f5b7ef 100644 --- a/internal/graphicsdriver/metal/view_darwin.go +++ b/internal/graphicsdriver/metal/view_darwin.go @@ -53,13 +53,8 @@ func (v *view) forceSetDisplaySyncEnabled(enabled bool) { v.ml.SetDisplaySyncEnabled(enabled) v.vsyncDisabled = !enabled - if v.vsyncDisabled { - // Apparently 2 makes FPS half. Use 3. - v.ml.SetMaximumDrawableCount(3) - } else { - // Use 2 in a usual case not to cause rendering delays (#2822). - v.ml.SetMaximumDrawableCount(2) - } + // Always use 3. There are some situations that the FPS becomes half, or the FPS becomes too low (#2880). + v.ml.SetMaximumDrawableCount(3) } func (v *view) colorPixelFormat() mtl.PixelFormat {