Erik's Allegro Optimisation Page
About Allegro
Allegro is a wonderful game programming library for DJGPP, written by Shawn Hargreaves. To use it, you need DJGPP. DJGPP is a free 32-bit compiler for DOS, made by DJ Delorie. To use it, you need DOS. DOS is a horrible operating system, written by Bill. Bill is the latest antichrist.
Get Allegro at http://www.talula.demon.co.uk/allegro/
Get DJGPP at http://www.delorie.com/djgpp/
If you don't have DOS, do NOT buy it from Bill. Instead, download FreeDOS or OpenDOS for free!
My Optimisations of Allegro
After studying Pentium optimisation, I took a look at Allegro's gfx routines. I found that many of them could get quite much faster. I started to optimise the _linear_draw_trans_sprite8 routine, and when I was done with it, it was about 35% faster. I've also optimised _linear_draw_sprite8, and it got about 35% faster too. Both of them are included in every Allegro Work-In-Progress after April 26.
There are plenty of gfx routines left in Allegro that aren't perfectly optimised, so I guess I'll work with this for quite a long time. Probably, I'll optimise the rest of the routines for the Pentium II and AMD-K6 processors, taking advantage of MMX where appropriate. I'm currently planning to optimise draw_rle_sprite and compiled sprites.
Wow! This page has been visited times!