From a4a2d517e7577cc693d44ab272b54ef758d7edd9 Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Sun, 22 Aug 2021 10:48:55 +0200 Subject: [PATCH] app/internal/wm: [Metal] don't limit CAMetalDrawable count We shouldn't need more than 2 drawables, but changing the count from the default of 3 introduces framerate lags in fullscreen mode. This changes leaves the drawable count alone. No good deed goes unpunished. Signed-off-by: Elias Naur --- app/internal/wm/metal_darwin.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/app/internal/wm/metal_darwin.go b/app/internal/wm/metal_darwin.go index f93aa7c9..327a60cc 100644 --- a/app/internal/wm/metal_darwin.go +++ b/app/internal/wm/metal_darwin.go @@ -38,10 +38,6 @@ static void setupLayer(CFTypeRef layerRef, CFTypeRef devRef) { // Never let nextDrawable time out and return nil. layer.allowsNextDrawableTimeout = NO; } - if (@available(iOS 11.2, *)) { - // Minimize latency from input to window and save a bit of memory. - layer.maximumDrawableCount = 2; - } } }