Allegro.cc - Online Community

Allegro.cc Forums » Programming Questions » blit() or memcpy?

This thread is locked; no one can reply to it. rss feed Print
blit() or memcpy?
Lillebror
Member #11,789
March 2010
avatar

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
Second in Command
February 2005
avatar

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

They all watch too much MSNBC... they get ideas.

Goalie Ca
Member #2,579
July 2002
avatar

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

-------------
Bah weep granah weep nini bong!

Evert
Member #794
November 2000
avatar

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.

Go to: