[SDL] Downsizing resources

Miguel Pragier pragier at gmail.com
Mon Nov 5 08:18:04 PST 2007


Alberto Luaces <aluaces <at> udc.es> writes:

> 
> El Monday 05 November 2007 13:42:52 Miguel Pragier escribió:
> > At present, I work on 32 bits PNG images.
> >
> > The original 32 MB of PNG files, takes 110 MBs RAM, when the game runs..
> >
> > Would anyone know a way to downsize this consume?
> 
> Load only an image when you need it, delete it as soon as you aren't using it.
> _______________________________________________
> SDL mailing list
> SDL <at> lists.libsdl.org
> http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
> 

Ok.

In my games I have a lot of bonus ( jackPot-like ) animations.
When I load my images just before the use, we experience a small delay.
I read something about to shrink images resolution to 24 bits. Is it possible? 
Can I convert my images from 32 bits to 24 and keep the quality?
My plattaform is Windows, and the desktop is ~32 bit colors~.




More information about the SDL mailing list