A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: How do gradients in bitmaps affect CPU?

  1. #1
    Senior Member Ray Beez's Avatar
    Join Date
    Jun 2000
    Posts
    2,796

    How do gradients in bitmaps affect CPU?

    I'm confused by a tip in Adobe's own documentation that says:

    Avoid using gradients, because they require many colors and calculations to be processed, which is more difficult for a computer processor to render.

    http://help.adobe.com/en_US/Flash/10...af6-7b1ba.html

    I understand how this would be true in a vector shape fill, but they aren't specifying vector. It seems to be implied they include bitmaps too, since the next couple tips are bitmap related.

    If they do in fact include bitmaps in this tip, can someone explain to me how this is possibly true? In a bitmap a pixel is a pixel. I don't see how it matter that the pixels form a gradiated color or not, the software still has to read and write each pixel regardless.

  2. #2
    Total Universe Mod jAQUAN's Avatar
    Join Date
    Jul 2000
    Location
    Honolulu
    Posts
    2,429
    Perhaps that refers to the final draw to the screen, separate from the calculation of the pixel color. You can always build a quick benchmark that draws thousands of squares randomly with and without gradients with an FPS meter.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center