user1414340
user1414340

Reputation: 71

Core Image vs Core Graphics

I am making an application that uses basic core Graphics functions . The Application runs reasonably well on Ipad2, but there is a performance hit on Ipad3 due to retina display, which causes drawing to be done on number of pixels 4 times to the earlier. I tried some hacks to improve performance, but since drawing takes place on gestures in my code, I think I will have to switch on to some other alternative. I was wanting to ask if Core Image provides all the functionalities that can be performed using Core Graphics, so that I may use GPU Processing capability. If not, what could be the best alternative so that I can use the same functionalities with a better processing capability.

Upvotes: 7

Views: 4132

Answers (2)

Chris Conover
Chris Conover

Reputation: 9039

A year late, I know, but take a look at WWDC 2010 Sessions on Core Animation: 424,and 425. Both are important, but there are some good details on performance tuning in 425 at about the 11:00 mark.

The short synopsis, is that there are three potential bottlenecks, and you need to identify, optimize, and keep iterating until you get a smooth 60 FPS. The potential bottlenecks are:

  • read bandwidth
  • write bandwidth
  • processing / rendering passes.

The 425 session (Core Animation in Practice, Part 2) covers techniques for dealing with the above.

https://developer.apple.com/videos/wwdc/2010/

Upvotes: 1

pasawaya
pasawaya

Reputation: 11595

Core Image and Core Graphics are very different. Core Image is an image processing technology. You can apply pre-made filters like sepia, black and white, and color invert, or you can create custom filters. Core Graphics is a rendering API utilizing Quartz 2D technologies that allows for complex drawing.

Brad Larson's GPUImage is a great alternative/addition to Core Image. You can find it here.

If you want improved performance, you can try a low level API like OpenGL. It's difficult to learn, but here are a few links to get you started:

Upvotes: 12

Related Questions