Skip to main content
Known Participant
October 20, 2011
Question

copyPixel GPU vs CPU Air3

  • October 20, 2011
  • 1 reply
  • 638 views

So, I've recently switched over to pixel blitting to handel a large number of sprites/animation on screen.  So far its the fastest method I've found and am getting great FPS with extremly large numbers of animations.

I have read in other posts and articles that copyPixel is a 'cpu' intensive method, and faster results would be had in CPU mode.  I have to say though, GPU mode seems much faster (ios, air 3.0).  I was wondering if anyone else had this experiance.

-dis.

This topic has been closed for replies.

1 reply

Known Participant
October 21, 2011

That depends on the device hardware specification. Blitting is a CPU thing for sure, because each frame the pixels are constantly redrawn so that GPU caching simply doesn't work. But I believe on certain devices like the iPad2, GPU would perform faster. That is because they are equipped with superior graphic card which can transfer large blocks of pixels faster(they are 2x larger than that on the iPhone).

Make sense?

Known Participant
October 21, 2011

Yeah, that was my general understanding.  Right now I'm testing on an iPhone4 and GPU is much faster than the CPU.  It sounds like I'll need to do some extensive device testing on iPad and iPhone3Gs  to see if GPU continues to win out.  Heh, and then on to android.

Thanks for the feed back

-dis