MV How many cached images will slow down the game?

My game uses a lot of images, but quite a lot.
I'm using Galv_image cache to avoid that annoying flicker when putting or changing an image.
My question is, if I put all the images in cache, won't the game slow down? Some images are big, but I reduce them in size in the program.

Or would it be better to clear the cache after using the images and reload when I use them again?
Depends, RAM usage slows down when the hardware can't handle any more RAM usage, when that happens it tries to use the HD or SSD as a backup, that is when it really slows it down.
So basically, just by cacheing it won't affect much, but it depends on how much memory usage who is playing your game will have left.
Can you tell the amount in MB of the images you are putting in cache? As long as you don't try to cache huge amounts of files, it should be ok, most people have like over 4GB, so if your game uses something like 500MB max it really shouldn't be much of a problem.

But yes, the best practice is to free up what you won't use it anymore so if its easy to do it, do it. If it isn't, its not something huge unless you keep adding things to the memory overflowing it, it shouldn't have that much impact either. Always be careful with memory leak, if you are just using events its less likely, but stay aware with that 🙂
Thanks for the reply. I haven't calculated how much weight all the images, since many are still missing, but I will make sure they are not more than 500mb and if so, I will clean the cache from time to time.
Depends, RAM usage slows down when the hardware can't handle any more RAM usage, when that happens it tries to use the HD or SSD as a backup, that is when it really slows it down.
So basically, just by cacheing it won't affect much, but it depends on how much memory usage who is playing your game will have left.
Can you tell the amount in MB of the images you are putting in cache? As long as you don't try to cache huge amounts of files, it should be ok, most people have like over 4GB, so if your game uses something like 500MB max it really shouldn't be much of a problem.

But yes, the best practice is to free up what you won't use it anymore so if its easy to do it, do it. If it isn't, its not something huge unless you keep adding things to the memory overflowing it, it shouldn't have that much impact either. Always be careful with memory leak, if you are just using events its less likely, but stay aware with that 🙂

Original thread: https://forums.rpgmakerweb.com/threads/how-many-cached-images-will-slow-down-the-game.146215/