[SDL] Poor performance using alpha blending

Shawn drevil at warpcore.org
Sat Jan 25 13:24:01 PST 2003


On Sat, 2003-01-25 at 16:03, Christian Topnik wrote:
> Hi everybody,
> 
> I am using SDL for about two month now, and it didn't cause me any troubles
> so far. Until now... ;)
> 
> As soon as I am using alpha blending in my game, everything gets really
> slow. Of course I read through all the articles of this mailinglist.
> 
> I am using a 50% transpareny (value 128) because this should be the fastest,
> and I converted the surface to the display format. I tried SDL_SetAlpha both
> with and without SDL_RLEACCEL.

These might help, you probably want the 2nd one:

http://sdldoc.csn.ul.ie/sdldisplayformat.php
http://sdldoc.csn.ul.ie/sdldisplayformatalpha.php






More information about the SDL mailing list