I have around 750mb of JPG-images (all photographs). In each frame I select one of those images (unknown in advance) and load it with
Code: Select all
driver->getTexture(imageFilename)
So my idea was to just preload all the images. For some reason, the images take up much more memory than I thought (I run out of memory). Disabling mipmaps and reducing the quality (and thus size) if the images to the minimum did not work either.
My questions are:
- Why do the images take up so much memory? I got around 2GB of memory available for the application and it only manage to load around 30% of all images.
- Do you have any ideas of how I could either pre-cache all the image data or how I can load it fast enough not to affect the frame rate? As I said, the choice of which image is to be displayed is not known in advance.
I hope you understand my problem. If not, feel free to ask me anything!
Cheers![/list]