the_dude_abides
Member
In the manual when it talks about surfaces it's always pointed out that they are volatile, and as such unreliable. However, when talking about created sprites, such as sprite_create_from_surface, the same point is not made.
The manual says about having to clear up created sprites to avoid memory leaks, but doesn't mention in either of the create functions about volatility. Wouldn't both be volatile, as newly created data? Is this just an oversight in the explanation, or is there a difference somehow between a surface and a sprite created from that surface?
And one last question about this - on windows do you really need to pay much attention to surfaces disappearing, or is it largely on phones etc where there could be an issue?
The manual says about having to clear up created sprites to avoid memory leaks, but doesn't mention in either of the create functions about volatility. Wouldn't both be volatile, as newly created data? Is this just an oversight in the explanation, or is there a difference somehow between a surface and a sprite created from that surface?
And one last question about this - on windows do you really need to pay much attention to surfaces disappearing, or is it largely on phones etc where there could be an issue?