I had read in a book that using resource images requires them all to be preloaded into memory and for a big project, this would eat too much memory. Is this true?
not only that, but you also end up slowing down your development process. Each time you compile/debug the executable, it has to be copied to the device, which can be tedious if this executable is too big because of images being compiled as resources.
cryo
I guess there are some advantages to having them always loaded in memory:
(1) Gamma. All images would have to be reloaded on each gamma change.
(2) Display alignment. Rotate the display and the images have to be reloaded.
The image size used by the resource is usually only a small fraction of the memory used by the uncompressed image anyways (e.g. png and jpg).
If you have memory issues, the new gapidraw 1.1 (soon to be released) has virtually zero memory overhead when reading a png resource to a surface, so the only memory used by a picture is the resource and the 16-bit surface (width-aligned*height-aligned*2).