blit() or memcpy?
Lillebror

What is the most effective way to duplicate a BITMAP?
blit() does the job of course, but would memcpy or such be more efficient?

Arthur Kalliokoski

For the best speed, use the SSE registers... (assuming Intel arch)

Goalie Ca

Does blit call memcpy internally? Probably checks what type of bitmap and calls the optimal routine.

Evert
Goalie Ca said:

Does blit call memcpy internally? Probably checks what type of bitmap and calls the optimal routine.

I think so.

Either way - it has to be blit, otherwise pointers in the bitmap struct itself are not set properly.

Thread #605453. Printed from Allegro.cc