RE: [AD] RLE clipping speedup

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


Title: RE: [AD] RLE clipping speedup

>      {
>         signed short *p = (signed short *)_scratch_mem;
>         DO_RLE(16);
>         c *= sizeof(short);
>      }

After some comparing and code reading, you seem to be right, so
the patch should probably read:
+         lines[y] = (signed char*)c * ((bits==24)?4:((bits+1)/8));                                         \
instead of
+         lines[y] = (signed char*)c;                                         \

Can't compile here, sorry. The bytes determination could probably
be on its own line, as it grows more and more as I type it ;)

I must have forgotten to install the lib, then, as I tested both
tests/test and my game, which worked OK... Sorry about that :(
Actually, the whole patch might be wrong, since it didn't get
tested at all... I'll try again tonight then...

--
Vincent Penquerc'h



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