[SDL] Question about RLEACCEL-Bug

Torsten Giebl wizard at syntheticsw.com
Sun Jul 1 07:09:33 PDT 2007


Hello !


> In my game, I need the colour-value from several pixels. So I perform only
> reading-operations. Should I avoid
> RLEACCEL in this case too? (The game reacts now as it should :)).


You should, as SDL cannot guess if
you want read and/or write, so it always has
to go the full circle. If SDL could somehow detect,
okay he only wants to read, SDL would still need to do
the unpacking every time and after the reading delete the
surface again.


CU



More information about the SDL mailing list