Hello,
Im developing a small game where the user goes through different screens and each one has its own background image.
Images are not quite large but the number of screens are, so Im facing the problem of running out of memory.
Ive read many threads about it and my question is which is the best way of free the memory used by one of my screens once its not been used? Just setting all the Image objects in the class to null and calling the garbage collector?
I know that calling the garbage collector repeatedly its not a good solution, but in my case it would be whenever the user changes from one screen to another. Would it be a good solution in that case?
Thank you very much



