[SDL] Re: fullscreen->window & compiler errors
tjh at delcam.com
Wed Jan 26 09:24:02 PST 2005
Alan Wolfe schrieb:
> i think he means it would be faster if the raw file was loaded into ram and
> decompressed there.
That might be worth trying, and might even work out if the decompressed
images are cached, i.e. some, but not all decompressed images are kept.
If a lot of images are used, this technique of course uses *more* memory
than loading them from disk.
> ----- Original Message -----
> From: "Gabriel" <mystml at adinet.com.uy>
> To: "A list for developers using the SDL library. (includes SDL-announce)"
> <sdl at libsdl.org>
> Sent: Thursday, January 13, 2005 9:59 AM
> Subject: Re: [SDL] Fast IMG Load
>>>I need to load a lot of images using too much memory space when loaded:
>>>152 images, 35kb each but in memory they are much bigger because of
>>>uncompression and byte alignment.
>>>My idea is to read all the image data compressed in png format in memory
>>>and load the images from memory instead of disk.
>>The only way this would take less space than just loading the images
>>would be keeping the compressed data in memory and decompress it on the
>>fly while blitting. I bet that's too slow to be of any practical value :
>>SDL mailing list
>>SDL at libsdl.org
> SDL mailing list
> SDL at libsdl.org
More information about the SDL