Hi,
In this game-port that I'm working on there is some code that copies dirty rectangles to a chunky buffer and sometimes to update the entire screen (it's not my code BTW). Can anyone give me a faster assembly based version or any general speed-up comments (for plain C), it's for 030+ and AGA only 320x200 8 bit display.
static byte *backBuffer;
backBuffer = (byte*)AllocMem(64000, MEMF_FAST);
void updateBackBuffer(byte *src, int x, int y, int w, int h) {
byte *dst;
// Addresse du pixel en dst
dst = (byte*)backBuffer + y*320 + x;
do {
CopyMem(src, dst, w);
dst += 320;
src += 320;
} while (--h);
}