Simple question

I think I know the answer to this, but I’ll ask anyway. If the color
depth I request for an SDL Surface matches the color depth that the
display is running at, will the SDL_Surface->Physical Display move be
much faster than if they are not at the same color depth?
If they are at different color depths SDL must translate each pixel.
However it seems that if they are at the same color depth they should
also be in the same pixel format (ie 555,565,RGB,BRG,etc). This would
allow SDL to only need a single memcpy for each scanline. Is this how
it works? If not is there a reason it isn’t set up this way?


Frank J. Ramsay
fjr at
Any sufficiently advanced operating system is
indistinguishable from Linux.