I’ve asked for a clue, here.
There is a tutorial on how to use the hardware-accelerated SDL library on the Raspberry Pi.