Upcoming Events
Gamelab
7/1 - 7/3 @ Gijón, Spain

Develop Conference and Expo
7/14 - 7/16 @ Brighton, United Kingdom

Rosetta Stone Summer Game Jam
7/17 - 7/19 @ Harrisonburg, VA

Casual Connect Seattle
7/21 - 7/23 @ Seattle, WA

More events...


Quick Stats
4389 people currently visiting GDNet.
2297 articles in the reference section.

Help us fight cancer!
Join SETI Team GDNet!



Link to us

Link to us

  search:   

  Contents

 Introduction
 Basic Blending
 Get it Working
 Tried them all!
 Who needs MMX?
 Who needs
 MMX? (cont)

 MMX Version
 Conclusion

 Printable version

 


My original desire was to write a 16bpp fade routine so I could fade my screen to black. At first, this seemed like a trivial task. My first attempt took 17 seconds to fade a 640x480 screen to black, running on a pentium 100. Not long after seeing how long it took to fade my screen did I realize that a fade to black in the high color modes is simply a special case of the more general effect of alpha blending. In this article I will take you through the optimization process I went through in my search for the fastest possible alpha blending routine. I will start with the basic equation and end with my MMX version of alpha blending.



Next : Basic Blending