Is BlitSurface smart?

If I blit something twice the size of the dest surface, will it take
longer than if I just blit the appropriate size?

Normally, only the resulting area after clipping is processed, so the
answer would be very simple: No, it will not take longer.

However, when using RLE acceleration, there is a little bit of
overhead when skipping through runs when clipping the left edge of
the source surface. AFAIK, SDL doesn’t use horizontal look-up tables,
so exactly how expensive this is would depend on the complexity of
the source; ie the density of runs in the areas skipped.

Even so, for all practical matters, I don’t think you need to worry
about this. The RLE is very fast, even when doing this "expensive"
clipping.

//David Olofson - Programmer, Composer, Open Source Advocate

.------- http://olofson.net - Games, SDL examples -------.
| http://zeespace.net - 2.5D rendering engine |
| http://audiality.org - Music/audio engine |
| http://eel.olofson.net - Real time scripting |
’-- http://www.reologica.se - Rheology instrumentation --'On Friday 08 June 2007, Manuel Garc?a Cabrera wrote:

If I blit something twice the size of the dest surface, will it take
longer than if I just blit the appropriate size?