Re: [AD] improvements on alpha blending...

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


Javier González wrote:

Basically yes, but I think 3 lookups + 3 bits shift per pixel
is always faster than 6 multiplications, 3 substractions, 3 bit shifts and 6
divisions
using decimals per pixel :)


The trans blender uses 1 division (Which can be changed to a bit shift), 1 multiplication, 1 substraction, and 1 addition per pixel (on top of the shifts to extract and recombine the components).

--
- Robert J Ohannessian
"Microsoft code is probably O(n^20)" (my CS prof)
http://pages.infinit.net/voidstar/



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/