MV Image Cache

FEATURES
A simple image pre-loading plugin that enables to to specify images from folders within /img/ folder to pre-load (pre-cache) when the game is loading or to use a script call to cache images during game before they are needed.
This can be useful as RPG Maker MV loads images into memory as soon as they are needed during gameplay but sometimes this can cause issues such as images flashing blank for a moment, lag, or sometimes not loading at all.

VERSION 1.1 – RPG Maker MV
Download Plugin file
Download Demo

Advertisements

9 thoughts on “MV Image Cache

  1. Ki says:

    Hello,
    Thank you for the script. It seems it doesn’t work as is, but I changed “Scene_Boot.loadSystemImages” to “Scene_Boot.prototype.loadSystemImages” at the end of the script and now it works. Maybe you could check it ?
    Have a nice day !

    • Galv says:

      You are using old MV files as that is how the code used to be but was changed in an update.

      My plugins work with the latest MV files, I do not support projects that use older MV files.

  2. Vectorinox says:

    Is there a way to precache all images in the named folder instead of having to name every single one of them ?

  3. Hi Galv, thanks so much for your awesome time-saving plugins! I’m having trouble using this one in conjunction with your Layer Graphics plugin. I’ve added layers| as Folder 15 in the plugin settings, then used a plugin command ‘Galv.CACHE.load(‘layers’,’MAP002main’); but the image still flickers when first displaying. Is my plugin command correct? I couldn’t see a usage example for the plugin command so I also tried adding .png and changing ‘layers’ to ’15’ or ‘layers|’ but no luck. Any ideas?

    • Galv says:

      This is a tough one to answer without more details, but your script call:
      ‘Galv.CACHE.load(‘layers’,’MAP002main’);’
      Looks to be correct (assuming your image name is actually /img/layers/MAP002main.png with that exact case).

      Some ideas off the top of my head:
      1. If your layer is a huge image, it might still flicker anyway when creating.
      2. You need to use the precache before you go to the map the layer is on.
      3. The latest version of MV changed how precaching works so I need to find time to check it works properly still.

      • I double checked the casing, it is correct. The image is 1152 x 672, hopefully that would be okay? Also, it doesn’t flicker on subsequent visits to the map. The plugin command was on the previous map, and I also tried loading it when the game loads, but no joy there either. Let me know if I can give you any more helpful information, and thank you for replying so promptly!

      • Galv says:

        Okay I’ve updated the plugin to version 1.1 to implement the latest MV changes – can you please test this to see if it fixes your issue?

        Note: You will need latest MV files in your project for this (MV 1.5.1)

      • Sorry for the bad nesting, for some reason I can’t reply to your other comment. The plugin still isn’t working for me, though I haven’t tried it in a fresh project and it’s possible that I’m doing something wrong. I have found a workaround however, by using Layer Graphics to display the layer at 0 opacity on a previous map so it’s kept in the cache! Thanks so much again Galv, keep up the awesome work!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s