[SDL] [PATCH] Use SDL_Swap* function in SDL_mixer.c
Stephane Marchesin
stephane.marchesin at wanadoo.fr
Wed Feb 9 04:02:22 PST 2005
Patrice Mandin wrote:
>Hello,
>
>Here is a patch to use SDL endianness function to read/write 16 bits
>samples when mixing the buffers. It should be faster when
>SDL_Swap?E16() functions are assembly optimized in SDL_endian.h
>
Did you check that it was actually faster ? As I said previously,
SDL_Swap*16 on x86 results in a locking instruction which might execute
a lot slower on smp systems.
Stephane
More information about the SDL
mailing list