Re: [AD] Color convertors

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


Eric Botcazou wrote:
Going with 8 byte alignment will benefit the MMX code, since memory
read/writes won't need to be split in 2 by the memory controler.


I can make so that the window is aligned on a 8-byte boundary. But, on
24-bit desktops, this means 8-pixel alignment so the window may jump a
little when the user drops it...

You can keep the 24bpp window as it is. 24bpp is slow enough - I don't think unaligned memory access will count for much :)

Also here's another suggestion: for memory BITMAPs, the line pointers can also be aligned on 8 byte boundaries. This will give a significant speed boost on Intel CPUs. Of couse, it'll break every program that uses the 'dat' or line[0] fields instead of line[n].

--
- 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/