Upcoming Events
Microsoft Gamefest Europe
8/6 @ London, United Kingdom

Ludum Dare 48hr Game Development Competition
8/8 - 8/10  

Sandbox: An ACM Video Game Symposium
8/10 - 8/11 @ Los Angeles, CA

Edinburgh Interactive Festival
8/10 - 8/12 @ Edinburgh, United Kingdom

More events...


Quick Stats
7096 people currently visiting GDNet.
2199 articles in the reference section.

Help us fight cancer!
Join SETI Team GDNet!



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