Pre-loading images shortly before display

RMMZ 1.6.0

Hello!

I was wondering if it's possible to have images cached before you want to rapidly display them. Meaning, for example a small 10 frame "animation" in terms of using "show image" with few frames between the next one being shown.
I ask because although most stuff loads and displays more or less fine on my system, this certainly won't be the case on slower systems or a mobile. I did test this on a slower system to make sure it would be an issue, and it is. If I push the animation so it displays an image per 4 frames, I can see that it lags behind on my own system as well. If I replay the exact same test animation again, it displays as it should (I assume because the images are now cached).
I have tried pre-loading via VisuStella's "System: Load Images" plugin command of their Core Engine, but it has no effect - although admittedly I do not know how that functions. It may very well have nothing to do with what I'm trying to achieve.
I do know an alternative is showing it in video format, but since it works as it should when cached - I was wondering how to do so without having to display the images first.

Any help would be greatly appreciated!
with a plugin, you can cache it (not sure if one exist for MZ)

without a plugin, you can make a boot screen (black screen)
and show picture 1 (alpha)
wait 1 frame
show picture 1 (beta)
wait 1 frame
etc
etc
erase picture 1

do this with all pictures you want to preload or need to be loaded
before showing them.

this is one way to do it.
there is a plugin for MV, but might not work for MZ which is Galv_ImageCache.
unless he ported it over to MZ.
with a plugin, you can cache it (not sure if one exist for MZ)

without a plugin, you can make a boot screen (black screen)
and show picture 1 (alpha)
wait 1 frame
show picture 1 (beta)
wait 1 frame
etc
etc
erase picture 1

do this with all pictures you want to preload or need to be loaded
before showing them.

this is one way to do it.
there is a plugin for MV, but might not work for MZ which is Galv_ImageCache.
unless he ported it over to MZ.
Thanks. I was literally just testing this, as the idea popped into my head after making the thread - and it is a decent workaround. I would still be interested to hear if there's a way to load things directly into the image cache. (Galv does not appear to have made an MZ version.)
I’m pretty sure images are saved to the cache as they’re loaded, so in theory, if you just use ImageManager.loadPicture(picture_name) in, say, a script call early enough in the Event execution (i.e. before something that would make the game wait, like a wait command, a message box, or a move route), then they should be loaded by the time you need to call them.

It’s been a while since I looked at the code, but I believe is basically the method MZ uses to preload the face images in text boxes—at the activation of the event, it iterates through the entire event’s command list and calls ImageManager.loadFace on every face image referenced in the show message box commands.

This wouldn’t guarantee that they’re loaded though. There is a way to do that, but it’s a little more complicated and involves even more scripting (I know, fun!), so I won't go into it.

Original thread: https://forums.rpgmakerweb.com/threads/pre-loading-images-shortly-before-display.154835/