I have a probem with memory usage in my game.
I divided the map into 1024x1024 tiles and they are created in frame when player gets close and when he is far from them that they are not visible they are destroyed. At the start of a frame the memory usage is really small (around 100mb, because i have some other graphics loaded) however, when player walks around for some time, that all objects are created and destroyed the memory usage gets much bigger even if all tiles are destroyed application can use 800mb only for map elements and this number doesn't seem to decrease over time. So my question is, can i "clear" a memory from unused objects during runtime? All these tiles have unchecked "Create at start" and checked "Load on call" options so i don't have any more ideas. I would be really thankful if someone can help me with this problem