Help! RAM usage keeps going up in Device Manager! must remove the image cache file.

I used MV I need remove the image cache file.
My game is made up of only images, so the image turns on and off countless times. However, every time the image is turned on and off, the image cache builds up and eventually the game turns off as soon as the RAM usage exceeds 2.8GB.
Need a way to remove the image cache or reduce RAM usage
I tried ImageManager.clear(); ,yanfly engine core plugin, Community_Basic plugin. but there was no effect,DK Tool plugin
If the RAM usage keeps increasing, that points to objects being created but not destroyed, more commonly known as a memory leak. You need to figure out what plugin is causing that.
image-1.png

The plug-in currently in use. It's not going to increase any more. Picture call common is the most important plug-in for games
I'll check it out tomorrow
If the RAM usage keeps increasing, that points to objects being created but not destroyed, more commonly known as a memory leak. You need to figure out what plugin is causing that.
Well, at first glance both FixImageLoading and DKTools would be relevant to your problem, right?

So you should try disabling one/both of them to see if the problem still continues.

You should also examine them carefully to see whether you should be using both - if DKTools has image preloading and manipulates the image cache, it may be overwriting code from FixImageLoading and causing bugs.
Many preloader plugins will cause memory leaks due to how they are programmed. They usually create an array that keeps links to the images in the memory and periodically checks if the links are pointing to a valid object. Then when MV unloads these images, they force it to reload them again and instead of using free links or mopping them up, they create new ones, meaning they eventually create a very large array of mostly empty links. ImageManager.clear() won't help here. In fact it makes the memory leak even worse, because the clearing will clear all images, making the preloader preload them all again.
Well, at first glance both FixImageLoading and DKTools would be relevant to your problem, right?

So you should try disabling one/both of them to see if the problem still continues.

You should also examine them carefully to see whether you should be using both - if DKTools has image preloading and manipulates the image cache, it may be overwriting code from FixImageLoading and causing bugs.
There was a problem even before inserting the DK Tool plugin.
This is DK tool

Fix image loading plugin is to keep the animation from blinking. Let's experiment without Fix image loading plugin later

Original thread: https://forums.rpgmakerweb.com/threads/help-ram-usage-keeps-going-up-in-device-manager-must-remove-the-image-cache-file.159241/