]> git.itanic.dy.fi Git - sdl-planets/commit
fade_buf: Optimizations
authorTimo Kokkonen <kaapeli@itanic.dy.fi>
Sat, 3 Apr 2010 10:02:44 +0000 (13:02 +0300)
committerTimo Kokkonen <kaapeli@itanic.dy.fi>
Sat, 3 Apr 2010 10:02:44 +0000 (13:02 +0300)
commit70c006184dc5fc7373e0524f2f74ba0336501c16
tree4341cc897838cdc9813a153735e9a98c3fcef408
parentc848c8f087d12dade1a1febe97fef5fb0af3ff9b
fade_buf: Optimizations

Since most of the buffer is usually black, we can skip the fading
entirely on those words that are already null. Only when the buffer
contains something to fade, individual color values are being
substracted.

Signed-off-by: Timo Kokkonen <kaapeli@itanic.dy.fi>
main.c