Cache, resources and memory-related questions.

I'm working on a pre-loader feature.
as it stands right now, it's working, and I'm updating it so that it is further automated.

the question is, what happens when I clean a resource from the Cache after using it?
my concern is the memory load... I want to reduce it as much as possible, to increase the size of Bitmap resources themselves.
so, would Cache[index].clear free the memory space used by the object in [index] ?
do I have to make a full memory/cache/data set reload to make it effective?
is there any way at all to clear that physical memory space empty so that it doesn't eat memory when it's not needed?
If a language is garbage collected, then it should clear it from memory.
it is, although the call for GC is only made when clearing the entire cache.
I guess I should tap into that.

just making sure it's possible.
I don't think you need to worry much anyway. Never happened to me on my 4 gb ram laptop that a VXAce game would crash due to memory overload.
I'm running a 2Gb setup.
and the game is pulling a good gigabyte as it is.

first version is in place and working.
now I have to tie it to the battle scene so that it cleans up after a battle.

Original thread: https://forums.rpgmakerweb.com/threads/cache-resources-and-memory-related-questions.95235/