[SDL] Weird surface behavior

Mattias Engdegård f91-men at nada.kth.se
Wed Aug 22 06:57:01 PDT 2001


Ti Leggett <leggett at eecs.tulane.edu> wrote:
>Alrighty. Then that brings up another question. How big of performance hit is
>locking and unlocking theses surfaces repeatedly?

Locking costs vary from zero for non-RLEed software surfaces to
a lot for some hardware surfaces or RLEed software surfaces. In general
locking isn't a big deal if you do it say, once per frame per surface

Direct pixel access is one of SDL's features but mostly it's simpler to
copy chunks of pixels using BlitSurface, and often faster





More information about the SDL mailing list