What is the fastest way to just duplicate a SDL_Surface? I could use
SDL_DisplayFormatAlpha(), but I’m not sure if this is going to spend
time doing extra work that isn’t needed. I just want an “exact” copy.
Tankko
What is the fastest way to just duplicate a SDL_Surface? I could use
SDL_DisplayFormatAlpha(), but I’m not sure if this is going to spend
time doing extra work that isn’t needed. I just want an “exact” copy.
Tankko
The only extra work that will be done is when SDL compares the format
of the surface you’re duplicating to that of the display surface. If
they are the same, then NO extra work will be done except that one
comparison.
The fastest way to copy it would be to just create the new surface
yourself, and blit from one to the other.On Apr 9, 2005, at 9:55 AM, Tankko Omaskio wrote:
What is the fastest way to just duplicate a SDL_Surface? I could use
SDL_DisplayFormatAlpha(), but I’m not sure if this is going to spend
time doing extra work that isn’t needed. I just want an “exact” copy.Tankko
SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl