1. Be sure to always free any textures/images once you have finished using them.
Opening an image (eg. myimage=loadimage("hello.tga") uses video memory for that image, if you use the same command again(even for the same image) another piece of memory will be reserved for that image therefor eventually using up all your video memory causing you large amounts of stress as your game runs really slowly.
For some reason I assumed(NEVER assume anything kids!....) if I opened and image with the same variable as before it would either free the memory used previously or it would be replaced with the new image however this is not the case.
So in conclusion always free you textures/images/entities etc when you have finished with them.
Opening an image (eg. myimage=loadimage("hello.tga") uses video memory for that image, if you use the same command again(even for the same image) another piece of memory will be reserved for that image therefor eventually using up all your video memory causing you large amounts of stress as your game runs really slowly.
For some reason I assumed(NEVER assume anything kids!....) if I opened and image with the same variable as before it would either free the memory used previously or it would be replaced with the new image however this is not the case.
So in conclusion always free you textures/images/entities etc when you have finished with them.