From c8441ec9faca89562a677fdc35b4a53749811c36 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Tue, 10 Nov 2015 20:48:39 -0800 Subject: [PATCH] Rasterize the cell layer to increase scrolling performance --- Limelight/UIAppView.m | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Limelight/UIAppView.m b/Limelight/UIAppView.m index 76e2e7b..6dcc47a 100644 --- a/Limelight/UIAppView.m +++ b/Limelight/UIAppView.m @@ -44,6 +44,10 @@ self.frame = CGRectMake(0, 0, noImage.size.width, noImage.size.height); [_appOverlay setCenter:CGPointMake(self.frame.size.width/2, self.frame.size.height/6)]; + // Rasterizing the cell layer increases rendering performance by quite a bit + self.layer.shouldRasterize = YES; + self.layer.rasterizationScale = [UIScreen mainScreen].scale; + return self; }