An interesting article about speeding things up in SDL...

http://www.gameprogrammer.com/fastev...stevents1.html

May be worth porting to Pascal.