How many images are you loading and what is their resolution? Also, what is your graphics card model and how much memory does it have? You could try preloading all images into an array of textures at the beginning of the script if it does not exceed the GPU memory.
|