iphone - optimising CGLayer drawRect method -
I am currently using CGContextDrawLayerInRect to attract a CGLayer in drawRect. It is often said that there is a way to reduce the overhead by drawing only that part of the CRLA which has changed in the draw instead of the entire CGLire?
- (zero) direct: (CGRact) rect {CGContextRef currentContext = UIGFixGetCourtContacts (); CGContextDrawLayerInRect (currentcontact, [self limit], _background layer); }
Reset parameter describes the area that should be repeated again. In addition to using it, you want to paint, not when it is dragged, you do not know what the system has done with your layer - for example, you can add a whole app to the system animation in a new reference prerender can do.
Are you actually seeing bad performance? Your drawing code may be adapted in other ways.
Comments
Post a Comment