Re: [AD] slightly improved create_light_table()

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


> This patch makes create_light_table() produce the exact palette for the
> 255's entry in the table. It did not always to this before because of
> the inaccuracy of rgb_maps, and because some palette entry may be
> duplicated. It also rounds the pixel values more correctly if the
> rgb_map is used, and it's a bit faster (takes 20% less time on my
> system).

Here are the figures on my system (K6-II 333, DJGPP, GCC 2.95.3):
    >41% faster with rgb_map, 776 bytes bigger

Commited.

--
Eric Botcazou
ebotcazou@xxxxxxxxxx



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