mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-06 01:45:36 +00:00
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 <mail@eliasnaur.com>
This commit is contained in:
@@ -38,10 +38,6 @@ static void setupLayer(CFTypeRef layerRef, CFTypeRef devRef) {
|
|||||||
// Never let nextDrawable time out and return nil.
|
// Never let nextDrawable time out and return nil.
|
||||||
layer.allowsNextDrawableTimeout = NO;
|
layer.allowsNextDrawableTimeout = NO;
|
||||||
}
|
}
|
||||||
if (@available(iOS 11.2, *)) {
|
|
||||||
// Minimize latency from input to window and save a bit of memory.
|
|
||||||
layer.maximumDrawableCount = 2;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user