What determines whether a surface must be locked? Does this generally
apply only to hardware surfaces? If I once check a surface and it says
locking was unnecessary, is there any reason to check it again?
What determines whether a surface must be locked? Does this generally
apply only to hardware surfaces? If I once check a surface and it says
locking was unnecessary, is there any reason to check it again?
I forgot to mention that I’m writing a single-threaded app.
Surface locking appears to be entirely determined by the SDL_RLEACCEL flag (RLE
encoding), which I’m guessing is now obsolete. I think you can ignore locking
entirely.On 01/26/2013 09:03 AM, bruce.bowman tds.net wrote:
What determines whether a surface must be locked?
Does this generally
apply only to hardware surfaces? If I once check a surface and it says
locking was unnecessary, is there any reason to check it again?
I forgot to mention that I’m writing a single-threaded app.
You should lock a surface if SDL_MUSTLOCK(surface) returns true.On Sat, Jan 26, 2013 at 2:55 PM, John wrote:
Surface locking appears to be entirely determined by the SDL_RLEACCEL flag
(RLE encoding), which I’m guessing is now obsolete. I think you can ignore
locking entirely.
On 01/26/2013 09:03 AM, bruce.bowman tds.net wrote:
What determines whether a surface must be locked?
Does this generally
apply only to hardware surfaces? If I once check a surface and it says
locking was unnecessary, is there any reason to check it again?
Under what circumstances one should bother checking for SDL_MUSTLOCK?
Because I imagine that calling it every time you access a surface
would be useless, e.g. if you want to get the dimensions of a surface
or something like that.
2013/1/27, Sam Lantinga :> No, RLE encoding is not obsolete.
You should lock a surface if SDL_MUSTLOCK(surface) returns true.
On Sat, Jan 26, 2013 at 2:55 PM, John wrote:
Surface locking appears to be entirely determined by the SDL_RLEACCEL
flag
(RLE encoding), which I’m guessing is now obsolete. I think you can
ignore
locking entirely.
On 01/26/2013 09:03 AM, bruce.bowman tds.net wrote:
What determines whether a surface must be locked?
Does this generally
apply only to hardware surfaces? If I once check a surface and it says
locking was unnecessary, is there any reason to check it again?
Only if you’re going to access the pixels member.On Sun, Jan 27, 2013 at 6:45 PM, Sik the hedgehog < sik.the.hedgehog at gmail.com> wrote:
Under what circumstances one should bother checking for SDL_MUSTLOCK?
Because I imagine that calling it every time you access a surface
would be useless, e.g. if you want to get the dimensions of a surface
or something like that.
2013/1/27, Sam Lantinga <@slouken>:
No, RLE encoding is not obsolete.
You should lock a surface if SDL_MUSTLOCK(surface) returns true.
On Sat, Jan 26, 2013 at 2:55 PM, John wrote:
Surface locking appears to be entirely determined by the SDL_RLEACCEL
flag
(RLE encoding), which I’m guessing is now obsolete. I think you can
ignore
locking entirely.
On 01/26/2013 09:03 AM, bruce.bowman tds.net wrote:
What determines whether a surface must be locked?
Does this generally
apply only to hardware surfaces? If I once check a surface and it says
locking was unnecessary, is there any reason to check it again?