I have a method for drawing, but drawing performance is greatly affected when adjusting the scale factor for UIGraphicsBeginImageContextWithOptions.
When the scale is 1.0, everything works super fast, however, when the scale factor is either 0.0, 2.0 or 3.0 for retina displays, the performance is terrible with lots of lagging while drawing.
What can be modified to improve performance when using scale factor of 0.0, 2.0 or 3.0 for retina devices?
Draws slow, lagging:
UIGraphicsBeginImageContextWithOptions(self.view.frame.size, false, 0.0)
UIGraphicsBeginImageContextWithOptions(self.view.frame.size, false, 2.0)
UIGraphicsBeginImageContextWithOptions(self.view.frame.size, false, 3.0)
Draws fast, no lagging:
UIGraphicsBeginImageContextWithOptions(self.view.frame.size, false, 1.0)