[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] Loading an image, transparent colour and RLEACCEL flag



On Sun, 2005-07-31 at 16:25 -0300, Andrà Roberge wrote:
> When loading an image for a game and setting a transparent colour,
> is there any situation where it is not advisable to use
> the RLEACCEL flag?

If you will be modifying the surface, setting RLEACCEL is going to slow
things down. (This requires a decode and encode operation each time the
pixel data is unlocked.) It's also a bad choice if the display mode is
using hardware blitting.

In pure SDL software situations, the RLEACCEL can help speed things up a
bit. It's not huge, but it can be noticeable.